docs.unity.cn
    Show / Hide Table of Contents

    Class XRCpuImageFormatExtensions

    Extensions to the XRCpuImage.Format enum.

    Inheritance
    Object
    XRCpuImageFormatExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    public static class XRCpuImageFormatExtensions

    Methods

    AsTextureFormat(XRCpuImage.Format)

    Attempts to convert an XRCpuImage.Format to a UnityEngine.TextureFormat.

    Declaration
    public static TextureFormat AsTextureFormat(this XRCpuImage.Format this)
    Parameters
    Type Name Description
    XRCpuImage.Format this

    The XRCpuImage.Format being extended.

    Returns
    Type Description
    TextureFormat

    Returns a TextureFormat that matches this if possible. Returns 0 if there is no matching TextureFormat.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, May 22, 2023