15 #ifdef __METAL_VERSION__ 16 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type 17 #define NSInteger metal::int32_t 19 #define METAL_ATTRIBUTE(x) [[attribute(x)]] 20 #define METAL_POSITION [[position]] 22 #import <Foundation/Foundation.h> 23 #define METAL_ATTRIBUTE(x) 24 #define METAL_POSITION 27 #include <simd/simd.h> 31 BufferIndexPositions = 0,
32 BufferIndexUniforms = 1
35 typedef NS_ENUM(NSInteger, VertexAttribute)
37 VertexAttributePosition = 0,
38 VertexAttributeTexcoord = 1,
39 VertexAttributeColor = 2,
44 TextureIndexColor = 0,
matrix_float4x4 projectionMatrix
Definition: ShaderTypes.h:72
Definition: ShaderTypes.h:84
Definition: ShaderTypes.h:64
vector_float4 position METAL_POSITION
Definition: ShaderTypes.h:86
Definition: ShaderTypes.h:77
Definition: ShaderTypes.h:58
vector_float4 position METAL_POSITION
Definition: ShaderTypes.h:66
typedef NS_ENUM(NSInteger, BufferIndex)
Definition: ShaderTypes.h:29
#define METAL_ATTRIBUTE(x)
Definition: ShaderTypes.h:23
vector_float4 position
Definition: ShaderTypes.h:60
vector_float2 texCoord
Definition: ShaderTypes.h:61
vector_float2 outputSize
Definition: ShaderTypes.h:73
GLuint color
Definition: glext.h:6883
Definition: ShaderTypes.h:70
vector_float2 texCoord
Definition: ShaderTypes.h:67
float time
Definition: ShaderTypes.h:74
vector_float2 texCoord
Definition: ShaderTypes.h:87
vector_float4 color
Definition: ShaderTypes.h:88