# SetShaderPassName(int, ShaderTagId)

> Set the name of the shader pass.

## Definition

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

```csharp
public void SetShaderPassName(int index, ShaderTagId shaderPassName)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the shader pass to use.**** (\[ShaderTagId]\(/engine/6000.6/script-reference/unityengine/rendering/shadertagid)): Name of the shader pass.
