diff options
Diffstat (limited to 'tools/gfx-unit-test/get-buffer-resource-handle-test.cpp')
| -rw-r--r-- | tools/gfx-unit-test/get-buffer-resource-handle-test.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp index 1b7aaa439..a5fa5e441 100644 --- a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp +++ b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp @@ -35,16 +35,18 @@ namespace gfx_test (void*)initialData, buffer.writeRef())); - IBufferResource::NativeHandle handle; - GFX_CHECK_CALL_ABORT(buffer->getNativeHandle(&handle)); + InteropHandle handle; + GFX_CHECK_CALL_ABORT(buffer->getNativeResourceHandle(&handle)); if (device->getDeviceInfo().deviceType == gfx::DeviceType::Vulkan) { - SLANG_CHECK(handle != NULL); + SLANG_CHECK(handle.handleValue != 0); + SLANG_CHECK(handle.api == InteropHandleAPI::Vulkan); } #if SLANG_WINDOWS_FAMILY else { - auto d3d12Handle = (ID3D12Resource*)handle; + SLANG_CHECK(handle.api == InteropHandleAPI::D3D12); + auto d3d12Handle = (ID3D12Resource*)handle.handleValue; Slang::ComPtr<IUnknown> testHandle1; GFX_CHECK_CALL_ABORT(d3d12Handle->QueryInterface<IUnknown>(testHandle1.writeRef())); Slang::ComPtr<ID3D12Resource> testHandle2; |
