summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/uintBitsToFloat.ir
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/builtins/ir/uintBitsToFloat.ir')
-rw-r--r--src/glsl/builtins/ir/uintBitsToFloat.ir21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/glsl/builtins/ir/uintBitsToFloat.ir b/src/glsl/builtins/ir/uintBitsToFloat.ir
new file mode 100644
index 00000000000..1073d761898
--- /dev/null
+++ b/src/glsl/builtins/ir/uintBitsToFloat.ir
@@ -0,0 +1,21 @@
+((function uintBitsToFloat
+ (signature float
+ (parameters
+ (declare (in) uint arg))
+ ((return (expression float bitcast_u2f (var_ref arg)))))
+
+ (signature vec2
+ (parameters
+ (declare (in) uvec2 arg))
+ ((return (expression vec2 bitcast_u2f (var_ref arg)))))
+
+ (signature vec3
+ (parameters
+ (declare (in) uvec3 arg))
+ ((return (expression vec3 bitcast_u2f (var_ref arg)))))
+
+ (signature vec4
+ (parameters
+ (declare (in) uvec4 arg))
+ ((return (expression vec4 bitcast_u2f (var_ref arg)))))
+))