aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/bitCount.ir
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/builtins/ir/bitCount.ir')
-rw-r--r--src/glsl/builtins/ir/bitCount.ir41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/glsl/builtins/ir/bitCount.ir b/src/glsl/builtins/ir/bitCount.ir
new file mode 100644
index 00000000000..71fcae2db1a
--- /dev/null
+++ b/src/glsl/builtins/ir/bitCount.ir
@@ -0,0 +1,41 @@
+((function bitCount
+ (signature int
+ (parameters
+ (declare (in) int value))
+ ((return (expression int bit_count (var_ref value)))))
+
+ (signature ivec2
+ (parameters
+ (declare (in) ivec2 value))
+ ((return (expression ivec2 bit_count (var_ref value)))))
+
+ (signature ivec3
+ (parameters
+ (declare (in) ivec3 value))
+ ((return (expression ivec3 bit_count (var_ref value)))))
+
+ (signature ivec4
+ (parameters
+ (declare (in) ivec4 value))
+ ((return (expression ivec4 bit_count (var_ref value)))))
+
+ (signature int
+ (parameters
+ (declare (in) uint value))
+ ((return (expression int bit_count (var_ref value)))))
+
+ (signature ivec2
+ (parameters
+ (declare (in) uvec2 value))
+ ((return (expression ivec2 bit_count (var_ref value)))))
+
+ (signature ivec3
+ (parameters
+ (declare (in) uvec3 value))
+ ((return (expression ivec3 bit_count (var_ref value)))))
+
+ (signature ivec4
+ (parameters
+ (declare (in) uvec4 value))
+ ((return (expression ivec4 bit_count (var_ref value)))))
+))