Class XRCpuImageFormatExtensions
Extensions to convert between Texture
Inherited Members
Namespace: UnityEngine .XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
public static class XRCpuImageFormatExtensions
Methods
AsTextureFormat(Format)
Attempts to convert an XRCpu
Declaration
public static TextureFormat AsTextureFormat(this XRCpuImage.Format @this)
Parameters
Type | Name | Description |
---|---|---|
XRCpu |
this | Defines an extension of XRCpu |
Returns
Type | Description |
---|---|
Texture |
Returns a texture format that matches |
ToXRCpuImageFormat(TextureFormat)
Attempts to convert a Texture
Declaration
public static XRCpuImage.Format ToXRCpuImageFormat(this TextureFormat @this)
Parameters
Type | Name | Description |
---|---|---|
Texture |
this | Defines an extension of Texture |
Returns
Type | Description |
---|---|
XRCpu |
Returns a XRCpu |
Remarks
For some formats, there may be multiple XRCpu