Vixen
02b45cc4

XrSwapchainDescription

struct Core/Vixen.Xr/XrSwapchain.cs:22
csharp
public readonly record struct XrSwapchainDescription

What to create an eye buffer as.

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

Fields and properties (6)

  • public Int2 Size

    Its size in pixels, per view.

  • public PixelFormat Format

    The format to ask for. A runtime supports a list of them and will refuse anything else, so read Format back rather than assuming this was granted.

  • public int ArrayLayers

    How many layers. Two is the multiview case: both eyes in one array texture, rendered in one pass, which is where the halving of draw-call cost comes from.

  • public int SampleCount

    How many samples per pixel.

  • public TextureUsage Usage

    What the images will be used for.

  • public string Name

    A name for the debugger and captures.

Methods (1)

  • public XrSwapchainDescription(Int2 Size, PixelFormat Format = Rgba8UNormSrgb, int ArrayLayers = 1, int SampleCount = 1, TextureUsage Usage = Sampled | ColourTarget, string Name = "")

    What to create an eye buffer as.

Used by (6)

  • IXrSessionVixen.Xr
  • NullXrBackendTestsVixen.Xr.Tests
  • NullXrSessionVixen.Xr
  • NullXrSwapchainVixen.Xr
  • OpenXrSessionVixen.Xr.OpenXR
  • OpenXrSwapchainVixen.Xr.OpenXR