From 8a57457c3c82bb5e62c8cc0786ec6843be518017 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Mon, 30 Sep 2024 15:35:25 +0200 Subject: [PATCH] fix triangle-wgpu.c for bindings cleanup --- wgpu/triangle-wgpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/triangle-wgpu.c b/wgpu/triangle-wgpu.c index 43648f1b..70505865 100644 --- a/wgpu/triangle-wgpu.c +++ b/wgpu/triangle-wgpu.c @@ -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" @@ -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",