Start on metal rendering infrastructure
This commit is contained in:
parent
d14c943150
commit
292b41ad57
8 changed files with 320 additions and 76 deletions
17
gpui/src/platform/mac/shaders/shaders.h
Normal file
17
gpui/src/platform/mac/shaders/shaders.h
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue