当我编译非常大的计算着色器时,我从验证中得到了这个错误
1>FXC : error : at '%3778 = fmul fast float %3777, undef' in block '#112' of function 'CSMain': Instructions should not read uninitialized value
1>FXC : error : at '%3781 = fmul fast float %3780, undef' in block '#112' of function 'CSMain': Instructions should not read uninitialized value
1>FXC : error : at '%3784 = fmul fast float %3783, undef' in block '#112' of function 'CSMain': Instructions should not read uninitialized value
有人知道一个简单的方法来追踪这些变量是谁吗?我试过注释代码,但是如果你有大的着色器,即使这样也会非常耗时。谢谢!