diff options
author | Omni <omniscient.oce@gmail.com> | 2024-06-23 17:22:36 +1000 |
---|---|---|
committer | Omni <omniscient.oce@gmail.com> | 2024-06-23 17:22:36 +1000 |
commit | 0cbc42e89dcdeb47aaa63bb21b5fb911768ea4df (patch) | |
tree | b28c0bf40d03bcda86289ef42e8df8ad67539fdd /examples/cube/ex_cube.c | |
parent | 17f0db6607534c5bf1ba96153fabd3fdbb399ed9 (diff) |
depth map is working again
Diffstat (limited to 'examples/cube/ex_cube.c')
-rw-r--r-- | examples/cube/ex_cube.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |