Skip to content

Commit

Permalink
fix triangle-wgpu.c for bindings cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Sep 30, 2024
1 parent 05c09fc commit 8a57457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/triangle-wgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void init(void) {

// a shader object with wgsl shader code
sg_shader shd = sg_make_shader(&(sg_shader_desc){
.vs.source =
.vertex_func.source =
"struct vs_out {\n"
" @builtin(position) pos: vec4f,\n"
" @location(0) color: vec4f,\n"
Expand All @@ -48,7 +48,7 @@ static void init(void) {
" out.color = color;\n"
" return out;\n"
"}\n",
.fs.source =
.fragment_func.source =
"@fragment fn main(@location(0) color: vec4f) -> @location(0) vec4f {\n"
" return color;\n"
"}\n",
Expand Down

0 comments on commit 8a57457

Please sign in to comment.