From 0cbc42e89dcdeb47aaa63bb21b5fb911768ea4df Mon Sep 17 00:00:00 2001 From: Omni Date: Sun, 23 Jun 2024 17:22:36 +1000 Subject: depth map is working again --- examples/cube/ex_cube.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/cube/ex_cube.c') diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c index 3c98087..5a19f2c 100644 --- a/examples/cube/ex_cube.c +++ b/examples/cube/ex_cube.c @@ -46,7 +46,7 @@ shader_data_layout mvp_uniforms_layout(void* data) { .stores_data = has_data, .data = { .bytes = { .size = sizeof(mvp_uniforms) } } }; - shader_binding b2 = { .label = "texture_sampler", + shader_binding b2 = { .label = "texSampler", .type = SHADER_BINDING_TEXTURE, .stores_data = has_data }; if (has_data) { @@ -75,7 +75,7 @@ int main() { shader_data mvp_uniforms_data = { .data = NULL, .shader_data_get_layout = &mvp_uniforms_layout }; - gpu_renderpass_desc pass_description = {}; + gpu_renderpass_desc pass_description = { .default_framebuffer = true }; gpu_renderpass* renderpass = gpu_renderpass_create(&pass_description); str8 vert_path, frag_path; -- cgit v1.2.3-70-g09d2