Skip to content

Commit

Permalink
Fix the ComputeShader texture views
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 27, 2024
1 parent ef7ad1c commit f6f05fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ComputeShader/Sources/compute.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ int kickstart(int argc, char **argv) {
constants_type_buffer_create(&device, &constants);

{
everything_parameters parameters;
everything_parameters parameters = {0};
parameters.constants = &constants;
parameters.comp_texture.texture = &texture;
parameters.comp_texture.base_mip_level = 0;
Expand All @@ -158,7 +158,7 @@ int kickstart(int argc, char **argv) {
compute_constants_type_buffer_create(&device, &compute_constants);

{
compute_parameters parameters;
compute_parameters parameters = {0};
parameters.compute_constants = &compute_constants;
parameters.dest_texture.texture = &texture;
parameters.dest_texture.base_mip_level = 0;
Expand Down
2 changes: 1 addition & 1 deletion Kinc

0 comments on commit f6f05fc

Please sign in to comment.