Class ShaderVariantList
A list of shader variants. This is used to store the shader variants that are used in the graphics tests.
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEditor.TestTools.Graphics
Assembly: UnityEditor.TestTools.Graphics.dll
Syntax
public class ShaderVariantList : ScriptableObject
Fields
serializedComputeShaderVariants
A list of serialized compute shader variants.
Declaration
public List<ShaderVariantList.SerializedComputeShaderVariant> serializedComputeShaderVariants
Field Value
| Type | Description |
|---|---|
| List<ShaderVariantList.SerializedComputeShaderVariant> |
serializedShaderVariants
A list of serialized shader variants.
Declaration
public List<ShaderVariantList.SerializedShaderVariant> serializedShaderVariants
Field Value
| Type | Description |
|---|---|
| List<ShaderVariantList.SerializedShaderVariant> |
settings
The settings for the shader variant list.
Declaration
[HideInInspector]
public ShaderVariantList.Settings settings
Field Value
| Type | Description |
|---|---|
| ShaderVariantList.Settings |
variantListPerComputeShader
A dictionary of shader variants for each compute shader.
Declaration
public readonly Dictionary<string, ShaderVariantList.ComputeVariantList> variantListPerComputeShader
Field Value
| Type | Description |
|---|---|
| Dictionary<string, ShaderVariantList.ComputeVariantList> |
variantListPerShader
A dictionary of shader variants for each shader.
Declaration
public readonly Dictionary<string, ShaderVariantList.VariantList> variantListPerShader
Field Value
| Type | Description |
|---|---|
| Dictionary<string, ShaderVariantList.VariantList> |
Methods
MatchSettings(ShaderCompilerPlatform, bool)
Check if the shader variant list matches the settings. This is used to check if the shader variant list is compatible with the current build settings.
Declaration
public bool MatchSettings(ShaderCompilerPlatform targetPlatform, bool xr)
Parameters
| Type | Name | Description |
|---|---|---|
| ShaderCompilerPlatform | targetPlatform | The target platform for the shader variants. |
| bool | xr | Whether the shader variants are for XR. |
Returns
| Type | Description |
|---|---|
| bool | True if the shader variant list matches the settings, false otherwise. |