mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d: Export a function to get the Vulkan instance from a d3d12 device.
This commit is contained in:
parent
2a49173b60
commit
feacd1af50
@ -44,6 +44,7 @@ HRESULT vkd3d_create_device(const struct vkd3d_device_create_info *create_info,
|
|||||||
REFIID riid, void **device);
|
REFIID riid, void **device);
|
||||||
HRESULT vkd3d_create_image_resource(ID3D12Device *device, const D3D12_RESOURCE_DESC *desc,
|
HRESULT vkd3d_create_image_resource(ID3D12Device *device, const D3D12_RESOURCE_DESC *desc,
|
||||||
VkImage vk_image, ID3D12Resource **resource);
|
VkImage vk_image, ID3D12Resource **resource);
|
||||||
|
VkInstance vkd3d_get_vk_instance(ID3D12Device *device);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -1150,3 +1150,10 @@ HRESULT d3d12_device_create(const struct vkd3d_device_create_info *create_info,
|
|||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VkInstance vkd3d_get_vk_instance(ID3D12Device *device)
|
||||||
|
{
|
||||||
|
struct d3d12_device *d3d12_device = impl_from_ID3D12Device(device);
|
||||||
|
|
||||||
|
return d3d12_device->vkd3d_instance.vk_instance;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user