mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 00:04:15 +00:00
Fix VulkanoWindowRenderer::acquire
taking &Vec<T>
as well
This commit is contained in:
parent
4fcb869df2
commit
1b91d4e5a9
@ -263,7 +263,7 @@ impl VulkanoWindowRenderer {
|
|||||||
#[inline]
|
#[inline]
|
||||||
pub fn acquire(
|
pub fn acquire(
|
||||||
&mut self,
|
&mut self,
|
||||||
on_recreate_swapchain: impl FnOnce(&Vec<Arc<ImageView>>),
|
on_recreate_swapchain: impl FnOnce(&[Arc<ImageView>]),
|
||||||
) -> Result<Box<dyn GpuFuture>, VulkanError> {
|
) -> Result<Box<dyn GpuFuture>, VulkanError> {
|
||||||
// Recreate swap chain if needed (when resizing of window occurs or swapchain is outdated)
|
// Recreate swap chain if needed (when resizing of window occurs or swapchain is outdated)
|
||||||
// Also resize render views if needed
|
// Also resize render views if needed
|
||||||
|
Loading…
Reference in New Issue
Block a user