Graphics/FrameGraph: Fix texture 2D array reuse

This commit is contained in:
SirLynix 2023-09-06 13:14:17 +02:00 committed by Jérôme Leclercq
parent e10f15243d
commit a08850946a
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ namespace Nz
struct AttachmentArray : FramePassAttachment
{
std::size_t layerCount;
unsigned int layerCount;
};
struct AttachmentCube : FramePassAttachment

View File

@ -1057,7 +1057,7 @@ namespace Nz
data.layerCount != attachmentData.layerCount)
continue;
m_pending.textureCubePool.erase(it);
m_pending.texture2DArrayPool.erase(it);
m_pending.attachmentToTextures.emplace(attachmentIndex, textureId);
if (!attachmentData.name.empty() && data.name != attachmentData.name)