gfx-rs / portability

Vulkan Portability Implementation
Mozilla Public License 2.0
382 stars 25 forks source link

Support recording swapchain commands from multiple threads #218

Closed kvark closed 3 years ago

kvark commented 3 years ago

We had a nasty piece here:

// This is totally unsafe: if multiple threads would start recording render passes into

// that uses this swapchain, we'd have a race condition.

It was a shortcut to get things going when the new swapchain model was implement. However, it appears that applications do need that!

The solution involves fancy parking_lot mutex mapping with custom derefs, and it works great: portability-diligent-quads

kvark commented 3 years ago

bors r+

bors[bot] commented 3 years ago

Timed out.