9 #ifndef RendererCommon_h 10 #define RendererCommon_h 12 #import <Foundation/Foundation.h> 17 #define MAX_INFLIGHT 1 18 #define CHAIN_LENGTH 3 22 #define kMetalBufferAlignment 256 24 #define kMetalBufferAlignment 4 27 #define MTL_ALIGN_BUFFER(size) ((size + kMetalBufferAlignment - 1) & (~(kMetalBufferAlignment - 1))) 29 #pragma mark - Pixel Formats 37 RPixelFormatBGRA4Unorm,
38 RPixelFormatB5G6R5Unorm,
40 RPixelFormatBGRA8Unorm,
41 RPixelFormatBGRX8Unorm,
49 typedef NS_ENUM(NSUInteger, RTextureFilter)
51 RTextureFilterNearest,
matrix_float4x4 matrix_rotate_z(float rot)
Definition: RendererCommon.m:90
GLint GLint bottom
Definition: glext.h:8393
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:11766
GLdouble GLdouble right
Definition: glext.h:11766
NSUInteger RPixelFormatToBPP(RPixelFormat format)
Definition: RendererCommon.m:12
matrix_float4x4 matrix_proj_ortho(float left, float right, float top, float bottom)
Definition: RendererCommon.m:69
NSString * NSStringFromRPixelFormat(RPixelFormat format)
Definition: RendererCommon.m:32
const GLdouble * v
Definition: glext.h:6391
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: glext.h:6293
GLint left
Definition: glext.h:8393
matrix_float4x4 make_matrix_float4x4(const float *v)
Definition: RendererCommon.m:55
typedef NS_ENUM(NSUInteger, RPixelFormat)
Definition: RendererCommon.h:31