[][src]Struct openxr::Entry

pub struct Entry { /* fields omitted */ }

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 according to the target platform's naming conventions

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]

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

impl Clone for Entry[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Entry

impl Sync for Entry

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>,