Branching is one way of introducing conditional behavior into shaderA program that runs on the GPU. More info
See in Glossary code.
Page | Description |
---|---|
Introduction to static and dynamic branching | How static and dynamic branching work, and the advantages and disadvantages of each. |
Use static or dynamic branching in a shader | Use static and dynamic branching in your shader code. |
Branch in a shader via built-in macros | Resources for adding a condition in a shader based on the platform, shader model, Unity version, or shader pass. |