Class reference

OpenXRFutureResult

Inherits RefCounted

Result object tracking the asynchronous result of an OpenXR Future object.

Description

Result object tracking the asynchronous result of an OpenXR Future object, you can use this object to track the result status.

Methods

void cancel_future()

Cancel this future, this will interrupt and stop the asynchronous function.

int get_future() const

Return the XrFutureEXT value this result relates to.

Variant get_result_value() const

Returns the result value of our asynchronous function (if set by the extension). The type of this result value depends on the function being called. Consult the documentation of the relevant function.

int get_status() const

Returns the status of this result.

void set_result_value(Variant result_value)

Stores the result value we expose to the user. Note: This method should only be called by an OpenXR extension that implements an asynchronous function.

Signals

completed(OpenXRFutureResult result)

Emitted when the asynchronous function is finished or has been cancelled.

Constants

RESULT_RUNNING = 0

Enum: ResultStatus

The asynchronous function is running.

RESULT_FINISHED = 1

Enum: ResultStatus

The asynchronous function has finished.

RESULT_CANCELLED = 2

Enum: ResultStatus

The asynchronous function has been cancelled.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.