aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-12-09 19:18:03 +0100
committerAndre Weissflog <floooh@gmail.com>2025-12-09 19:18:03 +0100
commitf6796268c338e3137c9500cd2d8f48deea504f21 (patch)
tree89fe24678640b75b1caee39cfd15707951dfdf8c
parent5dac536ae74282c5f7a0540d6e71db97b99467c9 (diff)
sokol_gfx.h wgpu: remove cubemap special case for depthOrArrayLayers in _sg_wgpu_create_image
-rw-r--r--sokol_gfx.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 81efd8cc..9ad5f604 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -17772,11 +17772,7 @@ _SOKOL_PRIVATE sg_resource_state _sg_wgpu_create_image(_sg_image_t* img, const s
wgpu_tex_desc.dimension = _sg_wgpu_texture_dimension(img->cmn.type);
wgpu_tex_desc.size.width = (uint32_t) img->cmn.width;
wgpu_tex_desc.size.height = (uint32_t) img->cmn.height;
- if (desc->type == SG_IMAGETYPE_CUBE) {
- wgpu_tex_desc.size.depthOrArrayLayers = 6;
- } else {
- wgpu_tex_desc.size.depthOrArrayLayers = (uint32_t) img->cmn.num_slices;
- }
+ wgpu_tex_desc.size.depthOrArrayLayers = (uint32_t) img->cmn.num_slices;
wgpu_tex_desc.format = _sg_wgpu_textureformat(img->cmn.pixel_format);
wgpu_tex_desc.mipLevelCount = (uint32_t) img->cmn.num_mipmaps;
wgpu_tex_desc.sampleCount = (uint32_t) img->cmn.sample_count;