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 queue from a d3d12 command queue.
This commit is contained in:
parent
7568a9793c
commit
e0ba2fd2d3
@ -46,6 +46,7 @@ HRESULT vkd3d_create_image_resource(ID3D12Device *device, const D3D12_RESOURCE_D
|
||||
VkImage vk_image, ID3D12Resource **resource);
|
||||
VkDevice vkd3d_get_vk_device(ID3D12Device *device);
|
||||
VkInstance vkd3d_get_vk_instance(ID3D12Device *device);
|
||||
VkQueue vkd3d_get_vk_queue(ID3D12CommandQueue *queue);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -2461,3 +2461,10 @@ HRESULT d3d12_command_queue_create(struct d3d12_device *device,
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
VkQueue vkd3d_get_vk_queue(ID3D12CommandQueue *queue)
|
||||
{
|
||||
struct d3d12_command_queue *d3d12_queue = impl_from_ID3D12CommandQueue(queue);
|
||||
|
||||
return d3d12_queue->vk_queue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user