AreAllBitsSet
(
value
)
|
Signature
static bool AreAllBitsSet(this XrSpaceLocationFlags value) Parameters value: this XrSpaceLocationFlagsReturns bool |
IsError
(
value
)
|
Signature
static bool IsError(this XrResult value) Parameters value: this XrResultReturns bool |
IsOrientationTracked
(
value
)
|
Signature
static bool IsOrientationTracked(this XrSpaceLocationFlags value) Parameters value: this XrSpaceLocationFlagsReturns bool |
IsOrientationValid
(
value
)
|
Signature
static bool IsOrientationValid(this XrSpaceLocationFlags value) Parameters value: this XrSpaceLocationFlagsReturns bool |
IsPositionTracked
(
value
)
|
Signature
static bool IsPositionTracked(this XrSpaceLocationFlags value) Parameters value: this XrSpaceLocationFlagsReturns bool |
IsPositionValid
(
value
)
|
Signature
static bool IsPositionValid(this XrSpaceLocationFlags value) Parameters value: this XrSpaceLocationFlagsReturns bool |
IsSuccess
(
value
)
|
Signature
static bool IsSuccess(this XrResult value) Parameters value: this XrResultReturns bool |
IsUnqualifiedSuccess
(
value
)
|
Signature
static bool IsUnqualifiedSuccess(this XrResult value) Parameters value: this XrResultReturns bool |
Log
(
result
)
|
Logs an XrResult and returns the same value.
The log type (log, warning, or error) depends on whether the XrResult is an unqualified success (log), a qualified success (warning), or failure (error).
Signature
static XrResult Log(this XrResult result) Parameters result: this XrResult
The XrResult to log.
Returns XrResult
Returns result .
|
LogFormat
(
result
, format
)
|
Signature
static XrResult LogFormat(this XrResult result, string format) Parameters result: this XrResultformat: stringReturns XrResult |
OrLog
(
value
)
|
Signature
static XrResult OrLog(this XrResult value) Parameters value: this XrResultReturns XrResult |
OrLogFormat
(
value
, format
)
|
Signature
static XrResult OrLogFormat(this XrResult value, string format) Parameters value: this XrResultformat: stringReturns XrResult |
OrLogFormatUnless
(
value
, format
, expected
)
|
Logs a failing XrResult as an error unless it is the one failure the caller already handles, and returns the same value.
Some OpenXR calls have a documented failure that is a normal runtime state rather than a defect, for example XrResult.ErrorFormFactorUnavailable from xrGetSystem when no headset is connected. Reporting those as console errors trains developers to ignore the console. Opt in per call site rather than suppressing the value globally, so the same XrResult is still an error everywhere else. This only changes logging: value is returned untouched, so IsSuccess and every branch based on it behave exactly as before.
Signature
static XrResult OrLogFormatUnless(this XrResult value, string format, XrResult expected) Parameters value: this XrResult
The XrResult to log.
format: string
A composite format string with a single placeholder for value .
expected: XrResult
The single failing XrResult this call site expects and handles itself, which is therefore not logged.
Returns XrResult
Returns value .
|
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Sizef ToOVRPluginType(this XrExtent2Df value) Parameters value: this XrExtent2DfReturns OVRPlugin.Sizef |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Vector2f ToOVRPluginType(this XrOffset2Df value) Parameters value: this XrOffset2DfReturns OVRPlugin.Vector2f |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Rectf ToOVRPluginType(this XrRect2Df value) Parameters value: this XrRect2DfReturns OVRPlugin.Rectf |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Size3f ToOVRPluginType(this XrExtent3Df value) Parameters value: this XrExtent3DfReturns OVRPlugin.Size3f |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Vector3f ToOVRPluginType(this XrOffset3DfFB value) Parameters value: this XrOffset3DfFBReturns OVRPlugin.Vector3f |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Boundsf ToOVRPluginType(this XrRect3DfFB value) Parameters value: this XrRect3DfFBReturns OVRPlugin.Boundsf |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Quatf ToOVRPluginType(this XrQuaternionf value) Parameters value: this XrQuaternionfReturns OVRPlugin.Quatf |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Vector2f ToOVRPluginType(this XrVector2f value) Parameters value: this XrVector2fReturns OVRPlugin.Vector2f |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Vector3f ToOVRPluginType(this XrVector3f value) Parameters value: this XrVector3fReturns OVRPlugin.Vector3f |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Posef ToOVRPluginType(this XrPosef value) Parameters value: this XrPosefReturns OVRPlugin.Posef |
ToOVRPluginType
(
value
)
|
Signature
static OVRPlugin.Result ToOVRPluginType(this XrResult value) Parameters value: this XrResultReturns OVRPlugin.Result |
ToXrPosef
(
value
)
|
Signature
static XrPosef ToXrPosef(this OVRPlugin.Posef value) Parameters value: this OVRPlugin.PosefReturns XrPosef |
ToXrQuaternionf
(
value
)
|
Signature
static XrQuaternionf ToXrQuaternionf(this OVRPlugin.Quatf value) Parameters value: this OVRPlugin.QuatfReturns XrQuaternionf |
ToXrResult
(
value
)
|
Signature
static XrResult ToXrResult(this OVRPlugin.Result value) Parameters value: this OVRPlugin.ResultReturns XrResult |
ToXrVector3f
(
value
)
|
Signature
static XrVector3f ToXrVector3f(this OVRPlugin.Vector3f value) Parameters value: this OVRPlugin.Vector3fReturns XrVector3f |