# ShaderData.Pass

> This class describes a pass of a subshader.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public class ShaderData.Pass
```

## Properties

| Property                                                                                | Description                                                  |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [IsGrabPass](/engine/6000.5/script-reference/unityeditor/shaderdata/pass/isgrabpass.md) | Indicates whether this Pass results from a GrabPass command. |
| [Name](/engine/6000.5/script-reference/unityeditor/shaderdata/pass/name.md)             | The name of this pass (may be empty).                        |
| [SourceCode](/engine/6000.5/script-reference/unityeditor/shaderdata/pass/sourcecode.md) | The source code for this pass.                               |

## Methods

| Method                                                                                                | Description                                                                                     |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| [CompileVariant](/engine/6000.5/script-reference/unityeditor/shaderdata/pass/compilevariant.md)       | Compiles a shader variant for this shader pass and returns its bytecode and resource layout.    |
| [FindTagValue](/engine/6000.5/script-reference/unityeditor/shaderdata/pass/findtagvalue.md)           | Searches for the tag specified by `tagName` on this SubShader and returns the value of the tag. |
| [HasShaderStage](/engine/6000.5/script-reference/unityeditor/shaderdata/pass/hasshaderstage.md)       | Checks whether this pass includes a shader stage.                                               |
| [PreprocessVariant](/engine/6000.5/script-reference/unityeditor/shaderdata/pass/preprocessvariant.md) | Preprocesses a shader variant for this shader pass and returns the preprocessed code.           |
