summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12/render-d3d12.cpp
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2021-09-21 18:46:32 -0700
committerGitHub <noreply@github.com>2021-09-21 18:46:32 -0700
commit6e9cee69b3588ddae09b08b9f580f59ad899983f (patch)
treee5e5e182544980e0cfd1ed8fed65dc1722e20099 /tools/gfx/d3d12/render-d3d12.cpp
parentb1f04c8544c650de3947955ca68f679535d249aa (diff)
Support for existing device/instance handles in Vulkan (#1942)
Diffstat (limited to 'tools/gfx/d3d12/render-d3d12.cpp')
-rw-r--r--tools/gfx/d3d12/render-d3d12.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp
index d0423044f..22f846ded 100644
--- a/tools/gfx/d3d12/render-d3d12.cpp
+++ b/tools/gfx/d3d12/render-d3d12.cpp
@@ -4287,7 +4287,7 @@ Result D3D12Device::initialize(const Desc& desc)
return SLANG_FAIL;
}
- if (desc.existingDeviceHandles.values[0] == 0)
+ if (desc.existingDeviceHandles.getD3D12Device() == 0)
{
FlagCombiner combiner;
// TODO: we should probably provide a command-line option
@@ -4320,7 +4320,7 @@ Result D3D12Device::initialize(const Desc& desc)
else
{
// Store the existing device handle in desc in m_deviceInfo
- m_deviceInfo.m_device = (ID3D12Device*)desc.existingDeviceHandles.values[0];
+ m_deviceInfo.m_device = (ID3D12Device*)desc.existingDeviceHandles.getD3D12Device();
}
// Set the device