Remove allocator from window renderer inputs (#2085)

This commit is contained in:
Okko Hakola 2022-11-12 17:10:40 +02:00 committed by GitHub
parent 7e09f59345
commit 6de6050764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -66,7 +66,6 @@ impl VulkanoWindowRenderer {
window: winit::window::Window,
descriptor: &WindowDescriptor,
swapchain_create_info_modify: fn(&mut SwapchainCreateInfo),
memory_allocator: Arc<StandardMemoryAllocator>,
) -> VulkanoWindowRenderer {
// Create rendering surface from window
let surface =
@ -89,7 +88,7 @@ impl VulkanoWindowRenderer {
compute_queue: vulkano_context.compute_queue().clone(),
swapchain: swap_chain,
final_views,
memory_allocator,
memory_allocator: vulkano_context.memory_allocator().clone(),
additional_image_views: HashMap::default(),
recreate_swapchain: false,
previous_frame_end,

View File

@ -168,7 +168,6 @@ impl VulkanoWindows {
winit_window,
window_descriptor,
swapchain_create_info_modify,
vulkano_context.memory_allocator().clone(),
),
);