[Bf-committers] GLSL for Mac

Antony Riakiotakis kalast at gmail.com
Tue Jan 19 22:05:54 CET 2016


It's hard to say without seeing the exact error, but keep in mind that
blender also injects its own version and defines in the source when
autogenerating the shaders. This can lead to errors since the version
directive needs to be first in the source file. You might have to tweak the
default version in blender's C source itself, check for
gpu_shader_standard_defines in file gpu_shader.c

On 19 January 2016 at 20:14, CGLabs <cglabs at mail.com> wrote:

> 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
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

More information about the Bf-committers mailing list