docs.unity3d.com
    Show / Hide Table of Contents

    Class PixelShaderSingleton

    Stores compute kernel cache for GPU pixel shader backends

    Inheritance
    Object
    PixelShaderSingleton
    Namespace: Unity.Barracuda
    Syntax
    public sealed class PixelShaderSingleton : object

    Fields

    EnableDebug

    Enable kernel usage tracking

    Declaration
    public bool EnableDebug
    Field Value
    Type Description
    Boolean

    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

    Back to top
    Terms of use
    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