From d06a78d935b2743494d47ed5cd3f36e38ac9c5ac Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 3 Feb 2022 19:17:30 -0800 Subject: Add gfx interop to allow more direct D3D12 usage scenarios. (#2117) * Add gfx interop to allow more direct D3D12 usage scenarios. * Fix compile error in win32. * gfx: Implement IFence::getNativeHandle() on d3d12. * More GFX-D3D interop interface. * Fix cuda. Co-authored-by: Yong He --- tools/gfx-unit-test/get-cmd-queue-handle-test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/gfx-unit-test/get-cmd-queue-handle-test.cpp') diff --git a/tools/gfx-unit-test/get-cmd-queue-handle-test.cpp b/tools/gfx-unit-test/get-cmd-queue-handle-test.cpp index ad439e946..0dd5ad561 100644 --- a/tools/gfx-unit-test/get-cmd-queue-handle-test.cpp +++ b/tools/gfx-unit-test/get-cmd-queue-handle-test.cpp @@ -17,16 +17,16 @@ namespace gfx_test { ICommandQueue::Desc queueDesc = { ICommandQueue::QueueType::Graphics }; auto queue = device->createCommandQueue(queueDesc); - ICommandQueue::NativeHandle handle; + InteropHandle handle; GFX_CHECK_CALL_ABORT(queue->getNativeHandle(&handle)); if (device->getDeviceInfo().deviceType == gfx::DeviceType::Vulkan) { - SLANG_CHECK(handle != NULL); + SLANG_CHECK(handle.handleValue != NULL); } #if SLANG_WINDOWS_FAMILY else { - auto d3d12Queue = (ID3D12CommandQueue*)handle; + auto d3d12Queue = (ID3D12CommandQueue*)handle.handleValue; Slang::ComPtr testHandle1; GFX_CHECK_CALL_ABORT(d3d12Queue->QueryInterface(testHandle1.writeRef())); Slang::ComPtr testHandle2; -- cgit v1.2.3