[Bf-committers] GLSL for Mac

CGLabs cglabs at mail.com
Tue Jan 19 20:14:25 CET 2016


Hello,

I am trying to use a modified “gpu_shader_material.glsl” which has variables defined as uint types.
The GLSL version that Blender is picking up is 120:

#version 120
#extension GL_ARB_draw_instanced: enable
#extension GL_EXT_gpu_shader4: enable
#define GPU_NVIDIA
…
…
…

I am getting syntax error for uint when the OpenGL runtime complies the dynamic source code.
I am assuming that 120 correlates to OpenGL 1.20 and it seams that uint is not supported.

Even more odd is that is I replace all uint by unsigned int it GLGS compiler is “happy” and works (despite the fact that OpenGL 1.20 states unsigned as reserved word).

Does anyone know what is going on with GLSL’s  uint ?

My machine: MacBook PRO with NVIDIA GeForce GT 750M 2048 MB

Regards,
Marcelo Varanda




More information about the Bf-committers mailing list