vkd3d-shader/hlsl: Implement sin/cos for SM1.

Also introduce HLSL_OP3_MAD.
This commit is contained in:
Shaun Ren
2024-07-10 22:47:51 -04:00
committed by Henri Verbeet
parent b3a11a9ec4
commit b4845b9dca
Notes: Henri Verbeet 2024-07-16 19:57:03 +02:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/923
3 changed files with 106 additions and 0 deletions

View File

@@ -699,6 +699,7 @@ enum hlsl_ir_expr_op
* CMP(a, b, c) returns 'b' if 'a' >= 0, and 'c' otherwise. It's used only for SM1-SM3 targets. */
HLSL_OP3_CMP,
HLSL_OP3_TERNARY,
HLSL_OP3_MAD,
};
#define HLSL_MAX_OPERANDS 3