Class ComputeShaderSingleton
Stores compute kernel cache for GPU compute backends
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 |