summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer.cpp
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-01-25 10:26:29 -0800
committerGitHub <noreply@github.com>2022-01-25 10:26:29 -0800
commit6528b1c7f32d8e2c8de8f4e1dd386533cd14b8f1 (patch)
treec38fede39e51ae21d840aabe24212d711f522f1e /tools/gfx/debug-layer.cpp
parent7cff340b10b27f82781335093759bbdc19cd2865 (diff)
Add implementations for resolveResource() to D3D12 and Vulkan backends (#2094)
* Added implementations for resolveResource to both D3D and Vulkan backends * Simple test for resolving a multisampled resource written and confirmed to run successfully for D3D12 * Fixed a bug preventing MSAA from working in Vulkan * Changed test format to RGBA32 Float (because swiftshader)
Diffstat (limited to 'tools/gfx/debug-layer.cpp')
-rw-r--r--tools/gfx/debug-layer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp
index 53deec385..f34a77556 100644
--- a/tools/gfx/debug-layer.cpp
+++ b/tools/gfx/debug-layer.cpp
@@ -1343,12 +1343,14 @@ void DebugResourceCommandEncoder::clearResourceView(
void DebugResourceCommandEncoder::resolveResource(
ITextureResource* source,
+ ResourceState sourceState,
SubresourceRange sourceRange,
ITextureResource* dest,
+ ResourceState destState,
SubresourceRange destRange)
{
SLANG_GFX_API_FUNC;
- baseObject->resolveResource(getInnerObj(source), sourceRange, getInnerObj(dest), destRange);
+ baseObject->resolveResource(getInnerObj(source), sourceState, sourceRange, getInnerObj(dest), destState, destRange);
}
void DebugResourceCommandEncoder::copyTextureToBuffer(