openxr: configurable screen downscale

This commit is contained in:
galister
2024-07-29 22:14:25 +09:00
parent 57ff3ec3bc
commit dcc2cd0575
7 changed files with 58 additions and 17 deletions

View File

@@ -121,6 +121,10 @@ impl OverlayRenderer for MirrorRenderer {
fn view(&mut self) -> Option<std::sync::Arc<vulkano::image::view::ImageView>> {
self.renderer.as_mut().and_then(|r| r.view())
}
fn extent(&mut self) -> Option<[u32; 3]> {
Some(self.last_extent)
}
}
pub fn new_mirror(