Vixen
02b45cc4
csharp
public readonly record struct XrFrameState

What one frame's timing is.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (3)

  • public long PredictedDisplayTime

    When the frame will be shown, in the runtime's own clock. Opaque, and the thing to pass back when asking where the head will be — not a number to do arithmetic on.

  • public TimeSpan PredictedDisplayPeriod

    How long a frame is expected to last.

  • public bool ShouldRender

    Whether drawing anything is worth it. False while the session is synchronised but not visible: the frame still has to be submitted, with no layers.

Methods (1)

  • public XrFrameState(long PredictedDisplayTime, TimeSpan PredictedDisplayPeriod, bool ShouldRender)

    What one frame's timing is.

Used by (5)

  • IXrSessionVixen.Xr
  • NullXrBackendTestsVixen.Xr.Tests
  • NullXrSessionVixen.Xr
  • OpenXrSessionVixen.Xr.OpenXR
  • XrTrackingSystemTestsVixen.Xr.Tests