Trying to fix empty rendering

This commit is contained in:
hodasemi 2025-04-07 15:37:05 +02:00
parent 83c358ad7e
commit c3aafa1911

View file

@ -679,6 +679,9 @@ where
let index = *indices.mono();
self.copy_source_image(buffer_recorder, &images.mono()[index])?;
if self.vertex_count != 0 {
if let Some(scene_buffer) = self.animator.animate(
&content,
self.vertex_count,
@ -690,8 +693,6 @@ where
.update(&[DescriptorWrite::storage_buffers(0, &[scene_buffer])])?;
}
self.copy_source_image(buffer_recorder, &images.mono()[index])?;
self.renderer.process(
buffer_recorder,
&[
@ -704,6 +705,7 @@ where
self.animator.buffer(),
index,
)?;
}
self.present_image(buffer_recorder, &images.mono()[index])?;