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
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 |
---|---|---|
Xr |
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 |
---|---|
Xr |
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 |
---|---|---|
Xr |
createInfo | The native struct to convert. |
Returns
Type | Description |
---|---|
Open |