Struct openxr::Session[][src]

pub struct Session<G> { /* fields omitted */ }
Expand description

A rendering session using a particular graphics API G

Convertible into an API-agnostic session using Session::into_any_graphics.

Implementations

Access the raw session handle

Access the Instance self is descended from

Set the debug name of this Session, if XR_EXT_debug_utils is loaded

Request that the runtime show the application’s rendered output to the user

Request that the runtime show the application’s rendered output to the user, if XR_MSFT_secondary_view_configuration is loaded

Request a transition to SessionState::STOPPING so that end may be called.

Terminate a session in the SessionState::STOPPING state

See request_exit for active sessions.

Enumerate the set of reference space types supported for this session

Constant for the lifetime of the session.

Creates a Space based on a chosen reference space

Get the view and projection info for a particular display time

When rendering, this should be called as late as possible before the GPU accesses it to provide the most accurate possible poses.

Get the suggested interaction profile in use for a top level user path

May be NULL.

Enable use of action sets with a session

Once attached, action sets become immutable.

Designate active input actions and update their states

Get a name for the input source in the current system locale

Get a mesh describing the visible area of a view

Requires KHR_visibility_mask. Useful to skip shading fragments the user can’t see.

See also the VisibilityMaskChangedKHR event.

Create a hand tracker

Requires XR_EXT_hand_tracking

Enumerate the list of supported color spaces for [set_color_space]

Requires XR_FB_color_space

Specify the color space used in the final rendered frame

Requires XR_FB_color_space

Convert into a graphics API agnostic session

Useful for applications which support multiple graphics APIs, but don’t want G parameters everywhere.

Take ownership of an existing session handle

Safety

handle must be a valid session handle associated with instance which is not currently inside a frame and was created for graphics API G.

Enumerate texture formats supported by the current session

The type of formats returned is dependent on the graphics API for which the session was created.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.