openxr: submit dummy layer if nothing is visible

This commit is contained in:
galister
2024-02-07 16:49:57 +01:00
parent c1841243ce
commit 57f954025e
2 changed files with 21 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ use std::{
atomic::{AtomicUsize, Ordering},
Arc,
},
usize,
};
use vulkano::{command_buffer::CommandBufferUsage, format::Format, image::view::ImageView};
@@ -152,6 +153,14 @@ impl LinePool {
quads
}
/// the number of lines that are waiting to be drawn
pub(super) fn num_pending(&self) -> usize {
self.lines
.values()
.filter(|l| l.maybe_line.is_some())
.count()
}
}
pub(super) struct Line {