vulkano-rs / vulkano

Safe and rich Rust wrapper around the Vulkan API
Apache License 2.0
4.45k stars 435 forks source link

External queue provided by another library/application in a multithreaded program #2536

Open ystreet opened 2 months ago

ystreet commented 2 months ago

Looking through the API. I see many from_handle functions that can wrap an external handle which is great. Looking at the Queue object:

  1. there is no public from_handle (FIXME in the code)
  2. there is a with which performs the necessary 'externally synchronised' locking for queue operations. The other part that is missing for an externally provided queue is being able to (optionally) also provide an external locking mechanism.