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)
|
||||
}
|
||||
|
||||
fn resize(&self, width: u32, height: u32) -> Result<()> {
|
||||
self.0.resize(width, height)
|
||||
fn resize(&self, width: u32, height: u32, images: &TargetMode<Vec<Arc<Image>>>) -> Result<()> {
|
||||
self.0.resize(width, height, images)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ impl RenderBackend {
|
|||
*self.swapchain_images.lock().unwrap() = images;
|
||||
|
||||
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(())
|
||||
|
|
|
@ -32,7 +32,7 @@ pub trait PostProcess: Send + Sync {
|
|||
buffer_recorder: &mut CommandBufferRecorder<'_>,
|
||||
indices: &TargetMode<usize>,
|
||||
) -> 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 {
|
||||
|
|
Loading…
Reference in a new issue