From 6528b1c7f32d8e2c8de8f4e1dd386533cd14b8f1 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Tue, 25 Jan 2022 10:26:29 -0800 Subject: 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) --- tools/gfx/cuda/render-cuda.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/gfx/cuda/render-cuda.cpp') diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp index 3e55242f0..0446dc055 100644 --- a/tools/gfx/cuda/render-cuda.cpp +++ b/tools/gfx/cuda/render-cuda.cpp @@ -1111,13 +1111,17 @@ public: virtual SLANG_NO_THROW void SLANG_MCALL resolveResource( ITextureResource* source, + ResourceState sourceState, SubresourceRange sourceRange, ITextureResource* dest, + ResourceState destState, SubresourceRange destRange) override { SLANG_UNUSED(source); + SLANG_UNUSED(sourceState); SLANG_UNUSED(sourceRange); SLANG_UNUSED(dest); + SLANG_UNUSED(destState); SLANG_UNUSED(destRange); SLANG_UNIMPLEMENTED_X("resolveResource"); } -- cgit v1.2.3