cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

gluser
Journeyman III

GLSL: bit shift, logical and

Hello,

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.

0 Likes
2 Replies
frali
Staff

Could you please provide the whole application? It seems there is no output for the shader and I don't know what it's going to do.

0 Likes
samtha
Journeyman III

Hey Gluser,

can you provide full information about applicatin which you used

Thanks

Art Supplies

 

0 Likes