[−][src]Struct openxr::Entry
Entry point to the API. Start here.
An Entry
represents access to an OpenXR implementation. When the crate is built with the
linked
feature, this can be obtained at compile time with the linked
constructor. The
static
feature provides a built-in copy of the Khronos OpenXR loader for use in this
pattern. Alternatively, the loaded
feature exposes the load
and load_from
constructors to
manually load an OpenXR implementation at run-time.
Methods
impl Entry
[src]
pub fn linked() -> Self
[src]
Access entry points linked directly into the binary at compile time
Available if the linked
feature is enabled. You must ensure that the entry points are
actually linked into the binary, e.g. by enabling the static
feature.
pub fn load() -> Result<Self, LoadError>
[src]
Load entry points at run time from the dynamic library openxr_loader
Available if the loaded
feature is enabled.
pub fn load_from(path: &Path) -> Result<Self, LoadError>
[src]
Load entry points at run time from the dynamic library identified by path
Available if the loaded
feature is enabled.
pub fn fp(&self) -> &RawEntry
[src]
Access the raw function pointers
pub fn create_instance(
&self,
app_info: ApplicationInfo,
required_extensions: &ExtensionSet
) -> Result<Instance>
[src]
&self,
app_info: ApplicationInfo,
required_extensions: &ExtensionSet
) -> Result<Instance>
Create an OpenXR instance with certain extensions enabled
Most applications will want to enable at least one graphics API extension
(e.g. khr_vulkan_enable
) so that a Session
can be created for rendering.
pub fn enumerate_extensions(&self) -> Result<ExtensionSet>
[src]
Determine the set of extensions supported by this OpenXR implementation
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,