Skip to content

Commit

Permalink
Fix samples up to 10_cubemap
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 24, 2024
1 parent 6bd58cc commit 35279a0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion 07_multiple_render_targets/Sources/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, &parameters);

kong_set_render_pipeline(&list, &pipeline);
Expand Down
3 changes: 3 additions & 0 deletions 08_float_render_targets/Sources/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions 09_depth_render_targets/Sources/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 2 additions & 0 deletions 10_cubemap/Sources/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 35279a0

Please sign in to comment.