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.

Figure: Conceptual relationship: Surface properties → Store across targets → Read for deferred lighting
Figure: Conceptual relationship: Surface properties → Store across targets → Read for deferred 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

  1. Inspect targets and compatible shader G-buffer passes through debugging tools.
    Store different surface data in separate targets
    Store different surface data in separate targets
  2. Do not assume transparent surfaces populate the same information needed by a custom effect.
    Store different surface data in separate targets
    Store different surface data in separate targets

Limitations

Channel layouts depend on pipeline/version; RT3 is not universally a depth target.

References