Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PassIdentifier

Represents an identifier of a specific Pass in a Shader.
Read time 1 minuteLast updated 6 days ago

Definition

public readonly struct PassIdentifier : IEquatable<PassIdentifier>

Remarks

Additional Resources: Shader, ShaderUtil, Pass.

Constructors

Constructor

Description

PassIdentifier(System.UInt32,System.UInt32)Constructs a new PassIdentifier with the given
subshaderIndex
and
passIndex
.

Properties

Property

Description

PassIndexThe index of the pass within the subshader (Read Only).
SubshaderIndexThe index of the subshader within the shader (Read Only).

Operators

Operator

Description

operator ==Returns true if the pass identifiers are the same. Otherwise, returns false.
operator !=Returns true if the pass identifiers are not the same. Otherwise, returns false.