From dd5816eb9d4e35e22176ceb6df9162359bc138f0 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:38:22 +1000 Subject: fix examples without default framebuffer setting --- examples/pbr_params/ex_pbr_params.c | 2 +- examples/pbr_textured/ex_pbr_textured.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') 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, -- cgit v1.2.3-70-g09d2