docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PixelShaderSingleton

    Stores compute kernel cache for GPU pixel shader backends

    Inheritance
    object
    PixelShaderSingleton
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Unity.Barracuda
    Assembly: solution.dll
    Syntax
    public sealed class PixelShaderSingleton

    Fields

    EnableDebug

    Enable kernel usage tracking

    Declaration
    public bool EnableDebug
    Field Value
    Type Description
    bool

    Properties

    Instance

    Singleton

    Declaration
    public static PixelShaderSingleton Instance { get; }
    Property Value
    Type Description
    PixelShaderSingleton

    Methods

    GetUsedPixelShaders()

    Get used pixel shader list

    Declaration
    public List<string> GetUsedPixelShaders()
    Returns
    Type Description
    List<string>

    list of kernels

    WarmupPixelShaderKernels(List<string>)

    Warmup pixel shaders

    Declaration
    public IEnumerator WarmupPixelShaderKernels(List<string> shaders)
    Parameters
    Type Name Description
    List<string> shaders

    list of shaders to warm up

    Returns
    Type Description
    IEnumerator

    IEnumerator

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)