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
+6
View File
@@ -4284,6 +4284,12 @@ VK_IMPORT_DEVICE
type = VK_IMAGE_VIEW_TYPE_2D_ARRAY;
}
if (UINT16_MAX != bind.m_numLayers
&& VK_IMAGE_VIEW_TYPE_2D == type)
{
type = VK_IMAGE_VIEW_TYPE_2D_ARRAY;
}
texture.setState(m_commandBuffer, texture.m_sampledLayout);
imageInfo[imageCount].imageLayout = texture.m_sampledLayout;