pub struct VRDisplayCapabilities {
pub has_position: bool,
pub has_orientation: bool,
pub has_external_display: bool,
pub can_present: bool,
pub presented_by_browser: bool,
pub max_layers: u64,
}
Expand description
describes the capabilities of a VRDisplay. These are expected to be static per-device/per-user.
Fields§
§has_position: bool
true if the VRDisplay is capable of tracking its position.
has_orientation: bool
true if the VRDisplay is capable of tracking its orientation.
has_external_display: bool
true if the VRDisplay is separate from the device’s primary display
can_present: bool
true if the VRDisplay is capable of presenting content to an HMD or similar device.
presented_by_browser: bool
👎Deprecated since 0.10.3: please use
future_frame_data
insteadtrue if the VR display expects the browser to present the content.
This is now deprecated, a better solution is to implement future_frame_data
and have the future resolve when the next animation frame is ready.
max_layers: u64
Indicates the maximum length of the array that requestPresent() will accept, Must be 1 if canPresent is true, 0 otherwise.
Trait Implementations§
Source§impl Clone for VRDisplayCapabilities
impl Clone for VRDisplayCapabilities
Source§fn clone(&self) -> VRDisplayCapabilities
fn clone(&self) -> VRDisplayCapabilities
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VRDisplayCapabilities
impl Debug for VRDisplayCapabilities
Source§impl Default for VRDisplayCapabilities
impl Default for VRDisplayCapabilities
Source§fn default() -> VRDisplayCapabilities
fn default() -> VRDisplayCapabilities
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VRDisplayCapabilities
impl RefUnwindSafe for VRDisplayCapabilities
impl Send for VRDisplayCapabilities
impl Sync for VRDisplayCapabilities
impl Unpin for VRDisplayCapabilities
impl UnwindSafe for VRDisplayCapabilities
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