Graphics/FrameGraph: Fix texture 2D array reuse
This commit is contained in:
parent
e10f15243d
commit
a08850946a
|
|
@ -59,7 +59,7 @@ namespace Nz
|
||||||
|
|
||||||
struct AttachmentArray : FramePassAttachment
|
struct AttachmentArray : FramePassAttachment
|
||||||
{
|
{
|
||||||
std::size_t layerCount;
|
unsigned int layerCount;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AttachmentCube : FramePassAttachment
|
struct AttachmentCube : FramePassAttachment
|
||||||
|
|
|
||||||
|
|
@ -1057,7 +1057,7 @@ namespace Nz
|
||||||
data.layerCount != attachmentData.layerCount)
|
data.layerCount != attachmentData.layerCount)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
m_pending.textureCubePool.erase(it);
|
m_pending.texture2DArrayPool.erase(it);
|
||||||
m_pending.attachmentToTextures.emplace(attachmentIndex, textureId);
|
m_pending.attachmentToTextures.emplace(attachmentIndex, textureId);
|
||||||
|
|
||||||
if (!attachmentData.name.empty() && data.name != attachmentData.name)
|
if (!attachmentData.name.empty() && data.name != attachmentData.name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue