Connecting the dots for some built-in functions - Completed implementation of round and hyperbolic trigonometry operations - Added a few more cases in op to string functions Change-Id: Ic09d228de8e4446a66152b70edc6a6bba511288a Reviewed-on: https://swiftshader-review.googlesource.com/2891 Tested-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/Shader/Shader.hpp b/src/Shader/Shader.hpp index 898e96e..8c4fe3d 100644 --- a/src/Shader/Shader.hpp +++ b/src/Shader/Shader.hpp
@@ -52,6 +52,8 @@ OPCODE_ATT, // D3DSIO_DST OPCODE_LRP, OPCODE_FRC, + OPCODE_ISNAN, + OPCODE_ISINF, OPCODE_M4X4, OPCODE_M4X3, OPCODE_M3X4, @@ -147,10 +149,18 @@ OPCODE_ASIN, OPCODE_ATAN, OPCODE_ATAN2, + OPCODE_COSH, + OPCODE_SINH, + OPCODE_TANH, + OPCODE_ACOSH, + OPCODE_ASINH, + OPCODE_ATANH, OPCODE_DP1, OPCODE_DP2, OPCODE_TRUNC, OPCODE_FLOOR, + OPCODE_ROUND, + OPCODE_ROUNDEVEN, OPCODE_CEIL, OPCODE_SQRT, OPCODE_RSQ, @@ -180,6 +190,16 @@ OPCODE_AND, OPCODE_STEP, OPCODE_SMOOTH, + OPCODE_FLOATBITSTOINT, + OPCODE_FLOATBITSTOUINT, + OPCODE_INTBITSTOFLOAT, + OPCODE_UINTBITSTOFLOAT, + OPCODE_PACKSNORM2x16, + OPCODE_PACKUNORM2x16, + OPCODE_PACKHALF2x16, + OPCODE_UNPACKSNORM2x16, + OPCODE_UNPACKUNORM2x16, + OPCODE_UNPACKHALF2x16, OPCODE_FORWARD1, OPCODE_FORWARD2, OPCODE_FORWARD3,