diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2022-05-04 11:44:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-04 11:44:24 -0700 |
| commit | ca86ce28829987fce2df4a81da976e6b18e17ad1 (patch) | |
| tree | 7c5032b8475157392aca4ff624357b3661534174 /tools/gfx-unit-test/texture-types-tests.cpp | |
| parent | f4c2b0de41f703aa2000c344484e7cd37db56a32 (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/texture-types-tests.cpp')
| -rw-r--r-- | tools/gfx-unit-test/texture-types-tests.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/gfx-unit-test/texture-types-tests.cpp b/tools/gfx-unit-test/texture-types-tests.cpp index 4d8037ce8..7f010e6fd 100644 --- a/tools/gfx-unit-test/texture-types-tests.cpp +++ b/tools/gfx-unit-test/texture-types-tests.cpp @@ -431,13 +431,13 @@ namespace gfx_test slang::ProgramLayout* slangReflection; GFX_CHECK_CALL_ABORT(loadGraphicsProgram(device, shaderProgram, "trivial-copy-textures", "vertexMain", "fragmentMain", slangReflection)); - IFramebufferLayout::AttachmentLayout attachmentLayout; - attachmentLayout.format = textureInfo->format; - attachmentLayout.sampleCount = sampleCount; + IFramebufferLayout::TargetLayout targetLayout; + targetLayout.format = textureInfo->format; + targetLayout.sampleCount = sampleCount; IFramebufferLayout::Desc framebufferLayoutDesc; framebufferLayoutDesc.renderTargetCount = 1; - framebufferLayoutDesc.renderTargets = &attachmentLayout; + framebufferLayoutDesc.renderTargets = &targetLayout; ComPtr<gfx::IFramebufferLayout> framebufferLayout = device->createFramebufferLayout(framebufferLayoutDesc); SLANG_CHECK_ABORT(framebufferLayout != nullptr); @@ -453,9 +453,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 = getDefaultResourceStateForViewType(viewType); renderTargetAccess.finalState = ResourceState::ResolveSource; renderPassDesc.renderTargetAccess = &renderTargetAccess; |
