Support event loops with custom user events (#2500)

This commit is contained in:
Michael Wu 2024-03-17 19:19:44 -04:00 committed by GitHub
parent 900166707e
commit 7cbf3a7f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,9 +44,9 @@ pub struct VulkanoWindows {
impl VulkanoWindows {
/// Creates a winit window with [`VulkanoWindowRenderer`] based on the given
/// [`WindowDescriptor`] input and swapchain creation modifications.
pub fn create_window(
pub fn create_window<T>(
&mut self,
event_loop: &winit::event_loop::EventLoopWindowTarget<()>,
event_loop: &winit::event_loop::EventLoopWindowTarget<T>,
vulkano_context: &VulkanoContext,
window_descriptor: &WindowDescriptor,
swapchain_create_info_modify: fn(&mut SwapchainCreateInfo),