Class TextureFormatUtils | Barracuda | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureFormatUtils

    Inheritance
    Object
    TextureFormatUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class TextureFormatUtils

    Methods

    FormatToChannelMask(Texture)

    Declaration
    public static Color FormatToChannelMask(Texture tex)
    Parameters
    Type Name Description
    Texture tex
    Returns
    Type Description
    Color

    FormatToChannelMask(Texture, Int32)

    Declaration
    public static Color FormatToChannelMask(Texture tex, int interpretPixelAsChannels)
    Parameters
    Type Name Description
    Texture tex
    Int32 interpretPixelAsChannels
    Returns
    Type Description
    Color

    IsAlphaOnly(Texture)

    Declaration
    public static bool IsAlphaOnly(Texture tex)
    Parameters
    Type Name Description
    Texture tex
    Returns
    Type Description
    Boolean

    IsRedGreen(RenderTextureFormat)

    Declaration
    public static bool IsRedGreen(RenderTextureFormat format)
    Parameters
    Type Name Description
    RenderTextureFormat format
    Returns
    Type Description
    Boolean

    IsRedGreen(Texture)

    Declaration
    public static bool IsRedGreen(Texture tex)
    Parameters
    Type Name Description
    Texture tex
    Returns
    Type Description
    Boolean

    IsRedGreen(TextureFormat)

    Declaration
    public static bool IsRedGreen(TextureFormat format)
    Parameters
    Type Name Description
    TextureFormat format
    Returns
    Type Description
    Boolean

    IsRedOnly(RenderTextureFormat)

    Declaration
    public static bool IsRedOnly(RenderTextureFormat format)
    Parameters
    Type Name Description
    RenderTextureFormat format
    Returns
    Type Description
    Boolean

    IsRedOnly(Texture)

    Declaration
    public static bool IsRedOnly(Texture tex)
    Parameters
    Type Name Description
    Texture tex
    Returns
    Type Description
    Boolean

    IsRedOnly(TextureFormat)

    Declaration
    public static bool IsRedOnly(TextureFormat format)
    Parameters
    Type Name Description
    TextureFormat format
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023