I think it is more the opposite - the HLSL reads the bool to determine if it should be pixel programmable or not, and then the shaders go from there.
#if NANITE_PIXEL_PROGRAMMABLE
appears to be what the shader is looking for when deciding if it will allow those features.
1 Like