Class TextureFormatUtils | Barracuda | 0.5.0-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class TextureFormatUtils

    Inheritance
    Object
    TextureFormatUtils
    Namespace: 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 © 2020 Unity Technologies
    Generated by DocFX