# PassIdentifier

> Represents an identifier of a specific Pass in a Shader.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<PassIdentifier>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public readonly struct PassIdentifier : IEquatable<PassIdentifier>
```

## Remarks

Additional Resources: [Shader](/engine/6000.7/script-reference/unityengine/shader.md), [ShaderUtil](/engine/6000.7/script-reference/unityeditor/shaderutil.md), [Pass](/engine/6000.7/manual/materials-and-shaders/shaders/reference/sl-reference/sl-sub-shader-pass/sl-pass.md).

## Constructors

| Constructor                                                                                                                 | Description                                                                      |
| --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [PassIdentifier(System.UInt32,System.UInt32)](/engine/6000.7/script-reference/unityengine/rendering/passidentifier/ctor.md) | Constructs a new PassIdentifier with the given `subshaderIndex` and `passIndex`. |

## Properties

| Property                                                                                                 | Description                                               |
| -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [PassIndex](/engine/6000.7/script-reference/unityengine/rendering/passidentifier/passindex.md)           | The index of the pass within the subshader (Read Only).   |
| [SubshaderIndex](/engine/6000.7/script-reference/unityengine/rendering/passidentifier/subshaderindex.md) | The index of the subshader within the shader (Read Only). |

## Operators

| Operator                                                                                             | Description                                                                      |
| ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [operator ==](/engine/6000.7/script-reference/unityengine/rendering/passidentifier/op-equality.md)   | Returns true if the pass identifiers are the same. Otherwise, returns false.     |
| [operator !=](/engine/6000.7/script-reference/unityengine/rendering/passidentifier/op-inequality.md) | Returns true if the pass identifiers are not the same. Otherwise, returns false. |
