Class ComputeShaderSingleton
Stores compute kernel cache for GPU compute backends
Inherited Members
Namespace: Unity.Barracuda
Assembly: solution.dll
Syntax
public sealed class ComputeShaderSingleton
Fields
EnableDebug
Enable kernel usage tracking
Declaration
public bool EnableDebug
Field Value
Type | Description |
---|---|
bool |
Properties
Instance
Singleton
Declaration
public static ComputeShaderSingleton Instance { get; }
Property Value
Type | Description |
---|---|
Compute |
supported
Check if GPU compute is supported
Declaration
public bool supported { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetUsedOptimizedKernels()
Get used optimized kernels list
Declaration
public List<string> GetUsedOptimizedKernels()
Returns
GetUsedReferenceKernels()
Get used reference kernels list
Declaration
public List<string> GetUsedReferenceKernels()
Returns
WarmupOptimizedKernels(List<string>)
Warmup optimized kernels
Declaration
public IEnumerator WarmupOptimizedKernels(List<string> kernels)
Parameters
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator |
WarmupReferenceKernels(List<string>)
Warmup reference kernels
Declaration
public IEnumerator WarmupReferenceKernels(List<string> kernels)
Parameters
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator |