pub enum OpenXrScreenLayer<'a> {
Quad(CompositionLayerQuad<'a, Vulkan>),
Cylinder(CompositionLayerCylinderKHR<'a, Vulkan>),
}Expand description
Borrowed OpenXR composition layer produced by a screen composer.
§Examples
use ailloli_ui_openxr::OpenXrScreenLayer;
fn submit(layer: &OpenXrScreenLayer<'_>) {
let _base: &openxr::CompositionLayerBase<'_, openxr::Vulkan> = layer.as_base();
}Variants§
Quad(CompositionLayerQuad<'a, Vulkan>)
Flat quad layer, also used as the current mesh-fallback submission shell.
Cylinder(CompositionLayerCylinderKHR<'a, Vulkan>)
Native cylinder-extension layer.
Implementations§
Source§impl<'a> OpenXrScreenLayer<'a>
impl<'a> OpenXrScreenLayer<'a>
Sourcepub fn as_base(&self) -> &CompositionLayerBase<'_, Vulkan>
pub fn as_base(&self) -> &CompositionLayerBase<'_, Vulkan>
Erases the concrete layer type for Session::end_frame submission.
§Examples
use ailloli_ui_openxr::OpenXrScreenLayer;
fn base<'a>(layer: &'a OpenXrScreenLayer<'a>) -> &'a openxr::CompositionLayerBase<'a, openxr::Vulkan> {
layer.as_base()
}Auto Trait Implementations§
impl<'a> Freeze for OpenXrScreenLayer<'a>
impl<'a> RefUnwindSafe for OpenXrScreenLayer<'a>
impl<'a> !Send for OpenXrScreenLayer<'a>
impl<'a> !Sync for OpenXrScreenLayer<'a>
impl<'a> Unpin for OpenXrScreenLayer<'a>
impl<'a> UnwindSafe for OpenXrScreenLayer<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more