Fix VulkanoWindowRenderer::acquire taking &Vec<T> as well

This commit is contained in:
marc0246 2024-02-21 09:24:50 +01:00
parent 4fcb869df2
commit 1b91d4e5a9
No known key found for this signature in database
GPG Key ID: 689CB88C1090C684

View File

@ -263,7 +263,7 @@ impl VulkanoWindowRenderer {
#[inline]
pub fn acquire(
&mut self,
on_recreate_swapchain: impl FnOnce(&Vec<Arc<ImageView>>),
on_recreate_swapchain: impl FnOnce(&[Arc<ImageView>]),
) -> Result<Box<dyn GpuFuture>, VulkanError> {
// Recreate swap chain if needed (when resizing of window occurs or swapchain is outdated)
// Also resize render views if needed