mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-25 10:20:52 +00:00
Added setImage with array layer range for compute images. (#3829)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user