docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ComputeShaderSingleton

    Represents the compute kernel cache for backends that use GPU compute.

    Inheritance
    object
    ComputeShaderSingleton
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Sentis
    Assembly: solution.dll
    Syntax
    public class ComputeShaderSingleton

    Fields

    Name Description
    EnableDebug

    Whether kernel usage tracking is enabled.

    Properties

    Name Description
    Instance

    Initializes or returns the instance of ComputeShaderSingleton.

    supported

    Whether the GPU supports compute.

    Methods

    Name Description
    GetUsedKernels()

    Returns used compute kernels as a list.

    WarmupKernels(List<string>)

    Loads and compiles given compute kernels without running them.

    In This Article
    Back to top
    Copyright © 2024 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)