GraphicsStateCollection.ShaderVariant
Identifies a specific variant of a shader stored in a GraphicsStateCollection.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public struct GraphicsStateCollection.ShaderVariant
Fields
Value | Description |
|---|---|
| keywords | Array of shader keywords to use in this variant. |
| passId | PassIdentifier to use in this variant. |
| shader | Shader to use in this variant. |
Constructors
Constructor | Description |
|---|---|
| ShaderVariant(UnityEngine.Material,UnityEngine.Rendering.PassIdentifier) | Create a ShaderVariant with the provided shader pass and keywords. |
| ShaderVariant(UnityEngine.Shader,UnityEngine.Rendering.PassIdentifier,UnityEngine.Rendering.LocalKeyword[]) | Create a ShaderVariant with the provided shader pass and keywords. |