# ShaderWarmup

> Prewarms shaders in a way that is supported by all graphics APIs.

## Definition

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

```csharp
public static class ShaderWarmup
```

## Remarks

For information on shader loading and prewarming, see [Shader loading](/engine/6000.6/manual/materials-and-shaders/shaders/shader-troubleshooting/shader-reduce-stalling/shader-loading.md).

## Static Methods

| Method                                                                                                                                      | Description                                                                                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [WarmupShader](/engine/6000.6/script-reference/unityengine/experimental/rendering/shaderwarmup/warmupshader.md)                             | Prewarms all shader variants for a given [Shader](/engine/6000.6/script-reference/unityengine/shader.md), using a given rendering configuration.                                                                                                                       |
| [WarmupShaderFromCollection](/engine/6000.6/script-reference/unityengine/experimental/rendering/shaderwarmup/warmupshaderfromcollection.md) | Prewarms the shader variants for a given [Shader](/engine/6000.6/script-reference/unityengine/shader.md) that are in a given [ShaderVariantCollection](/engine/6000.6/script-reference/unityengine/shadervariantcollection.md), using a given rendering configuration. |
