docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct XrSwapchainCreateInfo

    Creation info for a swapchain. https://registry.khronos.org/OpenXR/specs/1.0/man/html/XrSwapchainCreateInfo.html

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: solution.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. https://registry.khronos.org/OpenXR/specs/1.0/man/html/XrSwapchainCreateFlagBits.html

    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 API�s 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. https://registry.khronos.org/OpenXR/specs/1.0/man/html/XrStructureType.html

    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. https://registry.khronos.org/OpenXR/specs/1.0/man/html/XrSwapchainUsageFlagBits.html

    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)