docs.unity.cn
    Show / Hide Table of Contents

    Class XRCpuImageFormatExtensions

    Extensions to the XRCpuImage.Format enum.

    Inheritance
    Object
    XRCpuImageFormatExtensions
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 12 February 2021