Mesa (master): glsl: Add built-ins from ARB_shader_bit_encoding to ARB_gpu_shader5.

Matt Turner mattst88 at kemper.freedesktop.org
Tue Aug 27 22:09:32 UTC 2013


Module: Mesa
Branch: master
Commit: ac74de37109b62ca092827ca263de1935e2d1c08
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac74de37109b62ca092827ca263de1935e2d1c08

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Aug  6 21:45:30 2013 -0700

glsl: Add built-ins from ARB_shader_bit_encoding to ARB_gpu_shader5.

Reviewed-by: Paul Berry <stereotype441 at gmail.com>

---

 src/glsl/builtins/profiles/ARB_gpu_shader5.glsl |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl b/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl
index 3f76283..0baea3c 100644
--- a/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl
+++ b/src/glsl/builtins/profiles/ARB_gpu_shader5.glsl
@@ -59,3 +59,23 @@ float fma(float a, float b, float c);
 vec2  fma(vec2  a, vec2  b, vec2  c);
 vec3  fma(vec3  a, vec3  b, vec3  c);
 vec4  fma(vec4  a, vec4  b, vec4  c);
+
+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);




More information about the mesa-commit mailing list