add basic animation
buildbot/windows Build done.
buildbot/linux Build done.

This commit is contained in:
Sven Balzer
2026-08-02 12:40:24 +02:00
parent 70fac5bd72
commit f72ca9def5
6 changed files with 53 additions and 23 deletions
+7 -2
View File
@@ -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,
},
},
},
},