This commit is contained in:
+7
-2
@@ -747,14 +747,19 @@ bool renderer_init(SDL_Window *window_) {
|
||||
},
|
||||
{
|
||||
.stepMode = WGPUVertexStepMode_Instance,
|
||||
.arrayStride = 8,
|
||||
.attributeCount = 1,
|
||||
.arrayStride = 12,
|
||||
.attributeCount = 2,
|
||||
.attributes = (WGPUVertexAttribute[]){
|
||||
{
|
||||
.format = WGPUVertexFormat_Float32x2,
|
||||
.offset = 0,
|
||||
.shaderLocation = 2,
|
||||
},
|
||||
{
|
||||
.format = WGPUVertexFormat_Uint32,
|
||||
.offset = 8,
|
||||
.shaderLocation = 3,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user