pub struct OpenXrInstance {
pub entry: Entry,
pub instance: Instance,
pub system: SystemId,
pub blend_mode: EnvironmentBlendMode,
pub runtime_name: String,
pub runtime_version: Version,
pub hand_tracking_supported: bool,
pub hand_aim_supported: bool,
pub composition_layer_cylinder_supported: bool,
}Expand description
Loaded OpenXR instance plus negotiated system capabilities.
The runtime and system handles remain valid for the lifetime of this value. Capability booleans reflect extensions enabled during construction, not a prediction about every individual input device.
§Examples
use ailloli_ui_openxr::OpenXrInstance;
fn report(instance: &OpenXrInstance) -> (&str, bool) {
(&instance.runtime_name, instance.hand_tracking_supported)
}Fields§
§entry: EntryDynamically loaded OpenXR entry table.
instance: InstanceCreated OpenXR instance handle.
system: SystemIdSelected head-mounted-display system identifier.
blend_mode: EnvironmentBlendModeFirst advertised stereo environment blend mode, or opaque fallback.
runtime_name: StringRuntime-reported implementation name.
runtime_version: VersionRuntime-reported implementation version.
hand_tracking_supported: boolWhether system hand tracking and its extension are available.
hand_aim_supported: boolWhether the FB hand-aim extension is enabled with hand tracking.
composition_layer_cylinder_supported: boolWhether native cylinder composition layers are enabled.
Trait Implementations§
Source§impl From<&OpenXrInstance> for OpenXrInputCapabilities
impl From<&OpenXrInstance> for OpenXrInputCapabilities
Source§fn from(xr: &OpenXrInstance) -> Self
fn from(xr: &OpenXrInstance) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenXrInstance
impl RefUnwindSafe for OpenXrInstance
impl Send for OpenXrInstance
impl Sync for OpenXrInstance
impl Unpin for OpenXrInstance
impl UnwindSafe for OpenXrInstance
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