I decided to ditch cubemaps for now and use image2d's instead, and was suprised to see that those don't work either!!
Something is seriously wrong. I am able to get image2d to work in other compute shaders. I think the root of the problem is the SSBO, because all these problems started ever since I started using them. I think that is causing a bug, maybe in the drivers, because I am certain I am implementing them correctly. I looked at various tutorials on how to use SSBOs. However, I don't want to ditch the SSBO for storing 9 vectors, but it looks like I have no choice.
I guess I have no choice but to maybe use another texture that is write only to store the harmonic coefficients somehow.. until anyone can help me find out what the hell is going on here.
"A very important restriction for using shader images is that the underlying texture must have been allocated using “immutable” storage, i.e. via glTexStorage*()-like functions, and not glTexImage2D()."
I have modified my cube map creation code like so, however, I am not sure if I am doing it right.Gdebugger will not display the texture (probably since immutable textures only have support for 4.2 or above, and gdebugger is meant for lower version of OpenGL).EDIT: I changed the texture to be immutable and successfully tested it in a vertex/pixel shader, but in the compute shader, things still arent working.