summaryrefslogtreecommitdiff
path: root/tools/gfx-unit-test/instanced-draw-tests.cpp
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-unit-test/instanced-draw-tests.cpp
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-unit-test/instanced-draw-tests.cpp')
-rw-r--r--tools/gfx-unit-test/instanced-draw-tests.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/gfx-unit-test/instanced-draw-tests.cpp b/tools/gfx-unit-test/instanced-draw-tests.cpp
index 45ff0dd96..1e2fa1037 100644
--- a/tools/gfx-unit-test/instanced-draw-tests.cpp
+++ b/tools/gfx-unit-test/instanced-draw-tests.cpp
@@ -161,13 +161,13 @@ namespace gfx_test
slang::ProgramLayout* slangReflection;
GFX_CHECK_CALL_ABORT(loadGraphicsProgram(device, shaderProgram, "graphics-smoke", "vertexMain", "fragmentMain", slangReflection));
- IFramebufferLayout::AttachmentLayout attachmentLayout;
- attachmentLayout.format = format;
- attachmentLayout.sampleCount = 1;
+ IFramebufferLayout::TargetLayout targetLayout;
+ targetLayout.format = format;
+ targetLayout.sampleCount = 1;
IFramebufferLayout::Desc framebufferLayoutDesc;
framebufferLayoutDesc.renderTargetCount = 1;
- framebufferLayoutDesc.renderTargets = &attachmentLayout;
+ framebufferLayoutDesc.renderTargets = &targetLayout;
ComPtr<gfx::IFramebufferLayout> framebufferLayout = device->createFramebufferLayout(framebufferLayoutDesc);
SLANG_CHECK_ABORT(framebufferLayout != nullptr);
@@ -183,9 +183,9 @@ namespace gfx_test
IRenderPassLayout::Desc renderPassDesc = {};
renderPassDesc.framebufferLayout = framebufferLayout;
renderPassDesc.renderTargetCount = 1;
- IRenderPassLayout::AttachmentAccessDesc renderTargetAccess = {};
- renderTargetAccess.loadOp = IRenderPassLayout::AttachmentLoadOp::Clear;
- renderTargetAccess.storeOp = IRenderPassLayout::AttachmentStoreOp::Store;
+ IRenderPassLayout::TargetAccessDesc renderTargetAccess = {};
+ renderTargetAccess.loadOp = IRenderPassLayout::TargetLoadOp::Clear;
+ renderTargetAccess.storeOp = IRenderPassLayout::TargetStoreOp::Store;
renderTargetAccess.initialState = ResourceState::RenderTarget;
renderTargetAccess.finalState = ResourceState::CopySource;
renderPassDesc.renderTargetAccess = &renderTargetAccess;