summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12
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/gfx/d3d12
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/gfx/d3d12')
-rw-r--r--tools/gfx/d3d12/render-d3d12.cpp6
-rw-r--r--tools/gfx/d3d12/render-d3d12.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp
index e6168f17c..2506c3b63 100644
--- a/tools/gfx/d3d12/render-d3d12.cpp
+++ b/tools/gfx/d3d12/render-d3d12.cpp
@@ -7194,7 +7194,7 @@ void RenderCommandEncoderImpl::init(
}
}
// Clear.
- if (access.loadOp == IRenderPassLayout::AttachmentLoadOp::Clear)
+ if (access.loadOp == IRenderPassLayout::TargetLoadOp::Clear)
{
m_d3dCmdList->ClearRenderTargetView(
framebuffer->renderTargetDescriptors[i],
@@ -7227,12 +7227,12 @@ void RenderCommandEncoderImpl::init(
}
// Clear.
uint32_t clearFlags = 0;
- if (renderPass->m_depthStencilAccess.loadOp == IRenderPassLayout::AttachmentLoadOp::Clear)
+ if (renderPass->m_depthStencilAccess.loadOp == IRenderPassLayout::TargetLoadOp::Clear)
{
clearFlags |= D3D12_CLEAR_FLAG_DEPTH;
}
if (renderPass->m_depthStencilAccess.stencilLoadOp ==
- IRenderPassLayout::AttachmentLoadOp::Clear)
+ IRenderPassLayout::TargetLoadOp::Clear)
{
clearFlags |= D3D12_CLEAR_FLAG_STENCIL;
}
diff --git a/tools/gfx/d3d12/render-d3d12.h b/tools/gfx/d3d12/render-d3d12.h
index c8def3217..95a982104 100644
--- a/tools/gfx/d3d12/render-d3d12.h
+++ b/tools/gfx/d3d12/render-d3d12.h
@@ -357,9 +357,9 @@ public:
class FramebufferLayoutImpl : public FramebufferLayoutBase
{
public:
- ShortList<IFramebufferLayout::AttachmentLayout> m_renderTargets;
+ ShortList<IFramebufferLayout::TargetLayout> m_renderTargets;
bool m_hasDepthStencil = false;
- IFramebufferLayout::AttachmentLayout m_depthStencil;
+ IFramebufferLayout::TargetLayout m_depthStencil;
};
class FramebufferImpl : public FramebufferBase