static class OpenXR
This class is NOT of general interest, unless you are trying to add support for some unusual OpenXR extension! StereoKit should do all the OpenXR work that most people will need. If you find yourself here anyhow for something you feel StereoKit should support already, please add a feature request on Github!
This class contains handles and methods for working directly with OpenXR. This may allow you to activate or work with OpenXR extensions that StereoKit hasn’t implemented or exposed yet. Check that Backend.XRType is OpenXR before using any of this.
These properties may best be used with some external OpenXR binding library, but you may get some limited mileage with the API as provided here.
Static Fields and Properties
|UInt64 Instance||Type: XrInstance. StereoKit’s instance handle, valid after SK.Initialize.|
|UInt64 Session||Type: XrSession. StereoKit’s current session handle, this will be valid after SK.Initialize, but the session may not be started quite so early.|
|UInt64 Space||Type: XrSpace. StereoKit’s primary coordinate space, valid after SK.Initialize, this will most likely be created from
|Int64 Time||Type: XrTime. This is the OpenXR time for the current frame, and is available after SK.Initialize.|
|ExtEnabled||This tells if an OpenXR extension has been requested and successfully loaded by the runtime. This MUST only be called after SK.Initialize.|
|GetFunction||This is basically
|GetFunctionPtr||This is basically
|RequestExt||Requests that OpenXR load a particular extension. This MUST be called before SK.Initialize. Note that it’s entirely possible that your extension will not load on certain runtimes, so be sure to check ExtEnabled to see if it’s available to use.|
Found an issue with these docs, or have some additional questions? Create an Issue on Github!