What does it mean "BRANCH" in shader code?
In Unreal shader code, there are many keyword "BRANCH". For example in BasePassPixelShader.usf
What is that? What does it mean?
asked Jan 13 '17 at 05:32 AM in Rendering
"If" flow controls in HLSL come in two flavors: "branch" and "flatten."
Essentially, "branch" says "evaluate the if first, and then only run the code in it if it's true, otherwise, run the else block"
"Flatten" says "Run both the if and else blocks, but only use the one that is appropriate based on the outcome of the if statement."
answered Jan 14 '17 at 02:42 AM
In Definitions.USF there is a
answered Jan 15 '17 at 07:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here