summaryrefslogtreecommitdiffstats
path: root/tools/gfx/debug-layer.h
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.h
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.h')
-rw-r--r--tools/gfx/debug-layer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gfx/debug-layer.h b/tools/gfx/debug-layer.h
index a2de7eb31..94f3e3f14 100644
--- a/tools/gfx/debug-layer.h
+++ b/tools/gfx/debug-layer.h
@@ -463,8 +463,10 @@ public:
virtual SLANG_NO_THROW void SLANG_MCALL resolveResource(
ITextureResource* source,
+ ResourceState sourceState,
SubresourceRange sourceRange,
ITextureResource* dest,
+ ResourceState destState,
SubresourceRange destRange) override;
virtual SLANG_NO_THROW void SLANG_MCALL copyTextureToBuffer(