mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d: Export a function to get the Vulkan physical device from a d3d12 device.
This commit is contained in:
@@ -453,6 +453,7 @@ static HRESULT vkd3d_create_vk_device(struct d3d12_device *device)
|
||||
return hr;
|
||||
}
|
||||
|
||||
device->vk_physical_device = physical_device;
|
||||
device->vk_device = vk_device;
|
||||
|
||||
TRACE("Created Vulkan device %p.\n", vk_device);
|
||||
@@ -1198,3 +1199,10 @@ VkInstance vkd3d_get_vk_instance(ID3D12Device *device)
|
||||
|
||||
return d3d12_device->vkd3d_instance.vk_instance;
|
||||
}
|
||||
|
||||
VkPhysicalDevice vkd3d_get_vk_physical_device(ID3D12Device *device)
|
||||
{
|
||||
struct d3d12_device *d3d12_device = impl_from_ID3D12Device(device);
|
||||
|
||||
return d3d12_device->vk_physical_device;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user