diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-23 18:38:22 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-23 18:38:22 +1000 |
commit | dd5816eb9d4e35e22176ceb6df9162359bc138f0 (patch) | |
tree | 86406020b1933f7fe4f053d119c9ee836e132370 /examples | |
parent | 41a9e6d84e442cadbf1825c38bb97c516873ad5a (diff) |
fix examples without default framebuffer setting
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pbr_params/ex_pbr_params.c | 2 | ||||
-rw-r--r-- | examples/pbr_textured/ex_pbr_textured.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/pbr_params/ex_pbr_params.c b/examples/pbr_params/ex_pbr_params.c index 1d2d756..f5c004b 100644 --- a/examples/pbr_params/ex_pbr_params.c +++ b/examples/pbr_params/ex_pbr_params.c @@ -50,7 +50,7 @@ int main() { shader_data pbr_uniforms = { .data = NULL, .shader_data_get_layout = &pbr_params_shader_layout }; // Make the pipeline - gpu_renderpass_desc pass_description = {}; + gpu_renderpass_desc pass_description = { .default_framebuffer = true, .color_target = true }; gpu_renderpass* renderpass = gpu_renderpass_create(&pass_description); // FIXME: Make this work on other API backends str8 vert_path = str8lit("assets/shaders/pbr_params.vert"); diff --git a/examples/pbr_textured/ex_pbr_textured.c b/examples/pbr_textured/ex_pbr_textured.c index cbb3a3e..3a03d00 100644 --- a/examples/pbr_textured/ex_pbr_textured.c +++ b/examples/pbr_textured/ex_pbr_textured.c @@ -45,7 +45,7 @@ int main() { .shader_data_get_layout = &pbr_textured_shader_layout }; // Make the pipeline - gpu_renderpass_desc pass_description = {}; + gpu_renderpass_desc pass_description = { .default_framebuffer = true, .color_target = true }; gpu_renderpass* renderpass = gpu_renderpass_create(&pass_description); str8 vert_path = str8lit("assets/shaders/pbr_textured.vert"); str8 frag_path = str8lit("assets/shaders/pbr_textured.frag"); @@ -56,7 +56,7 @@ int main() { } struct graphics_pipeline_desc pipeline_description = { - .debug_name = "Basic Pipeline", + .debug_name = "PBR Pipeline", .vertex_desc = static_3d_vertex_description(), .data_layouts = { pbr_uniforms }, .data_layouts_count = 1, |