17 lines
226 B
Objective-C
17 lines
226 B
Objective-C
#pragma once
|
|
|
|
#import <Metal/Metal.h>
|
|
|
|
STRUCT(Renderer)
|
|
{
|
|
id<MTLDevice> device;
|
|
id<MTLCommandQueue> command_queue;
|
|
id<MTLRenderPipelineState> pipeline_state;
|
|
};
|
|
|
|
STRUCT(RenderWindow)
|
|
{
|
|
CAMetalLayer* layer;
|
|
};
|
|
|