# variantCount

> The number of shader variants contained in this collection.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Experimental.Rendering](/engine/6000.0/script-reference/unityengine/experimental/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public int variantCount { get; }
```

### Remarks

Each shader variant may have associated graphics states that are used when prewarming to create accurate GPU representations.
