summaryrefslogtreecommitdiffstats
path: root/tools/render-test
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-05-04 11:44:24 -0700
committerGitHub <noreply@github.com>2022-05-04 11:44:24 -0700
commitca86ce28829987fce2df4a81da976e6b18e17ad1 (patch)
tree7c5032b8475157392aca4ff624357b3661534174 /tools/render-test
parentf4c2b0de41f703aa2000c344484e7cd37db56a32 (diff)
Changed all uses of attachment (in the context of render/depth stencil targets) to target (#2214)
Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com>
Diffstat (limited to 'tools/render-test')
-rw-r--r--tools/render-test/render-test-main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/render-test/render-test-main.cpp b/tools/render-test/render-test-main.cpp
index 1e3caf781..332ba89ff 100644
--- a/tools/render-test/render-test-main.cpp
+++ b/tools/render-test/render-test-main.cpp
@@ -640,12 +640,12 @@ void RenderTestApp::_initializeRenderPass()
ComPtr<gfx::IResourceView> dsv =
m_device->createTextureView(depthBufferResource.get(), depthBufferViewDesc);
- IFramebufferLayout::AttachmentLayout colorAttachment = {gfx::Format::R8G8B8A8_UNORM, 1};
- IFramebufferLayout::AttachmentLayout depthAttachment = {gfx::Format::D32_FLOAT, 1};
+ IFramebufferLayout::TargetLayout colorTarget = {gfx::Format::R8G8B8A8_UNORM, 1};
+ IFramebufferLayout::TargetLayout depthTarget = {gfx::Format::D32_FLOAT, 1};
gfx::IFramebufferLayout::Desc framebufferLayoutDesc;
framebufferLayoutDesc.renderTargetCount = 1;
- framebufferLayoutDesc.renderTargets = &colorAttachment;
- framebufferLayoutDesc.depthStencil = &depthAttachment;
+ framebufferLayoutDesc.renderTargets = &colorTarget;
+ framebufferLayoutDesc.depthStencil = &depthTarget;
m_device->createFramebufferLayout(framebufferLayoutDesc, m_framebufferLayout.writeRef());
gfx::IFramebuffer::Desc framebufferDesc;
@@ -658,14 +658,14 @@ void RenderTestApp::_initializeRenderPass()
IRenderPassLayout::Desc renderPassDesc = {};
renderPassDesc.framebufferLayout = m_framebufferLayout;
renderPassDesc.renderTargetCount = 1;
- IRenderPassLayout::AttachmentAccessDesc renderTargetAccess = {};
- IRenderPassLayout::AttachmentAccessDesc depthStencilAccess = {};
- renderTargetAccess.loadOp = IRenderPassLayout::AttachmentLoadOp::Clear;
- renderTargetAccess.storeOp = IRenderPassLayout::AttachmentStoreOp::Store;
+ IRenderPassLayout::TargetAccessDesc renderTargetAccess = {};
+ IRenderPassLayout::TargetAccessDesc depthStencilAccess = {};
+ renderTargetAccess.loadOp = IRenderPassLayout::TargetLoadOp::Clear;
+ renderTargetAccess.storeOp = IRenderPassLayout::TargetStoreOp::Store;
renderTargetAccess.initialState = ResourceState::Undefined;
renderTargetAccess.finalState = ResourceState::RenderTarget;
- depthStencilAccess.loadOp = IRenderPassLayout::AttachmentLoadOp::Clear;
- depthStencilAccess.storeOp = IRenderPassLayout::AttachmentStoreOp::Store;
+ depthStencilAccess.loadOp = IRenderPassLayout::TargetLoadOp::Clear;
+ depthStencilAccess.storeOp = IRenderPassLayout::TargetStoreOp::Store;
depthStencilAccess.initialState = ResourceState::Undefined;
depthStencilAccess.finalState = ResourceState::DepthWrite;
renderPassDesc.renderTargetAccess = &renderTargetAccess;