
GPU Computing 173
The views determine which portions of the buffers are set to the constant
values. The color and depth-stencil views created for the back buffer have
views that cover the entire buffer, so all buffer values are set. It is possible
to have multiple views for a single buffer, so if you want to clear only a
subrectangle of a buffer, you must create a view of that size and pass that to
the clear calls.
Once you are finished using the color buffer, color view, depth-stencil
buffer, and depth-stencil view, remember to call their
Release() functions so
that their reference counts are decremented. If you plan on resizing the win-
dow during runtime,