Skip to content

Commit 3781adf

Browse files
committed
Destroy sampler
1 parent a12b164 commit 3781adf

12 files changed

Lines changed: 13 additions & 0 deletions

File tree

04_textured_cube/sources/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ int kickstart(int argc, char **argv) {
403403

404404
kore_gpu_texture_destroy(&depth);
405405
kore_gpu_texture_destroy(&texture);
406+
kore_gpu_sampler_destroy(&sampler);
406407
kore_gpu_command_list_destroy(&list);
407408
kong_destroy_buffer_vertex_in(&vertices);
408409
kore_gpu_buffer_destroy(&indices);

05_camera_controls/sources/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ int kickstart(int argc, char **argv) {
507507
kong_destroy_everything_set(&everything);
508508
kore_gpu_buffer_destroy(&indices);
509509
kong_destroy_buffer_vertex_in(&vertices);
510+
kore_gpu_sampler_destroy(&sampler);
510511
kore_gpu_command_list_destroy(&list);
511512
kore_gpu_texture_destroy(&texture);
512513
kore_gpu_texture_destroy(&depth);

09_depth_render_targets/sources/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ int kickstart(int argc, char **argv) {
200200
kore_start();
201201

202202
kong_destroy_fs_set(&set);
203+
kore_gpu_sampler_destroy(&sampler);
203204
kong_destroy_buffer_fs_vertex_in(&vertices_fs);
204205
kore_gpu_buffer_destroy(&indices);
205206
kong_destroy_buffer_vertex_in(&vertices);

10_cubemap/sources/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ int kickstart(int argc, char **argv) {
199199
kore_start();
200200

201201
kong_destroy_fs_set(&set);
202+
kore_gpu_sampler_destroy(&sampler);
202203
kong_destroy_buffer_fs_vertex_in(&vertices_fs);
203204
kore_gpu_buffer_destroy(&indices);
204205
kong_destroy_buffer_vertex_in(&vertices);

12_set_render_target_depth/sources/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ int kickstart(int argc, char **argv) {
213213
kong_destroy_buffer_fs_vertex_in(&vertices_fs);
214214
kong_destroy_buffer_vertex_in(&vertices);
215215
kong_destroy_fs_set(&set);
216+
kore_gpu_sampler_destroy(&sampler);
216217
kore_gpu_texture_destroy(&target_depth);
217218
kore_gpu_command_list_destroy(&list);
218219
kore_gpu_device_destroy(&device);

13_generate_mipmaps/sources/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,11 @@ int kickstart(int argc, char **argv) {
270270
for (int i = 0; i < 4; ++i) {
271271
kong_destroy_mip_set(&mip_sets[i]);
272272
}
273+
kore_gpu_sampler_destroy(&mip_sampler);
273274
kong_destroy_fs_set(&set);
274275
kore_gpu_buffer_destroy(&indices);
275276
kong_destroy_buffer_fs_vertex_in(&vertices_fs);
277+
kore_gpu_sampler_destroy(&sampler);
276278
kong_destroy_buffer_vertex_in(&vertices);
277279
kore_gpu_texture_destroy(&render_target);
278280
kore_gpu_command_list_destroy(&list);

14_set_mipmap/sources/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ int kickstart(int argc, char **argv) {
222222
kong_destroy_fs_set(&set);
223223
kore_gpu_buffer_destroy(&indices);
224224
kong_destroy_buffer_fs_vertex_in(&vertices_fs);
225+
kore_gpu_sampler_destroy(&sampler);
225226
kore_gpu_texture_destroy(&texture);
226227
kore_gpu_command_list_destroy(&list);
227228
kore_gpu_device_destroy(&device);

15_deinterleaved_buffers/sources/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ int kickstart(int argc, char **argv) {
382382
constants_type_buffer_destroy(&constants);
383383
kore_gpu_buffer_destroy(&indices);
384384
kore_gpu_texture_destroy(&texture);
385+
kore_gpu_sampler_destroy(&sampler);
385386
kong_destroy_buffer_vertex_tex_in(&tex_vertices);
386387
kong_destroy_buffer_vertex_in(&pos_vertices);
387388
kore_gpu_command_list_destroy(&list);

bindless/sources/bindless.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ int kickstart(int argc, char **argv) {
242242
kong_destroy_everything_set(&everything);
243243
constants_type_buffer_destroy(&constants);
244244
kore_gpu_buffer_destroy(&indices);
245+
kore_gpu_sampler_destroy(&sampler);
245246
kong_destroy_buffer_vertex_in(&vertices);
246247
for (int i = 0; i < 9; ++i) {
247248
kore_gpu_texture_destroy(&textures[i]);

computeshader/sources/compute.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ int kickstart(int argc, char **argv) {
193193
kore_gpu_buffer_destroy(&indices);
194194
kong_destroy_buffer_vertex_in(&vertices);
195195
kore_gpu_command_list_destroy(&list);
196+
kore_gpu_sampler_destroy(&sampler);
196197
kore_gpu_texture_destroy(&texture);
197198
kore_gpu_device_destroy(&device);
198199

0 commit comments

Comments
 (0)