---
title: shader
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/rendering/graphicsstatecollection/computeshadervariant/shader
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/rendering/graphicsstatecollection/computeshadervariant/shader.md
last_updated: 2026-11-13
generated_at: 2026-11-18T09:26:26.906Z
locale: en-us
---

# shader

> ComputeShader used in this variant.

## Definition

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

```csharp
public ComputeShader shader
```

### Remarks

This is `null` if Unity can't find the compute shader. In a Player, Unity doesn't resolve the compute shaders of a collection loaded from a file or JSON.
