Tagged Questions
0
votes
2answers
205 views
DX11 - Weird shader behavior with and without branching
I have found problem in my shader code, which I dont´t know how to solve.
I want to rewrite this code without "ifs"
tmp = evaluate and result is 0 or 1 (nothing else)
if (tmp == 1) val = X1;
if (tmp ...