Fix resize
This commit is contained in:
parent
2be32bd5a3
commit
ead7f792b3
3 changed files with 4 additions and 4 deletions
|
@ -68,8 +68,8 @@ impl context::prelude::PostProcess for GuiPostProcess {
|
||||||
self.0.process(buffer_recorder, indices)
|
self.0.process(buffer_recorder, indices)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn resize(&self, width: u32, height: u32) -> Result<()> {
|
fn resize(&self, width: u32, height: u32, images: &TargetMode<Vec<Arc<Image>>>) -> Result<()> {
|
||||||
self.0.resize(width, height)
|
self.0.resize(width, height, images)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,7 +199,7 @@ impl RenderBackend {
|
||||||
*self.swapchain_images.lock().unwrap() = images;
|
*self.swapchain_images.lock().unwrap() = images;
|
||||||
|
|
||||||
for post_process in self.post_processes.lock().unwrap().iter() {
|
for post_process in self.post_processes.lock().unwrap().iter() {
|
||||||
post_process.resize(width, height)?;
|
post_process.resize(width, height, &*self.swapchain_images.lock().unwrap())?;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
@ -32,7 +32,7 @@ pub trait PostProcess: Send + Sync {
|
||||||
buffer_recorder: &mut CommandBufferRecorder<'_>,
|
buffer_recorder: &mut CommandBufferRecorder<'_>,
|
||||||
indices: &TargetMode<usize>,
|
indices: &TargetMode<usize>,
|
||||||
) -> Result<()>;
|
) -> Result<()>;
|
||||||
fn resize(&self, width: u32, height: u32) -> Result<()>;
|
fn resize(&self, width: u32, height: u32, images: &TargetMode<Vec<Arc<Image>>>) -> Result<()>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait RenderCore: std::fmt::Debug + Send + Sync {
|
pub trait RenderCore: std::fmt::Debug + Send + Sync {
|
||||||
|
|
Loading…
Reference in a new issue