csharp
public readonly record struct XrViewportA 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 XThe left edge.
public int YThe top edge.
public int WidthHow wide.
public int HeightHow 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