Struct XrSwapchainCreateInfo
Creation info for a swapchain. OpenXR Spec
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public struct XrSwapchainCreateInfo
Fields
ArraySize
The number of array layers in the image or 1 for a 2D image, must not be 0 or greater than the graphics API�s maximum limit.
Declaration
public uint ArraySize
Field Value
Type | Description |
---|---|
uint |
CreateFlags
Bitmask of XrSwapchainCreateFlagBits describing additional properties of the swapchain. OpenXR Spec
Declaration
public ulong CreateFlags
Field Value
Type | Description |
---|---|
ulong |
FaceCount
The number of faces, which can be either 6 (for cubemaps) or 1.
Declaration
public uint FaceCount
Field Value
Type | Description |
---|---|
uint |
Format
The graphics API-specific texture format identifier. Can use OpenXRLayerUtility.GetDefaultColorFormat() to get the default format.
Declaration
public long Format
Field Value
Type | Description |
---|---|
long |
Height
The height of the image, must not be 0 or greater than the graphics API�s maximum limit.
Declaration
public uint Height
Field Value
Type | Description |
---|---|
uint |
MipCount
Describes the number of levels of detail available for minified sampling of the image, must not be 0 or greater than the graphics APIs maximum limit.
Declaration
public uint MipCount
Field Value
Type | Description |
---|---|
uint |
Next
Pointer to the next structure in a structure chain. Can be null.
Declaration
public void* Next
Field Value
Type | Description |
---|---|
void* |
SampleCount
The number of sub-data element samples in the image, must not be 0 or greater than the graphics API�s maximum limit.
Declaration
public uint SampleCount
Field Value
Type | Description |
---|---|
uint |
Type
The XrStructureType of this structure. OpenXR Spec
Declaration
public uint Type
Field Value
Type | Description |
---|---|
uint |
UsageFlags
Bitmask of XrSwapchainUsageFlagBits describing the intended usage of the swapchain�s images. The usage flags define how the corresponding graphics API objects are created. A mismatch may result in swapchain images that do not support the application�s usage. OpenXR Spec
Declaration
public ulong UsageFlags
Field Value
Type | Description |
---|---|
ulong |
Width
The width of the image, must not be 0 or greater than the graphics API�s maximum limit.
Declaration
public uint Width
Field Value
Type | Description |
---|---|
uint |