summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/pbr_params/ex_pbr_params.c2
-rw-r--r--examples/pbr_textured/ex_pbr_textured.c4
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,