# GraphicsStateCollection.ShaderVariant

> Identifies a specific variant of a shader stored in a GraphicsStateCollection.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct GraphicsStateCollection.ShaderVariant
```

## Fields

| Value                                                                                                               | Description                                      |
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [keywords](/engine/6000.7/script-reference/unityengine/rendering/graphicsstatecollection/shadervariant/keywords.md) | Array of shader keywords to use in this variant. |
| [passId](/engine/6000.7/script-reference/unityengine/rendering/graphicsstatecollection/shadervariant/passid.md)     | PassIdentifier to use in this variant.           |
| [shader](/engine/6000.7/script-reference/unityengine/rendering/graphicsstatecollection/shadervariant/shader.md)     | Shader to use in this variant.                   |

## Constructors

| Constructor                                                                                                                                                                                                                                                              | Description                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| [ShaderVariant(UnityEngine.Material,UnityEngine.Rendering.PassIdentifier)](/engine/6000.7/script-reference/unityengine/rendering/graphicsstatecollection/shadervariant/ctor.md#shadervariant\(material-passidentifier\))                                                 | Create a ShaderVariant with the provided shader pass and keywords. |
| [ShaderVariant(UnityEngine.Shader,UnityEngine.Rendering.PassIdentifier,UnityEngine.Rendering.LocalKeyword\[\])](/engine/6000.7/script-reference/unityengine/rendering/graphicsstatecollection/shadervariant/ctor.md#shadervariant\(shader-passidentifier-localkeyword\)) | Create a ShaderVariant with the provided shader pass and keywords. |
