Version: Unity 6.0 (6000.0)
Language : English
Branch based on shader pass or shader stage
Set the render pipeline and render order for a shader

Configure when Unity uses a shader

Resources for using #pragma and Tag blocks in ShaderLabUnity’s language for defining the structure of Shader objects. More info
See in Glossary
to configure when Unity compiles and runs a shaderA program that runs on the GPU. More info
See in Glossary
.

Page Description
Set the rendering pipeline and render pass for a shader Use a Tag statement to set the 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
and render order for a shader.
Set a shader to require a package Use a PackageRequirements block to add package requirements to a subshader or a pass.
Set a shader to require a shader model or GPU feature Use a #pragma target or #pragma require statement to set the minimum shader model or GPU feature for a shader.
Set the graphics API or platform for a shader Use a #pragma only_renderers or #pragma exclude_renderers statement to set the graphics API or platform for a shader.

Additional resources

Branch based on shader pass or shader stage
Set the render pipeline and render order for a shader