aboutsummaryrefslogtreecommitdiff
path: root/tests/functional
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2023-09-06 18:48:24 +0200
committerAndre Weissflog <floooh@gmail.com>2023-09-06 18:48:24 +0200
commitb6ab80fc1f59a8600ddca8121cc8d06ef53fcb21 (patch)
tree912b991d64b9611d82f279e36db0d79ac9dd88db /tests/functional
parente5f5d95d6a1b853b3614136c11f5b80a51f4289c (diff)
fix sokol-gfx tests
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/sokol_gfx_test.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/functional/sokol_gfx_test.c b/tests/functional/sokol_gfx_test.c
index 1f80b2a0..4e9e5db5 100644
--- a/tests/functional/sokol_gfx_test.c
+++ b/tests/functional/sokol_gfx_test.c
@@ -1064,18 +1064,18 @@ UTEST(sokol_gfx, query_shader_desc) {
}
},
.images[0] = { .used = true, .image_type = SG_IMAGETYPE_2D, .sample_type = SG_IMAGESAMPLETYPE_FLOAT, .multisampled = true },
- .images[1] = { .used = true, .image_type = SG_IMAGETYPE_3D, .sample_type = SG_IMAGESAMPLETYPE_SINT },
+ .images[1] = { .used = true, .image_type = SG_IMAGETYPE_3D, .sample_type = SG_IMAGESAMPLETYPE_DEPTH },
.samplers[0] = { .used = true, .sampler_type = SG_SAMPLERTYPE_FILTERING },
.samplers[1] = { .used = true, .sampler_type = SG_SAMPLERTYPE_COMPARISON },
- .image_sampler_pairs[0] = { .used = true, .image_slot = 0, .sampler_slot = 1, .glsl_name = "img0" },
- .image_sampler_pairs[1] = { .used = true, .image_slot = 1, .sampler_slot = 0, .glsl_name = "img1" },
+ .image_sampler_pairs[0] = { .used = true, .image_slot = 0, .sampler_slot = 0, .glsl_name = "img0" },
+ .image_sampler_pairs[1] = { .used = true, .image_slot = 1, .sampler_slot = 1, .glsl_name = "img1" },
},
.fs = {
.source = "fs_source",
.images[0] = { .used = true, .image_type = SG_IMAGETYPE_ARRAY, .sample_type = SG_IMAGESAMPLETYPE_DEPTH },
- .images[1] = { .used = true, .image_type = SG_IMAGETYPE_CUBE, .sample_type = SG_IMAGESAMPLETYPE_FLOAT },
+ .images[1] = { .used = true, .image_type = SG_IMAGETYPE_CUBE, .sample_type = SG_IMAGESAMPLETYPE_UNFILTERABLE_FLOAT },
.samplers[0] = { .used = true, .sampler_type = SG_SAMPLERTYPE_COMPARISON },
- .samplers[1] = { .used = true, .sampler_type = SG_SAMPLERTYPE_FILTERING },
+ .samplers[1] = { .used = true, .sampler_type = SG_SAMPLERTYPE_NONFILTERING },
.image_sampler_pairs[0] = { .used = true, .image_slot = 0, .sampler_slot = 0, .glsl_name = "img3" },
.image_sampler_pairs[1] = { .used = true, .image_slot = 1, .sampler_slot = 1, .glsl_name = "img4" },
},
@@ -1097,7 +1097,7 @@ UTEST(sokol_gfx, query_shader_desc) {
T(s0_desc.vs.images[0].multisampled);
T(s0_desc.vs.images[1].used);
T(s0_desc.vs.images[1].image_type == SG_IMAGETYPE_3D);
- T(s0_desc.vs.images[1].sample_type == SG_IMAGESAMPLETYPE_SINT);
+ T(s0_desc.vs.images[1].sample_type == SG_IMAGESAMPLETYPE_DEPTH);
T(s0_desc.vs.images[1].multisampled == false);
T(s0_desc.vs.samplers[0].used);
T(s0_desc.vs.samplers[0].sampler_type == SG_SAMPLERTYPE_FILTERING);
@@ -1105,11 +1105,11 @@ UTEST(sokol_gfx, query_shader_desc) {
T(s0_desc.vs.samplers[1].sampler_type == SG_SAMPLERTYPE_COMPARISON);
T(s0_desc.vs.image_sampler_pairs[0].used);
T(s0_desc.vs.image_sampler_pairs[0].image_slot == 0);
- T(s0_desc.vs.image_sampler_pairs[0].sampler_slot == 1);
+ T(s0_desc.vs.image_sampler_pairs[0].sampler_slot == 0);
T(s0_desc.vs.image_sampler_pairs[0].glsl_name == 0);
T(s0_desc.vs.image_sampler_pairs[1].used);
T(s0_desc.vs.image_sampler_pairs[1].image_slot == 1);
- T(s0_desc.vs.image_sampler_pairs[1].sampler_slot == 0);
+ T(s0_desc.vs.image_sampler_pairs[1].sampler_slot == 1);
T(s0_desc.vs.image_sampler_pairs[1].glsl_name == 0);
T(s0_desc.fs.source == 0);
T(s0_desc.fs.uniform_blocks[0].size == 0);
@@ -1123,12 +1123,12 @@ UTEST(sokol_gfx, query_shader_desc) {
T(s0_desc.fs.images[0].multisampled == false);
T(s0_desc.fs.images[1].used);
T(s0_desc.fs.images[1].image_type == SG_IMAGETYPE_CUBE);
- T(s0_desc.fs.images[1].sample_type == SG_IMAGESAMPLETYPE_FLOAT);
+ T(s0_desc.fs.images[1].sample_type == SG_IMAGESAMPLETYPE_UNFILTERABLE_FLOAT);
T(s0_desc.fs.images[1].multisampled == false);
T(s0_desc.fs.samplers[0].used);
T(s0_desc.fs.samplers[0].sampler_type == SG_SAMPLERTYPE_COMPARISON);
T(s0_desc.fs.samplers[1].used);
- T(s0_desc.fs.samplers[1].sampler_type == SG_SAMPLERTYPE_FILTERING);
+ T(s0_desc.fs.samplers[1].sampler_type == SG_SAMPLERTYPE_NONFILTERING);
T(s0_desc.fs.image_sampler_pairs[0].used);
T(s0_desc.fs.image_sampler_pairs[0].image_slot == 0);
T(s0_desc.fs.image_sampler_pairs[0].sampler_slot == 0);