docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct OpenXRCustomLayerHandler<T>.SwapchainCreateInfo

    Container for swapchain related information that may be needed during the creation of the native OpenXR composition layer struct.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.OpenXR.CompositionLayers
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    protected struct OpenXRCustomLayerHandler<T>.SwapchainCreateInfo

    Constructors

    SwapchainCreateInfo(XrSwapchainCreateInfo, bool, bool)

    Initializes and returns an instance of SwapchainCreateInfo with the provided parameters.

    Declaration
    public SwapchainCreateInfo(XrSwapchainCreateInfo xrSwapchainCreateInfo, bool isExternalSurface = false, bool isStereo = false)
    Parameters
    Type Name Description
    XrSwapchainCreateInfo xrSwapchainCreateInfo

    Native structure for the swapchain creation info.

    bool isExternalSurface

    Tells if swapchain is using an external surface.

    bool isStereo

    Tells if swapchain should be stereo.

    Fields

    isExternalSurface

    Tells if swapchain is using an external surface.

    Declaration
    public bool isExternalSurface
    Field Value
    Type Description
    bool

    isStereo

    Tells if swapchain should be stereo.

    Declaration
    public bool isStereo
    Field Value
    Type Description
    bool

    nativeStruct

    Native structure for the swapchain creation info.

    Declaration
    public XrSwapchainCreateInfo nativeStruct
    Field Value
    Type Description
    XrSwapchainCreateInfo

    Operators

    implicit operator SwapchainCreateInfo(XrSwapchainCreateInfo)

    Implicit conversion with just a native XrSwapchainCreateInfo struct.

    Declaration
    public static implicit operator OpenXRCustomLayerHandler<T>.SwapchainCreateInfo(XrSwapchainCreateInfo createInfo)
    Parameters
    Type Name Description
    XrSwapchainCreateInfo createInfo

    The native struct to convert.

    Returns
    Type Description
    OpenXRCustomLayerHandler<T>.SwapchainCreateInfo
    In This Article
    Back to top
    Copyright © 2025 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)