Struct XrSwapchain
Normal XR applications will want to present rendered images to the user. To allow this, the runtime provides images organized in swapchains for the application to render into. The runtime must allow applications to create multiple swapchains.
Swapchain image format support by the runtime is specified by the xrEnumerateSwapchainFormats function.Runtimes should support R8G8B8A8 and R8G8B8A8 sRGB formats if possible.
Swapchain images can be 2D or 2D Array.
Rendering operations involving composition of submitted layers are assumed to be internally performed by the runtime in linear color space.Images submitted in sRGB color space must be created using an API-specific sRGB format(e.g.DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, GL_SRGB8_ALPHA8, VK_FORMAT_R8G8B8A8_SRGB) to apply automatic sRGB-to-linear conversion when read by the runtime.All other formats will be treated as linear values.
Assembly: VIVE.OpenXR.dll
Syntax
public struct XrSwapchain : IEquatable<ulong>
Constructors
XrSwapchain(ulong)
Declaration
public XrSwapchain(ulong u)
Parameters
Type |
Name |
Description |
ulong |
u |
|
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
Equals(ulong)
Declaration
public bool Equals(ulong other)
Parameters
Type |
Name |
Description |
ulong |
other |
|
Returns
Equals(XrSwapchain)
Declaration
public bool Equals(XrSwapchain other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator +(XrSwapchain, XrSwapchain)
Declaration
public static XrSwapchain operator +(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator /(XrSwapchain, XrSwapchain)
Declaration
public static XrSwapchain operator /(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator ==(XrSwapchain, XrSwapchain)
Declaration
public static bool operator ==(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator >(XrSwapchain, XrSwapchain)
Declaration
public static bool operator >(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator >=(XrSwapchain, XrSwapchain)
Declaration
public static bool operator >=(XrSwapchain a, XrSwapchain b)
Parameters
Returns
implicit operator XrSwapchain(ulong)
Declaration
public static implicit operator XrSwapchain(ulong u)
Parameters
Type |
Name |
Description |
ulong |
u |
|
Returns
implicit operator ulong(XrSwapchain)
Declaration
public static implicit operator ulong(XrSwapchain xrBool)
Parameters
Returns
operator !=(XrSwapchain, XrSwapchain)
Declaration
public static bool operator !=(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator <(XrSwapchain, XrSwapchain)
Declaration
public static bool operator <(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator <=(XrSwapchain, XrSwapchain)
Declaration
public static bool operator <=(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator *(XrSwapchain, XrSwapchain)
Declaration
public static XrSwapchain operator *(XrSwapchain a, XrSwapchain b)
Parameters
Returns
operator -(XrSwapchain, XrSwapchain)
Declaration
public static XrSwapchain operator -(XrSwapchain a, XrSwapchain b)
Parameters
Returns
Implements