mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Document some possibly obscure HLSL opcodes.
This commit is contained in:
parent
f251da574c
commit
ee28861837
Notes:
Alexandre Julliard
2023-09-14 22:20:56 +02:00
Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/340
@ -550,8 +550,13 @@ enum hlsl_ir_expr_op
|
||||
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,
|
||||
/* TERNARY is used specifically for ternary operator, and later lowered according to profile to e.g. MOVC. */
|
||||
/* MOVC(a, b, c) returns c if a is bitwise zero and b otherwise.
|
||||
* TERNARY(a, b, c) returns c if a == 0 and b otherwise.
|
||||
* They differ for floating point numbers, because
|
||||
* -0.0 == 0.0, but it is not bitwise zero. */
|
||||
HLSL_OP3_MOVC,
|
||||
HLSL_OP3_TERNARY,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user