Home -> IRenderPassNode -> AttachmentLoadBehavior

Description

The AttachmentLoadBehavior enumeration specifies whether existing attachment contents must be preserved when a render pass begins.

WarningWarning

Selecting UndefinedInitialData means shaders, blending, depth testing, stencil testing, and later draw operations must not depend on the previous attachment contents unless the render pass explicitly writes or clears them first.

Members

Name Description
Public Enum LoadExistingData
Requires the renderer to preserve and load the previous contents of the selected attachment before drawing in this render pass.
Public Enum UndefinedInitialData
Allows the renderer to treat the initial attachment contents as undefined. This can be more efficient when the pass will clear or fully overwrite the attachment before the contents are read.

See also