Renderer: Rename some TextureLayout entry

This commit is contained in:
Jérôme Leclercq 2021-05-02 13:57:24 +02:00
parent 8028044966
commit 377129586b
2 changed files with 5 additions and 4 deletions

View File

@ -148,8 +148,8 @@ namespace Nz
{
ColorInput,
ColorOutput,
DepthStencilInput,
DepthStencilOutput,
DepthStencilReadOnly,
DepthStencilReadWrite,
Present,
TransferSource,
TransferDestination,

View File

@ -427,6 +427,7 @@ namespace Nz
{
{ colorReference },
{},
{},
std::nullopt
}
}
@ -475,12 +476,12 @@ namespace Nz
AttachmentStoreOp::Discard,
AttachmentStoreOp::Discard,
TextureLayout::Undefined,
TextureLayout::DepthStencilOutput
TextureLayout::DepthStencilReadWrite
});
subpasses.front().depthStencilAttachment = RenderPass::AttachmentReference{
1,
TextureLayout::DepthStencilOutput
TextureLayout::DepthStencilReadWrite
};
}