# WarmUpProgressively(int, JobHandle)

> Prewarms the given number of shader variant permutations using associated graphics states.

## Definition

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

```csharp
public JobHandle WarmUpProgressively(int count, JobHandle dependency = default)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The maximum number of variants to warm up.**** (\[JobHandle]\(/engine/6000.0/script-reference/unity/jobs/jobhandle)): Job to wait for.

### Returns

| Type                                                                 | Description               |
| -------------------------------------------------------------------- | ------------------------- |
| [JobHandle](/engine/6000.0/script-reference/unity/jobs/jobhandle.md) | Handle to prewarming job. |

### Examples

```csharp
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using Unity.Jobs;

public class GraphicsStateCollectionWarmup : MonoBehaviour
{
    public GraphicsStateCollection graphicsStateCollection;
    public int statesToWarmup;

    void Start()
    {
        JobHandle handle = graphicsStateCollection.WarmUpProgressively(statesToWarmup);
    }
}
```
