Version 310 ImageBuffer Illegal use of reserved word

#1

Hello,

I try convert OpenGl (version 430 core) into WebGl(version 310 es) code and get error:

Uncaught Error: ERROR: 0:121: ‘imageBuffer’ : Illegal use of reserved word
ERROR: 0:121: ‘imageBuffer’ : syntax error

My code:
layout (r32f) uniform imageBuffer XData;

I’m first in shaders, don’t know where find information

#2

I don’t think WebGL has image load/store, so you can’t do that. Indeed, my understanding is that WebGL is based on ES 3.0, not 3.1.

1 Like