Support depth-1 volume textures. (#3883)

This commit is contained in:
Branimir Karadžić
2026-08-12 18:24:25 -07:00
committed by GitHub
parent 0af3dac7bf
commit 3d3b08778e
11 changed files with 59 additions and 32 deletions
+1 -1
View File
@@ -4007,7 +4007,7 @@ WGPU_IMPORT
;
depthOrArrayLayers = 6;
}
else if (imageContainer.m_depth > 1)
else if (isVolume(imageContainer) )
{
m_type = Texture3D;
m_viewDimension = WGPUTextureViewDimension_3D;