Added setImage with array layer range for compute images. (#3829)

This commit is contained in:
Branimir Karadžić
2026-07-13 04:19:07 +00:00
committed by GitHub
parent 39a2a05a3c
commit 6eb09a4a9b
21 changed files with 393 additions and 49 deletions
+1 -1
View File
@@ -3124,7 +3124,7 @@ WGPU_IMPORT
.size = 0,
.sampler = NULL,
.textureView = _isCompute
? texture.getTextureView(bind.m_firstMip, bind.m_numMips, Binding::Image == bind.m_type)
? texture.getTextureView(bind.m_firstMip, bind.m_numMips, Binding::Image == bind.m_type, 0, UINT16_MAX, Binding::Image == bind.m_type && UINT16_MAX != bind.m_numLayers)
: texture.getTextureView(bind.m_firstMip, bind.m_numMips, false, bind.m_firstLayer, bind.m_numLayers)
,
};