#include <RenderAttachmentLayoutBuilder.h>
Classes | |
| class | SubpassAttachmentLayoutBuilder |
Public Member Functions | |
| SubpassAttachmentLayoutBuilder * | AddSubpass () |
| Adds a new subpass to the layout. | |
| ResultCode | End (RenderAttachmentLayout &builtRenderAttachmentLayout, AZStd::array< AZ::Name, Limits::Pipeline::RenderAttachmentCountMax > *outAttachmentNames=nullptr) |
| void | Reset () |
| Resets all previous values so the builder can be reuse. | |
| uint32_t | GetSubpassCount () const |
| Return the current subpass count. | |
Provides a convenient way to construct RenderAttachmentLayout objects, which describes the render attachments layout for the pipeline state.
The general usage includes adding one or more subpasses, and adding one or more attachment to each subpass. Examples are shown below.
1) One Subpass
2) Multiple Subpasses
3) Multiple Subpasses with subpass inputs
| ResultCode AZ::RHI::RenderAttachmentLayoutBuilder::End | ( | RenderAttachmentLayout & | builtRenderAttachmentLayout, |
| AZStd::array< AZ::Name, Limits::Pipeline::RenderAttachmentCountMax > * | outAttachmentNames = nullptr |
||
| ) |
Ends the building of a layout. Returns the result of the operation.
| outAttachmentNames | Optional parameter to collect the names of the render attachments when building the RenderAttachmentLayout. |