wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Vulkan hal should allow specifying what memory barriers to insert for custom textures

Open i509VCB opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. In order to support images imported from external memory in the Vulkan hal, the images must have queue ownership transferred from a sentinel queue (FORIEGN or EXTERNAL) to the wgpu queue with an image memory barrier. The images must also be returned to the sentinel queue at the end of a command submission.

Describe the solution you'd like Creating a raw image in the vulkan hal should also allow parameters to be passed to specify what memory barriers need to be inserted.

Additional context This was discussed on Matrix but I am making an issue so I don't forget

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_QUEUE_FAMILY_EXTERNAL_KHR.html https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_QUEUE_FAMILY_FOREIGN_EXT.html

i509VCB avatar Aug 07 '22 02:08 i509VCB