Search code examples
openglglslimage-unit

GLSL image2D antialiasing


Is it possible to set MSAA sampling for image2D? Can it be of multisampled type as texture2D in OpenGL? I am writing first pass not to a render buffer (or texture) but to image where I store several pixel copies of the same primitive but at different offsets.Then I blit it to the main window frame buffer.The output has a strong aliasing and I wonder if it's possible to make the first pass to use MSAA.


Solution

  • No, an image2D cannot be multisampled.

    An image2DMS can however; indeed, it must. Remember: multisample textures represent a fundamentally different texture type from 2D textures. They're just as different from 2D textures as 3D textures are.