Home -> IRenderPassNode -> SetIsEnabled
Description
The SetIsEnabled method allows the application to leave a render pass node as part of the render tree, but disable it such that its presence has no impact on the render process. Additionally, the contents of disabled render passes are not scanned, so disabled render passes have effectively no overhead. This is useful for applications where special rendering targets or modes are only needed under certain circumstances, but it's more convenient to leave the structure in place and quickly activate or deactivate them as required.
Warning
A disabled render pass has no impact on rendering at all, meaning other settings on the render pass, such as clear operations defined by the SetAttachmentClearData method, or resolve operations defined by the EnableAttachmentMultiSamplingResolution method are not activated for disabled render passes.
Usage
void SetIsEnabled(bool state);
Argument list
- state [bool]
- The new enabled state for this render pass