spirv: Add OpLdexp

This commit is contained in:
IndecisiveTurtle
2024-07-02 02:32:58 +03:00
parent 505cc66a2b
commit 8db09231c4
2 changed files with 4 additions and 0 deletions

View File

@@ -793,6 +793,9 @@ public:
/// Result is the reciprocal of sqrt x. Result is undefined if x <= 0.
Id OpInverseSqrt(Id result_type, Id x);
/// Result is a floating-point number from x and the corresponding integral exponent of two in exp.
Id OpLdexp(Id result_type, Id x, Id exp);
/// Result is y if y < x; otherwise result is x. Which operand is the result is undefined if one
/// of the operands is a NaN.
Id OpFMin(Id result_type, Id x, Id y);

View File

@@ -54,6 +54,7 @@ DEFINE_UNARY(OpExp2, GLSLstd450Exp2)
DEFINE_UNARY(OpLog2, GLSLstd450Log2)
DEFINE_UNARY(OpSqrt, GLSLstd450Sqrt)
DEFINE_UNARY(OpInverseSqrt, GLSLstd450InverseSqrt)
DEFINE_BINARY(OpLdexp, GLSLstd450Ldexp)
DEFINE_BINARY(OpFMin, GLSLstd450FMin)
DEFINE_BINARY(OpUMin, GLSLstd450UMin)
DEFINE_BINARY(OpSMin, GLSLstd450SMin)