Start on metal rendering infrastructure

This commit is contained in:
Nathan Sobo 2021-03-20 09:38:36 -06:00
parent d14c943150
commit 292b41ad57
8 changed files with 320 additions and 76 deletions

View file

@ -0,0 +1,17 @@
#include <simd/simd.h>
typedef enum {
GPUIQuadInputIndexVertices = 0,
GPUIQuadInputIndexQuads = 1,
GPUIQuadInputIndexUniforms = 2,
} GPUIQuadInputIndex;
typedef struct {
vector_float2 origin;
vector_float2 size;
vector_float4 background_color;
} GPUIQuad;
typedef struct {
vector_float2 viewport_size;
} GPUIQuadUniforms;