12 Sep
2023
12 Sep
'23
4:36 p.m.
Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl.h:
HLSL_OP2_NEQUAL, HLSL_OP2_RSHIFT,
+ /* DP2ADD(a, b, c) computes the scalar product of a.xy and b.xy, + * then adds c. */ HLSL_OP3_DP2ADD, + /* LERP(a, b, c) computes a * (1-z) + b * z or, equivalently, + * a + z * (b - c). */ HLSL_OP3_LERP, - /* TERNARY is used specifically for ternary operator, and later lowered according to profile to e.g. MOVC. */ + /* MOVC(a, b, c) returns c is a is bitwise zero and b
Typographical error, "is a is". -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/340#note_45029