omg: curved screens

This commit is contained in:
galister
2024-03-21 21:04:20 +01:00
parent 82374a60a0
commit 155f653f32
8 changed files with 192 additions and 53 deletions

View File

@@ -19,7 +19,7 @@ use crate::{
use super::{
swapchain::{create_swapchain_render_data, SwapchainRenderData},
XrState,
CompositionLayer, XrState,
};
static AUTO_INCREMENT: AtomicUsize = AtomicUsize::new(1);
@@ -135,7 +135,7 @@ impl LinePool {
&'a mut self,
xr: &'a XrState,
command_buffer: &mut WlxCommandBuffer,
) -> anyhow::Result<Vec<xr::CompositionLayerQuad<xr::Vulkan>>> {
) -> anyhow::Result<Vec<CompositionLayer>> {
let mut quads = Vec::new();
for line in self.lines.values_mut() {
@@ -155,7 +155,7 @@ impl LinePool {
height: inner.length,
});
quads.push(quad);
quads.push(CompositionLayer::Quad(quad));
}
}