diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-05-19 23:26:32 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-05-19 23:26:32 +1000 |
commit | 63de5753d03dd7fe1f60b98e3825023d5b3392d6 (patch) | |
tree | c581897313db3db6d53d5adc8bbfc064c03d7042 /examples/cube | |
parent | b6a4ac7b2d9d94a25ecdff007f87587512f5711d (diff) |
wip: depth
Diffstat (limited to 'examples/cube')
-rw-r--r-- | examples/cube/ex_cube.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c index 5d6cbbe..fc59e2d 100644 --- a/examples/cube/ex_cube.c +++ b/examples/cube/ex_cube.c @@ -39,8 +39,7 @@ shader_data_layout mvp_uniforms_layout(void* data) { shader_binding b2 = { .label = "texture_sampler", .type = SHADER_BINDING_TEXTURE, - .stores_data = has_data - }; + .stores_data = has_data }; if (has_data) { b1.data.bytes.data = &d->mvp; b2.data.texture.handle = d->tex; @@ -129,10 +128,7 @@ int main() { camera_view_projection(&cam, g_core.renderer.swapchain.extent.width, g_core.renderer.swapchain.extent.height, &view, &proj); mvp_uniforms mvp_data = { .model = model, .view = view, .projection = proj }; - my_shader_bind_group shader_bind_data = { - .mvp = mvp_data, - .tex = texture - }; + my_shader_bind_group shader_bind_data = { .mvp = mvp_data, .tex = texture }; mvp_uniforms_data.data = &shader_bind_data; encode_bind_shader_data(enc, 0, &mvp_uniforms_data); |