[][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.

Implementations

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 or manually linking to an external loader or implementation.

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,
    layers: &[&str]
) -> 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

pub fn enumerate_layers(&self) -> Result<Vec<ApiLayerProperties>>[src]

Trait Implementations

impl Clone for Entry[src]

Auto Trait Implementations

impl RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl UnwindSafe for Entry

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> 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, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.