docs.unity3d.com
    Show / Hide Table of Contents

    Class ComputeShaderSingleton

    Stores compute kernel cache for GPU compute backends

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

    Fields

    EnableDebug

    Enable kernel usage tracking

    Declaration
    public bool EnableDebug
    Field Value
    Type Description
    Boolean

    Properties

    Instance

    Singleton

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

    supported

    Check if GPU compute is supported

    Declaration
    public bool supported { get; }
    Property Value
    Type Description
    Boolean

    Methods

    GetUsedOptimizedKernels()

    Get used optimized kernels list

    Declaration
    public List<string> GetUsedOptimizedKernels()
    Returns
    Type Description
    List<String>

    list of kernels

    GetUsedReferenceKernels()

    Get used reference kernels list

    Declaration
    public List<string> GetUsedReferenceKernels()
    Returns
    Type Description
    List<String>

    list of kernels

    WarmupOptimizedKernels(List<String>)

    Warmup optimized kernels

    Declaration
    public IEnumerator WarmupOptimizedKernels(List<string> kernels)
    Parameters
    Type Name Description
    List<String> kernels

    list of kernels to warm up

    Returns
    Type Description
    IEnumerator

    IEnumerator

    WarmupReferenceKernels(List<String>)

    Warmup reference kernels

    Declaration
    public IEnumerator WarmupReferenceKernels(List<string> kernels)
    Parameters
    Type Name Description
    List<String> kernels

    list of kernels to warm up

    Returns
    Type Description
    IEnumerator

    IEnumerator

    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