public sealed class NullXrSessionA session against a headset that is not there.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (13)
public float InterpupillaryDistanceHow far apart the two eyes are, in metres.
public XrPose HeadPoseWhere the simulated head is. Move it to simulate a player moving.
public XrFieldOfView FieldOfViewWhat both eyes' frustums are.
public TimeSpan FramePeriodHow long a simulated frame lasts.
public long FrameCountHow many frames have been begun.
public long RenderedFramesHow many frames have been submitted with at least one layer.
public IReadOnlyList<XrActionSet> AttachedActionSetsThe sets a game attached.
public List<(XrAction Action, XrHand Hand, XrHapticPulse Pulse)> HapticsEvery haptic pulse asked for, in order, so a test can assert one happened.
public XrSessionState StateWhere the session is in its lifecycle.
public int ViewCountHow many views a frame has.
public XrSystemInfo SystemWhat the runtime said about the device.
public XrReferenceSpace ReferenceSpaceWhat poses are reported relative to.
public ReadOnlySpan<XrView> ViewsThe views located for the current frame, one per eye.
Methods (11)
public IXrSwapchain CreateSwapchain(in XrSwapchainDescription description)Creates a swapchain for eye buffers.
public bool PollEvents()public bool BeginFrame(out XrFrameState frame)Waits for the runtime to want the next frame, and begins it.
public ReadOnlySpan<XrView> LocateViews(in XrFrameState frame)Asks where the eyes will be when the frame is displayed.
public bool LocateSpace(XrReferenceSpace space, in XrFrameState frame, out XrPose pose)Locates something the runtime tracks, in the session's reference space.
public void EndFrame(in XrFrameState frame, ReadOnlySpan<XrCompositionView> views)Submits the frame.
public void AttachActionSets(ReadOnlySpan<XrActionSet> sets)Attaches the action sets, after which they cannot be changed.
public void SyncActions()public void ApplyHaptics(XrAction action, XrHand hand, in XrHapticPulse request)Plays a haptic pulse.
public void RequestExit()Asks the runtime to end the session.
public void Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Used by (3)
- NullXrBackendVixen.Xr
- NullXrBackendTestsVixen.Xr.Tests
- XrTrackingSystemTestsVixen.Xr.Tests