Class PixelShaderSingleton
Represents the compute kernel cache for backends that use GPU pixel shaders.
Inherited Members
Namespace: Unity.Sentis
Assembly: Unity.Sentis.dll
Syntax
public sealed class PixelShaderSingleton
Fields
EnableDebug
Whether kernel usage tracking is enabled.
Declaration
public bool EnableDebug
Field Value
Type | Description |
---|---|
bool |
Properties
Instance
Initializes or returns the instance of PixelShaderSingleton
.
Declaration
public static PixelShaderSingleton Instance { get; }
Property Value
Type | Description |
---|---|
PixelShaderSingleton |
Methods
GetUsedShaders()
Returns used pixel shaders as a list.
Declaration
public List<string> GetUsedShaders()
Returns
Type | Description |
---|---|
List<string> | List of used pixel shaders. |
WarmupKernels(List<string>)
Loads and compiles given pixel shaders without running them.
Declaration
public IEnumerator WarmupKernels(List<string> shaders)
Parameters
Type | Name | Description |
---|---|---|
List<string> | shaders | List of shader names to load and compile. |
Returns
Type | Description |
---|---|
IEnumerator | Enumerator to iterate. |