1 // Header for types and enum constants shared between Metal shaders and Objective C source 2 3 #ifndef MetalShaderTypes_h 4 #define MetalShaderTypes_h 5 6 //#import <metal_stdlib> 7 //using namespace metal; 8 9 10 #import <simd/simd.h> 11 //#import <Metal/Metal.h> 12 13 14 typedef struct 15 { 16 // Positions in pixel space 17 vector_float4 position; 18 19 // Floating-point RGBA colors 20 vector_float4 color; 21 } MetalVertex; 22 23 24 #endif /* MetalShaderTypes_h */