Version: Unity 6.1 Alpha (6000.1)
Language : English
Pass block in ShaderLab reference
Pass tags in ShaderLab reference

Name directive in ShaderLab reference

This page contains information on using a Name block in your ShaderLabUnity’s language for defining the structure of Shader objects. More info
See in Glossary
code to assign a name to a Pass. For information on defining Passes, see ShaderLab: defining a Pass. For information on how a ShaderA program that runs on the GPU. More info
See in Glossary
object works, and the relationship between Shader objectsAn instance of the Shader class, a Shader object is container for shader programs and GPU instructions, and information that tells Unity how to use them. Use them with materials to determine the appearance of your scene. More info
See in Glossary
, SubShaders and Passes, see Shader object fundamentals.

Render pipeline compatibility

Feature name Universal Render PipelineA series of operations that take the contents of a Scene, and displays them on a screen. Unity lets you choose from pre-built render pipelines, or write your own. More info
See in Glossary
(URP)
High Definition Render Pipeline (HDRP) Custom SRP Built-in Render Pipeline
ShaderLab: Name block Yes Yes Yes Yes

Syntax

Signature Function
Name "<name>" Sets the name of the Pass.

Additional resources

Pass block in ShaderLab reference
Pass tags in ShaderLab reference