To take control over a framebuffer, we must take responsibility for maintaining the image buffers that receive the fragments rendered to it.
One of these images will receive the RGBA color of each fragment. It is an ordinary RGBA texture, and it may have arbitrary framebufferWidth and framebufferHeight.*
By providing a
null texture image, we request an empty buffer of the given size. In this circumstance, the
gl.UNSIGNED_BYTE external type specification goes unused.
Like any texture, the framebuffer color texture has configurable texture parameters. These parameters do not affect how the buffer receives fragments, but they do affect how those fragments are sampled later. Once set, these settings seldom change, so it makes sense to set them when the texture is created.
A rendered image of a scene generally does not wrap, so framebuffer color textures are almost always configured to clamp.
* The maximum size of a render buffer is fairly large, usually 4096 or 8192 pixels square, circa 2015.