This an issue currently blocking Vulkano support in rust-SDL2 Rust-SDL2/rust-sdl2#785.
The current implementation of vulkano::command_buffer::AutoCommandBufferBuilder::begin_render_pass (and possibly others) requires framebuffer to be Send+Sync. This in turn requires vulkano::swapchain::Surface<W> to also be Send+Sync. Unfortunately rust-SDL2 has the requirement that it's windows cannot be sent between threads, and thus cannot be stored in a Surface<W>.
Is there any way of removing the Send+Sync requirement of W in Surface<W>?
This an issue currently blocking Vulkano support in rust-SDL2 Rust-SDL2/rust-sdl2#785.
The current implementation of
vulkano::command_buffer::AutoCommandBufferBuilder::begin_render_pass(and possibly others) requiresframebufferto beSend+Sync. This in turn requiresvulkano::swapchain::Surface<W>to also beSend+Sync. Unfortunately rust-SDL2 has the requirement that it's windows cannot be sent between threads, and thus cannot be stored in aSurface<W>.Is there any way of removing the
Send+Syncrequirement ofWinSurface<W>?