Graphics Reference
In-Depth Information
The renderbuffer object can be attached to the color, depth, or stencil
attachment of the framebuffer object without the renderbuffer's storage
format and dimensions being specified. The renderbuffer's storage format
and dimensions can be specified before or after the renderbuffer object
has been attached to the framebuffer object. This information will,
however, need to be correctly specified before the framebuffer object and
renderbuffer attachment can be used for rendering.
Multisample Renderbuffers
Multisample renderbuffers enable the application to render to off-
screen framebuffers with multisample anti-aliasing. The multisample
renderbuffers cannot be directly bound to textures, but they can be
resolved to single-sample textures using the newly introduced framebuffer
blit (described later in this chapter).
As described in the previous section, to create a multisample renderbuffer,
you use the glRenderbufferStorageMultisample API.
Renderbuffer Formats
Table 12-1 lists the renderbuffer formats to store a color-renderable buffer,
and Table 12-2 lists the renderbuffer formats to store a depth-renderable or
stencil-renderable buffer.
Table 12-1
Renderbuffer Formats for Color-Renderable Buffer
Internal Format
Red Bits
Green Bits
Blue Bits
Alpha Bits
GL_R8
8
GL_R8UI
ui8
GL_R8I
i8
GL_R16UI
ui16
GL_R16I
i16
GL_R32UI
ui32
GL_R32I
i32
(continues)
 
 
 
 
Search WWH ::




Custom Search