[Mesa-dev] [PATCH 06/15] glsl: Add built-ins from ARB_shader_bit_encoding to ARB_gpu_shader5.
Matt Turner
mattst88 at gmail.com
Thu Aug 22 16:08:26 PDT 2013
---
src/glsl/builtins/profiles/ARB_gpu_shader5.glsl | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl b/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl
index 36fc0de..f664fcd 100644
--- a/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl
+++ b/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl
@@ -69,3 +69,23 @@ float ldexp(float x, int exp);
vec2 ldexp(vec2 x, ivec2 exp);
vec3 ldexp(vec3 x, ivec3 exp);
vec4 ldexp(vec4 x, ivec4 exp);
+
+int floatBitsToInt(float value);
+ivec2 floatBitsToInt(vec2 value);
+ivec3 floatBitsToInt(vec3 value);
+ivec4 floatBitsToInt(vec4 value);
+
+uint floatBitsToUint(float value);
+uvec2 floatBitsToUint(vec2 value);
+uvec3 floatBitsToUint(vec3 value);
+uvec4 floatBitsToUint(vec4 value);
+
+float intBitsToFloat(int value);
+vec2 intBitsToFloat(ivec2 value);
+vec3 intBitsToFloat(ivec3 value);
+vec4 intBitsToFloat(ivec4 value);
+
+float uintBitsToFloat(uint value);
+vec2 uintBitsToFloat(uvec2 value);
+vec3 uintBitsToFloat(uvec3 value);
+vec4 uintBitsToFloat(uvec4 value);
--
1.8.3.2
More information about the mesa-dev
mailing list