Struct XrInstance
An OpenXR instance is an object that allows an OpenXR application to communicate with an OpenXR runtime. The application accomplishes this communication by calling xrCreateInstance and receiving a handle to the resulting XrInstance object.
The XrInstance object stores and tracks OpenXR-related application state, without storing any such state in the application’s global address space. This allows the application to create multiple instances as well as safely encapsulate the application’s OpenXR state since this object is opaque to the application. OpenXR runtimes may limit the number of simultaneous XrInstance objects that may be created and used, but they must support the creation and usage of at least one XrInstance object per process.
Assembly: VIVE.OpenXR.dll
Syntax
public struct XrInstance : IEquatable<ulong>
Constructors
XrInstance(ulong)
Declaration
public XrInstance(ulong u)
Parameters
Type |
Name |
Description |
ulong |
u |
|
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
Equals(ulong)
Declaration
public bool Equals(ulong other)
Parameters
Type |
Name |
Description |
ulong |
other |
|
Returns
Equals(XrInstance)
Declaration
public bool Equals(XrInstance other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator +(XrInstance, XrInstance)
Declaration
public static XrInstance operator +(XrInstance a, XrInstance b)
Parameters
Returns
operator /(XrInstance, XrInstance)
Declaration
public static XrInstance operator /(XrInstance a, XrInstance b)
Parameters
Returns
operator ==(XrInstance, XrInstance)
Declaration
public static bool operator ==(XrInstance a, XrInstance b)
Parameters
Returns
operator >(XrInstance, XrInstance)
Declaration
public static bool operator >(XrInstance a, XrInstance b)
Parameters
Returns
operator >=(XrInstance, XrInstance)
Declaration
public static bool operator >=(XrInstance a, XrInstance b)
Parameters
Returns
implicit operator XrInstance(ulong)
Declaration
public static implicit operator XrInstance(ulong u)
Parameters
Type |
Name |
Description |
ulong |
u |
|
Returns
implicit operator ulong(XrInstance)
Declaration
public static implicit operator ulong(XrInstance equatable)
Parameters
Returns
operator !=(XrInstance, XrInstance)
Declaration
public static bool operator !=(XrInstance a, XrInstance b)
Parameters
Returns
operator <(XrInstance, XrInstance)
Declaration
public static bool operator <(XrInstance a, XrInstance b)
Parameters
Returns
operator <=(XrInstance, XrInstance)
Declaration
public static bool operator <=(XrInstance a, XrInstance b)
Parameters
Returns
operator *(XrInstance, XrInstance)
Declaration
public static XrInstance operator *(XrInstance a, XrInstance b)
Parameters
Returns
operator -(XrInstance, XrInstance)
Declaration
public static XrInstance operator -(XrInstance a, XrInstance b)
Parameters
Returns
Implements