docs.unity3d.com
    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
    Syntax
    public class ComputeShaderSingleton

    Fields

    EnableDebug

    Whether kernel usage tracking is enabled.

    Declaration
    public bool EnableDebug
    Field Value
    Type Description
    Boolean

    Properties

    Instance

    Initializes or returns the instance of ComputeShaderSingleton.

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

    supported

    Whether the GPU supports compute.

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

    Methods

    GetUsedKernels()

    Returns used compute kernels as a list.

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

    WarmupKernels(List<String>)

    Loads and compiles given compute kernels without running them.

    Declaration
    public IEnumerator WarmupKernels(List<string> kernels)
    Parameters
    Type Name Description
    List<String> kernels
    Returns
    Type Description
    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