How to use bit operations in GLSL 1.3 with OpenGL 2.1 -
How to use bit operations in GLSL 1.3 with OpenGL 2.1 -
i'm trying write shader uses many bit operations. in fact supported since glsl 1.30, i'm on opengl 2.1.
is there way utilize bit operations opengl version?
all sm3 compatible (~opengl 2.1) hardware supports limited integer functionality. done emulating integers floats , not include bit operations.
for bit operations, need either glsl 1.3 or ext_gpu_shader4.
if reason have opengl 2.1 driver outdated, may lucky still have ext_gpu_shader4 (updating drivers might thought though, in case).
if reason graphics card not back upwards better, out of luck.
if have ext_gpu_shader4 (check extension string), can add:
#extension ext_gpu_shader4 : require to glsl 1.2 shaders, , should work.
opengl glsl bitwise-operators
Comments
Post a Comment