Vixen
02b45cc4
csharp
public readonly record struct XrViewport

A rectangle of an eye buffer, in pixels.

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

Remarks

Integers, unlike Vixen.Core.Mathematics.Rectangle, which is a float rectangle for UI layout. A swapchain image is a grid of texels and half of one is not a thing a compositor can be told about — the runtime's own type is integral too, and rounding at the boundary is where a one-pixel seam down the middle of a stereo pair comes from.

Fields and properties (4)

  • public int X

    The left edge.

  • public int Y

    The top edge.

  • public int Width

    How wide.

  • public int Height

    How tall.

Methods (2)

  • public XrViewport(int X, int Y, int Width, int Height)

    A rectangle of an eye buffer, in pixels.

  • public static XrViewport Covering(Int2 size)

    The whole of a swapchain image.

Used by (3)

  • NullXrBackendTestsVixen.Xr.Tests
  • OpenXrSessionVixen.Xr.OpenXR
  • XrCompositionViewVixen.Xr