Vixen
02b45cc4
csharp
public sealed class NullXrSession

A 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 InterpupillaryDistance

    How far apart the two eyes are, in metres.

  • public XrPose HeadPose

    Where the simulated head is. Move it to simulate a player moving.

  • public XrFieldOfView FieldOfView

    What both eyes' frustums are.

  • public TimeSpan FramePeriod

    How long a simulated frame lasts.

  • public long FrameCount

    How many frames have been begun.

  • public long RenderedFrames

    How many frames have been submitted with at least one layer.

  • public IReadOnlyList<XrActionSet> AttachedActionSets

    The sets a game attached.

  • public List<(XrAction Action, XrHand Hand, XrHapticPulse Pulse)> Haptics

    Every haptic pulse asked for, in order, so a test can assert one happened.

  • public XrSessionState State

    Where the session is in its lifecycle.

  • public int ViewCount

    How many views a frame has.

  • public XrSystemInfo System

    What the runtime said about the device.

  • public XrReferenceSpace ReferenceSpace

    What poses are reported relative to.

  • public ReadOnlySpan<XrView> Views

    The 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