From 35279a061150abd23412ce22ac7dcea989d57f50 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Tue, 24 Sep 2024 02:59:37 +0200 Subject: [PATCH] Fix samples up to 10_cubemap --- 07_multiple_render_targets/Sources/main.c | 1 - 08_float_render_targets/Sources/main.c | 3 +++ 09_depth_render_targets/Sources/main.c | 2 ++ 10_cubemap/Sources/main.c | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/07_multiple_render_targets/Sources/main.c b/07_multiple_render_targets/Sources/main.c index 125bc81..41595e1 100644 --- a/07_multiple_render_targets/Sources/main.c +++ b/07_multiple_render_targets/Sources/main.c @@ -32,7 +32,6 @@ static void update(void *data) { parameters.color_attachments[i].texture = &render_targets[i]; } parameters.color_attachments_count = 4; - parameters.depth_stencil_attachments_count = 0; kope_g5_command_list_begin_render_pass(&list, ¶meters); kong_set_render_pipeline(&list, &pipeline); diff --git a/08_float_render_targets/Sources/main.c b/08_float_render_targets/Sources/main.c index 01bba1d..cee79ce 100644 --- a/08_float_render_targets/Sources/main.c +++ b/08_float_render_targets/Sources/main.c @@ -136,7 +136,10 @@ int kickstart(int argc, char **argv) { compute_parameters cparams = {0}; cparams.copy_source_texture = &float_render_target; + cparams.copy_source_texture_highest_mip_level = 0; + cparams.copy_source_texture_mip_count = 1; cparams.copy_destination_texture = &render_target; + cparams.copy_destination_texture_mip_level = 0; kong_create_compute_set(&device, &cparams, &set); kinc_start(); diff --git a/09_depth_render_targets/Sources/main.c b/09_depth_render_targets/Sources/main.c index ef2b002..f4c85dc 100644 --- a/09_depth_render_targets/Sources/main.c +++ b/09_depth_render_targets/Sources/main.c @@ -144,6 +144,8 @@ int kickstart(int argc, char **argv) { fs_parameters fs_params = {0}; fs_params.fs_texture = &render_target; + fs_params.fs_texture_highest_mip_level = 0; + fs_params.fs_texture_mip_count = 1; fs_params.fs_sampler = &sampler; kong_create_fs_set(&device, &fs_params, &set); diff --git a/10_cubemap/Sources/main.c b/10_cubemap/Sources/main.c index d4bc4da..c77225b 100644 --- a/10_cubemap/Sources/main.c +++ b/10_cubemap/Sources/main.c @@ -153,6 +153,8 @@ int kickstart(int argc, char **argv) { fs_parameters fs_params = {0}; fs_params.fs_texture = &render_target; + fs_params.fs_texture_highest_mip_level = 0; + fs_params.fs_texture_mip_count = 1; fs_params.fs_sampler = &sampler; kong_create_fs_set(&device, &fs_params, &set);