wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Expose the vk::Queue in the Vulkan hal

Open anlumo opened this issue 3 years ago • 3 comments

Connections

Followup to #2667.

Description

Allows users of wgpu to access vk::Queue using a simple accessor in the Vulkan backend.

anlumo avatar Aug 07 '22 15:08 anlumo

Would it be useful to also expose the vk::Queue on the Vulkan hal's Queue type?

i509VCB avatar Aug 08 '22 17:08 i509VCB

Would it be useful to also expose the vk::Queue on the Vulkan hal's Queue type?

I have looked into that, but I couldn't find a way to access the wgpu_hal::Queue from the wgpu::Queue, so it was kinda pointless. The wgpu::Queue only has a QueueId, which is a key in a hash table for looking up the device (at least that's what I understood from the code).

anlumo avatar Aug 08 '22 17:08 anlumo

Would it be useful to also expose the vk::Queue on the Vulkan hal's Queue type?

I have looked into that, but I couldn't find a way to access the wgpu_hal::Queue from the wgpu::Queue, so it was kinda pointless. The wgpu::Queue only has a QueueId, which is a key in a hash table for looking up the device (at least that's what I understood from the code).

ah okay so it doesn't make sense to expose then

i509VCB avatar Aug 08 '22 18:08 i509VCB