aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/sokol_gfx_test.c
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-05-29 16:41:53 +0200
committerAndre Weissflog <floooh@gmail.com>2025-05-29 16:41:53 +0200
commit3e3f3c2064b70fd6427de6c9df1583fa568077c7 (patch)
tree9da1165ba289a0d5be5b52c00f43db8966fb0ace /tests/functional/sokol_gfx_test.c
parentedb7400498604d1565a6d117068fe4dab0f3da66 (diff)
fix tests
Diffstat (limited to 'tests/functional/sokol_gfx_test.c')
-rw-r--r--tests/functional/sokol_gfx_test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/functional/sokol_gfx_test.c b/tests/functional/sokol_gfx_test.c
index 4b8694d5..8e5383f8 100644
--- a/tests/functional/sokol_gfx_test.c
+++ b/tests/functional/sokol_gfx_test.c
@@ -338,7 +338,7 @@ UTEST(sokol_gfx, make_destroy_buffers) {
T(buf[i].id != SG_INVALID_ID);
T((2-i) == _sg.pools.buffer_pool.queue_top);
T(sg_query_buffer_state(buf[i]) == SG_RESOURCESTATE_VALID);
- const _sg_buffer_t* bufptr = _sg_lookup_buffer(&_sg.pools, buf[i].id);
+ const _sg_buffer_t* bufptr = _sg_lookup_buffer(buf[i].id);
T(bufptr);
T(bufptr->slot.id == buf[i].id);
T(bufptr->slot.state == SG_RESOURCESTATE_VALID);
@@ -382,7 +382,7 @@ UTEST(sokol_gfx, make_destroy_images) {
T(img[i].id != SG_INVALID_ID);
T((2-i) == _sg.pools.image_pool.queue_top);
T(sg_query_image_state(img[i]) == SG_RESOURCESTATE_VALID);
- const _sg_image_t* imgptr = _sg_lookup_image(&_sg.pools, img[i].id);
+ const _sg_image_t* imgptr = _sg_lookup_image(img[i].id);
T(imgptr);
T(imgptr->slot.id == img[i].id);
T(imgptr->slot.state == SG_RESOURCESTATE_VALID);
@@ -423,7 +423,7 @@ UTEST(sokol_gfx, make_destroy_samplers) {
T(smp[i].id != SG_INVALID_ID);
T((2-i) == _sg.pools.sampler_pool.queue_top);
T(sg_query_sampler_state(smp[i]) == SG_RESOURCESTATE_VALID);
- const _sg_sampler_t* smpptr = _sg_lookup_sampler(&_sg.pools, smp[i].id);
+ const _sg_sampler_t* smpptr = _sg_lookup_sampler(smp[i].id);
T(smpptr);
T(smpptr->slot.id == smp[i].id);
T(smpptr->slot.state == SG_RESOURCESTATE_VALID);
@@ -468,7 +468,7 @@ UTEST(sokol_gfx, make_destroy_shaders) {
T(shd[i].id != SG_INVALID_ID);
T((2-i) == _sg.pools.shader_pool.queue_top);
T(sg_query_shader_state(shd[i]) == SG_RESOURCESTATE_VALID);
- const _sg_shader_t* shdptr = _sg_lookup_shader(&_sg.pools, shd[i].id);
+ const _sg_shader_t* shdptr = _sg_lookup_shader(shd[i].id);
T(shdptr);
T(shdptr->slot.id == shd[i].id);
T(shdptr->slot.state == SG_RESOURCESTATE_VALID);
@@ -507,11 +507,11 @@ UTEST(sokol_gfx, make_destroy_pipelines) {
T(pip[i].id != SG_INVALID_ID);
T((2-i) == _sg.pools.pipeline_pool.queue_top);
T(sg_query_pipeline_state(pip[i]) == SG_RESOURCESTATE_VALID);
- const _sg_pipeline_t* pipptr = _sg_lookup_pipeline(&_sg.pools, pip[i].id);
+ const _sg_pipeline_t* pipptr = _sg_lookup_pipeline(pip[i].id);
T(pipptr);
T(pipptr->slot.id == pip[i].id);
T(pipptr->slot.state == SG_RESOURCESTATE_VALID);
- T(pipptr->shader == _sg_lookup_shader(&_sg.pools, desc.shader.id));
+ T(pipptr->shader == _sg_lookup_shader(desc.shader.id));
T(pipptr->cmn.shader_id.id == desc.shader.id);
T(pipptr->cmn.color_count == 1);
T(pipptr->cmn.colors[0].pixel_format == SG_PIXELFORMAT_RGBA8);
@@ -557,14 +557,14 @@ UTEST(sokol_gfx, make_destroy_attachments) {
T(atts[i].id != SG_INVALID_ID);
T((2-i) == _sg.pools.attachments_pool.queue_top);
T(sg_query_attachments_state(atts[i]) == SG_RESOURCESTATE_VALID);
- const _sg_attachments_t* attsptr = _sg_lookup_attachments(&_sg.pools, atts[i].id);
+ const _sg_attachments_t* attsptr = _sg_lookup_attachments(atts[i].id);
T(attsptr);
T(attsptr->slot.id == atts[i].id);
T(attsptr->slot.state == SG_RESOURCESTATE_VALID);
T(attsptr->cmn.num_colors == 3);
for (int ai = 0; ai < 3; ai++) {
const _sg_image_t* img = _sg_attachments_color_image(attsptr, ai);
- T(img == _sg_lookup_image(&_sg.pools, atts_desc.colors[ai].image.id));
+ T(img == _sg_lookup_image(atts_desc.colors[ai].image.id));
T(attsptr->cmn.colors[ai].image_id.id == atts_desc.colors[ai].image.id);
}
}