piglit.spec.arb_shader_image_size.builtin.sklm64 (from piglit) Standard Output /tmp/build_root/m64/lib/piglit/bin/arb_shader_image_size-builtin --quick -auto -fbo piglit: debug: Requested an OpenGL 3.2 Core Context, and received a matching 3.3 context Standard Error Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T image1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T image2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T image3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T image2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T imageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T imageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T image1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T image2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32f) #define IMAGE_BARE_T imageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T image1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T image2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T image3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T image2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T imageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T imageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T image1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T image2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T float #define DATA_T vec4 #define SCALE vec4(1.00000000e+00, 1.00000000e+00, 1.00000000e+00, 1.00000000e+00) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16f) #define IMAGE_BARE_T imageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimage1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimage2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimage3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimage2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimage1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimage2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(2.14748365e+09, 2.14748365e+09, 2.14748365e+09, 2.14748365e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32ui) #define IMAGE_BARE_T uimageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimage1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimage2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimage3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimage2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimage1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimage2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(3.27680000e+04, 3.27680000e+04, 3.27680000e+04, 3.27680000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16ui) #define IMAGE_BARE_T uimageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimage1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimage2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimage3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimage2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimage1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimage2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T uint #define DATA_T uvec4 #define SCALE vec4(1.28000000e+02, 1.28000000e+02, 1.28000000e+02, 1.28000000e+02) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8ui) #define IMAGE_BARE_T uimageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimage1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimage2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimage3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimage2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimage1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimage2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.07374182e+09, 1.07374182e+09, 1.07374182e+09, 1.07374182e+09) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba32i) #define IMAGE_BARE_T iimageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimage1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimage2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimage3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimage2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimage1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimage2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(1.63840000e+04, 1.63840000e+04, 1.63840000e+04, 1.63840000e+04) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba16i) #define IMAGE_BARE_T iimageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimage1D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimage2D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimage3D #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimage2DRect #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimageCube #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(int, ivec4(1536, 1, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimageBuffer #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec2, ivec4(16, 96, 1, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimage1DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimage2DArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); } Failed to compile fragment shader: 0:22(26): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{' source: #version 150 #extension GL_ARB_shader_image_load_store : enable #define W 16 #define H 16 #define N 256 #define GRID_T ivec4 #define RET_IMAGE_UNIFORM_T layout(rgba32i) uniform iimage2D #define IN(name) v##name #extension GL_ARB_shader_image_size : enable #define BASE_T int #define DATA_T ivec4 #define SCALE vec4(6.40000000e+01, 6.40000000e+01, 6.40000000e+01, 6.40000000e+01) #define IMAGE_ADDR_(addr_t, ext, i) addr_t(ivec3(i % ext.x, i / ext.x % ext.y, i / ext.x / ext.y)) #define IMAGE_ADDR(idx) IMAGE_ADDR_(ivec3, ivec4(16, 16, 6, 1), ((idx).x + W * (idx).y)) #define IMAGE_LAYOUT_Q layout(rgba8i) #define IMAGE_BARE_T iimageCubeArray #define IMAGE_UNIFORM_T IMAGE_LAYOUT_Q uniform IMAGE_BARE_T readonly uniform IMAGE_T src_img; GRID_T op(ivec2 idx, GRID_T x) { return ivec4(imageSize(src_img), ivec3(1)); } flat in GRID_T IN(color); out GRID_T fcolor; void main() { fcolor = op(ivec2(gl_FragCoord), IN(color)); }