docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSwapchainCreateInfo

    Creation info for a swapchain. OpenXR Spec

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)