diff --git a/ComputeShader/Sources/compute.c b/ComputeShader/Sources/compute.c index b39d573..f0e5877 100644 --- a/ComputeShader/Sources/compute.c +++ b/ComputeShader/Sources/compute.c @@ -147,9 +147,10 @@ int kickstart(int argc, char **argv) { { everything_parameters parameters; parameters.constants = &constants; - parameters.comp_texture = &texture; - parameters.comp_texture_highest_mip_level = 0; - parameters.comp_texture_mip_count = 1; + parameters.comp_texture.texture = &texture; + parameters.comp_texture.base_mip_level = 0; + parameters.comp_texture.mip_level_count = 1; + parameters.comp_texture.array_layer_count = 1; parameters.comp_sampler = &sampler; kong_create_everything_set(&device, ¶meters, &everything); } @@ -159,8 +160,10 @@ int kickstart(int argc, char **argv) { { compute_parameters parameters; parameters.compute_constants = &compute_constants; - parameters.dest_texture = &texture; - parameters.dest_texture_mip_level = 0; + parameters.dest_texture.texture = &texture; + parameters.dest_texture.base_mip_level = 0; + parameters.dest_texture.mip_level_count = 1; + parameters.dest_texture.array_layer_count = 1; kong_create_compute_set(&device, ¶meters, &compute); } diff --git a/Texture/Sources/texture.c b/Texture/Sources/texture.c index 34dc965..0aab015 100644 --- a/Texture/Sources/texture.c +++ b/Texture/Sources/texture.c @@ -191,11 +191,12 @@ int kickstart(int argc, char **argv) { constants_type_buffer_create(&device, &constants); { - everything_parameters parameters; + everything_parameters parameters = {0}; parameters.constants = &constants; - parameters.tex = &texture; - parameters.tex_highest_mip_level = 0; - parameters.tex_mip_count = 1; + parameters.tex.texture = &texture; + parameters.tex.base_mip_level = 0; + parameters.tex.mip_level_count = 1; + parameters.tex.array_layer_count = 1; parameters.sam = &sampler; kong_create_everything_set(&device, ¶meters, &everything); } diff --git a/TextureArray/Sources/shader.c b/TextureArray/Sources/shader.c index 9a4b6f9..1834d8d 100644 --- a/TextureArray/Sources/shader.c +++ b/TextureArray/Sources/shader.c @@ -111,10 +111,6 @@ int kickstart(int argc, char **argv) { kope_g5_device_create_command_list(&device, &list); -#ifdef SCREENSHOT - screenshot_init_buffer(&device, width, height); -#endif - { kope_g5_buffer_parameters buffer_parameters; buffer_parameters.size = 250 * 250 * 4; @@ -204,11 +200,12 @@ int kickstart(int argc, char **argv) { constants_type_buffer_create(&device, &constants); { - everything_parameters parameters; + everything_parameters parameters = {0}; parameters.constants = &constants; - parameters.tex = &texture; - parameters.tex_highest_mip_level = 0; - parameters.tex_mip_count = 1; + parameters.tex.texture = &texture; + parameters.tex.base_mip_level = 0; + parameters.tex.mip_level_count = 1; + parameters.tex.array_layer_count = 1; parameters.sam = &sampler; kong_create_everything_set(&device, ¶meters, &everything); }