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