You're using std430, not std140. As stated in the last paragraph of 18.104.22.168, the base alignment of structures is not rounded up to that of a vec4 in std430.
That's a feature, not a bug.
Yes, I know that I am using std430.
Originally Posted by Alfonse Reinheart
I missed "and of structures in rule 9" part in the last paragraph of 22.214.171.124.
'shared' keyword is invalid keyword in CS when I use:
#version 420 core
#extension GL_ARB_shader_storage_buffer_object : require
#extension GL_ARB_compute_shader : require
It works as expected when I use:
#version 430 core
Last edited by randall; 10-30-2012 at 07:19 AM.
Tags for this Thread