So I need to have a texture size for my compute shader. I found this function in GLSL to query this inside the shader:
ivec2 textureSize = imageSize(outputImage)
My question is, is this less efficient than passing the texture size as a push constant for instance?
Also is there an increased cost if for instance I put this inside a loop and call it multiple times in the same shader invocation?