pub struct OpenXrQuadComposer { /* private fields */ }Expand description
Builds a standard quad layer referencing one Ailloli swapchain.
§Examples
use ailloli_ui_openxr::{OpenXrQuadComposer, OpenXrQuadLayerOptions};
let _composer = OpenXrQuadComposer::new(OpenXrQuadLayerOptions::default());Implementations§
Source§impl OpenXrQuadComposer
impl OpenXrQuadComposer
Sourcepub fn new(layer: OpenXrQuadLayerOptions) -> Self
pub fn new(layer: OpenXrQuadLayerOptions) -> Self
Creates a composer from fixed quad attributes.
§Examples
use ailloli_ui_openxr::{OpenXrQuadComposer, OpenXrQuadLayerOptions};
let _: OpenXrQuadComposer = OpenXrQuadComposer::new(OpenXrQuadLayerOptions::default());Sourcepub fn build_layer<'a>(
&self,
reference_space: &'a Space,
swapchain: &'a OpenXrQuadSwapchain,
) -> CompositionLayerQuad<'a, Vulkan>
pub fn build_layer<'a>( &self, reference_space: &'a Space, swapchain: &'a OpenXrQuadSwapchain, ) -> CompositionLayerQuad<'a, Vulkan>
Builds a borrowed quad composition layer for one frame submission.
The result references both reference_space and swapchain; keep both
alive through end_frame. Array image index is always zero.
§Examples
use ailloli_ui_openxr::{OpenXrQuadComposer, OpenXrQuadLayerOptions, OpenXrQuadSwapchain};
fn layer<'a>(composer: &OpenXrQuadComposer, space: &'a openxr::Space, swapchain: &'a OpenXrQuadSwapchain) -> openxr::CompositionLayerQuad<'a, openxr::Vulkan> {
composer.build_layer(space, swapchain)
}Auto Trait Implementations§
impl Freeze for OpenXrQuadComposer
impl RefUnwindSafe for OpenXrQuadComposer
impl Send for OpenXrQuadComposer
impl Sync for OpenXrQuadComposer
impl Unpin for OpenXrQuadComposer
impl UnwindSafe for OpenXrQuadComposer
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