9 #import <Foundation/Foundation.h> 10 #import <Metal/Metal.h> 30 @property (nonatomic, readwrite) MTLClearColor clearColor;
32 @property (nonatomic, readonly)
Uniforms *uniforms;
35 @property (nonatomic, readwrite)
bool displaySyncEnabled;
38 @property (nonatomic, readwrite)
bool captureEnabled;
52 - (instancetype)initWithDevice:(
id<MTLDevice>)d
53 layer:(CAMetalLayer *)layer
54 library:(
id<MTLLibrary>)l;
57 - (
id<MTLTexture>)newTexture:(struct
texture_image)image mipmapped:(
bool)mipmapped;
58 - (
void)convertFormat:(RPixelFormat)fmt from:(
id<MTLTexture>)src to:(
id<MTLTexture>)dst;
59 - (
id<MTLRenderPipelineState>)getStockShader:(
int)index blend:(
bool)blend;
62 - (
void)resetRenderViewport;
65 - (
void)resetScissorRect;
68 - (
void)drawQuadX:(
float)x y:(
float)y w:(
float)w h:(
float)h
69 r:(
float)r g:(
float)g b:(
float)b a:(
float)a;
79 - (
void)setRotation:(
unsigned)rotation;
void * data
Definition: Context.h:20
NSUInteger offset
Definition: Context.h:21
GLenum GLuint id
Definition: glext.h:6233
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
__unsafe_unretained id< MTLBuffer > buffer
Definition: Context.h:22
texture_filter_type
Definition: video_defines.h:24
Definition: video_driver.h:686
Definition: metal_common.m:516
Definition: ShaderTypes.h:70
GLuint GLuint end
Definition: glext.h:6292
GLuint sampler
Definition: glext.h:7950
struct nk_device device
Definition: nk_common.c:44
Context contains the render state used by various components.
Definition: Context.h:26
unsigned char uint8_t
Definition: stdint.h:124