pub struct VRDisplayCapabilities {
pub has_position: bool,
pub has_orientation: bool,
pub has_external_display: bool,
pub can_present: bool,
pub max_layers: u64,
}
describes the capabilities of a VRDisplay. These are expected to be static per-device/per-user.
true if the VRDisplay is capable of tracking its position.
true if the VRDisplay is capable of tracking its orientation.
true if the VRDisplay is separate from the device’s primary display
true if the VRDisplay is capable of presenting content to an HMD or similar device.
Indicates the maximum length of the array that requestPresent() will accept,
Must be 1 if canPresent is true, 0 otherwise.
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more