pub struct OpenXrExternalUiHostFrameResult<'a, A> {
pub stats: VulkanRendererStats,
pub actions: Vec<A>,
pub input: OpenXrActionInputFrame,
pub ui_layer: CompositionLayerQuad<'a, Vulkan>,
pub ray_layer: Option<CompositionLayerQuad<'a, Vulkan>>,
}Expand description
Rendered UI outputs and borrowed layers ready for end_frame.
The layer values borrow the host’s swapchains; consume them before mutably borrowing the host for another frame.
§Examples
use ailloli_ui_openxr::OpenXrExternalUiHostFrameResult;
fn action_count<A>(result: &OpenXrExternalUiHostFrameResult<'_, A>) -> usize { result.actions.len() }Fields§
§stats: VulkanRendererStatsRenderer counters for the completed UI frame.
actions: Vec<A>Runtime actions drained after processing the frame.
input: OpenXrActionInputFrameSelected pointer, optional ray, and source metadata.
ui_layer: CompositionLayerQuad<'a, Vulkan>UI quad composition layer; always present after success.
ray_layer: Option<CompositionLayerQuad<'a, Vulkan>>Ray composition layer when overlay and a selected ray are present.
Implementations§
Source§impl<A> OpenXrExternalUiHostFrameResult<'_, A>
impl<A> OpenXrExternalUiHostFrameResult<'_, A>
Sourcepub fn layer_refs(&self) -> Vec<&CompositionLayerBase<'_, Vulkan>>
pub fn layer_refs(&self) -> Vec<&CompositionLayerBase<'_, Vulkan>>
Returns UI then optional ray as erased composition-layer references.
The vector length is one without a ray and two with a ray. This allocates one small vector per call.
§Examples
use ailloli_ui_openxr::OpenXrExternalUiHostFrameResult;
fn layers<A>(result: &OpenXrExternalUiHostFrameResult<'_, A>) -> usize { result.layer_refs().len() }Auto Trait Implementations§
impl<'a, A> Freeze for OpenXrExternalUiHostFrameResult<'a, A>
impl<'a, A> RefUnwindSafe for OpenXrExternalUiHostFrameResult<'a, A>where
A: RefUnwindSafe,
impl<'a, A> !Send for OpenXrExternalUiHostFrameResult<'a, A>
impl<'a, A> !Sync for OpenXrExternalUiHostFrameResult<'a, A>
impl<'a, A> Unpin for OpenXrExternalUiHostFrameResult<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for OpenXrExternalUiHostFrameResult<'a, A>where
A: UnwindSafe,
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