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, ColorInput,
ColorOutput, ColorOutput,
DepthStencilInput, DepthStencilReadOnly,
DepthStencilOutput, DepthStencilReadWrite,
Present, Present,
TransferSource, TransferSource,
TransferDestination, TransferDestination,

View File

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