GLSL: bit shift, logical and

Discussion created by gluser on Feb 22, 2010
Latest reply on Mar 13, 2010 by samtha


unpacking values from an 32 bit unsigned integer vertex attribute does not work for me. The unpacked values are wrong resulting in visual artefacts. I am using driver version 10.2 on Linux.

#version 150 core

in uint packed_data;

void main()


uvec2 position = uvec2(packed_data, packed_data >> 12u) & 0xFFFu;



The same code runs without any problems using a driver & gpu from another vendor.