Hello,
I’ve been trying to use the imageSize() function with a fully qualified gimage*D, so iimage2D or uimage2D, but that only results in an error. But when using it on a regular “image2D” it works fine.
Now, this is only a minor annoyance, but it would be nice if would work as outlined here for all gimage*D types.
#version 430
uniform image2D general;
uniform iimage2D specificInt;
uniform uimage2D specificUint;
...
void main(void){
ivec2 size = imageSize( general ); //works as adverticed
size = imageSize( specificInt );
//error C1115: unable to find compatible overloaded function "imageSize(struct iimage2D)"
size = imageSize( specificUint );
//error C1115: unable to find compatible overloaded function "imageSize(struct uimage2D)"
}