March 2013
Intermediate to advanced
984 pages
26h 18m
English
It is possible to use the memory representing a buffer object or a single level of a texture object for general purpose read and write access in shaders. To support this, the OpenGL Shading Language provides several image types to represent raw image data.
Images are declared in shaders as uniforms in a similar manner to samplers. Just like samplers, they are assigned locations by the shader compiler that can be passed to glUniform1i() to specify the image unit which they represent. The OpenGL Shading Language image types are shown in Table 11.1.
Table 11.1. Generic Image Types in GLSL
Notice that most ...
Read now
Unlock full access