Class ComputeShaderSingleton
Represents the compute kernel cache for backends that use GPU compute.
Inherited Members
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 |
| 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. |