What it does
The G-Buffer is a set of images storing surface information such as color and normals. Deferred rendering writes that data first, then reads it to calculate lighting.
How to use it
Deferred opaque rendering writes surface attributes into several targets for later lighting. Read the version-specific layout rather than assuming a fixed target index means depth or normals.
A concrete example
Lighting can reuse stored normals and material attributes, but writing multiple high-resolution targets consumes bandwidth and memory.
How to check it
- Inspect targets and compatible shader G-buffer passes through debugging tools.
Store different surface data in separate targets - Do not assume transparent surfaces populate the same information needed by a custom effect.
Store different surface data in separate targets
Limitations
Channel layouts depend on pipeline/version; RT3 is not universally a depth target.