libs/vkd3d: Export a function to get the Vulkan queue from a d3d12 command queue.

This commit is contained in:
Henri Verbeet 2016-10-17 15:10:53 +02:00
parent 7568a9793c
commit e0ba2fd2d3
2 changed files with 8 additions and 0 deletions

View File

@ -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
}

View File

@ -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;
}