sleap
11-23-2012, 12:25 AM
title says it all.
declare any image unit from the image load store extension will cause a crash on the call to compile the shader, eg:
layout(size4x32) uniform imageBuffer restrict data;
specifying restrict before the image keyword does not cause a crash. Howver, this defies the specs:
layout(size4x32) uniform restrict imageBuffer data;
layout(size4x32) restrict uniform imageBuffer data;
restrict layout(size4x32) uniform imageBuffer data;
(from: http://www.opengl.org/registry/specs/ARB/shader_image_load_store.txt)
``For "coherent", "volatile", and "const", the qualifier should typicallygo before the image type. For "restrict", the qualifier must go after
the image type, since "restrict" applies to the pointer, not the data
being pointed to.''
declare any image unit from the image load store extension will cause a crash on the call to compile the shader, eg:
layout(size4x32) uniform imageBuffer restrict data;
specifying restrict before the image keyword does not cause a crash. Howver, this defies the specs:
layout(size4x32) uniform restrict imageBuffer data;
layout(size4x32) restrict uniform imageBuffer data;
restrict layout(size4x32) uniform imageBuffer data;
(from: http://www.opengl.org/registry/specs/ARB/shader_image_load_store.txt)
``For "coherent", "volatile", and "const", the qualifier should typicallygo before the image type. For "restrict", the qualifier must go after
the image type, since "restrict" applies to the pointer, not the data
being pointed to.''