From e0ba2fd2d33e8ee8a2228121ef92ad9f39989c76 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 17 Oct 2016 15:10:53 +0200 Subject: [PATCH] libs/vkd3d: Export a function to get the Vulkan queue from a d3d12 command queue. --- include/vkd3d.h | 1 + libs/vkd3d/command.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/vkd3d.h b/include/vkd3d.h index a76398d6..0a4ce2c9 100644 --- a/include/vkd3d.h +++ b/include/vkd3d.h @@ -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 } diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index 50578620..1fe3ce8b 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -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; +}