The Render Pass Archetype contains a set of Kanzi Graphics render pass objects that are all compatible. More...
#include <kanzi/core.ui/graphics/render_pass_archetype.hpp>
Classes | |
| struct | AttachmentState |
| Per-attachment information. More... | |
Public Member Functions | |
| uint64_t | getIdentifier () const |
| Gets the unique identifier that represents this archetype. | |
| gfx::RenderPassHandleGuard | getPrototype () |
| Gets the render pass that represents the prototype for this archetype. | |
| gfx::RenderPassHandleGuard | getVariant (span< AttachmentState > colorAttachmentStates, AttachmentState depthAttachmentState, AttachmentState stencilAttachmentState) |
| Gets a compatible render pass with the specified load operations and MSAA resolve. | |
| RenderPassArchetype (const gfx::AttachmentDescriptionSet &fbads) | |
| Constructor. | |
The Render Pass Archetype contains a set of Kanzi Graphics render pass objects that are all compatible.
Use the prototype render pass to construct render pipelines that are compatible with all render passes managed by this archetype.
| kanzi::RenderPassArchetype::RenderPassArchetype | ( | const gfx::AttachmentDescriptionSet & | fbads | ) |
Constructor.
| fbads | The set of framebuffer attachment descriptions. |
| gfx::RenderPassHandleGuard kanzi::RenderPassArchetype::getPrototype | ( | ) |
Gets the render pass that represents the prototype for this archetype.
You can use this render pass with Kanzi Graphics to create render pipelines that are compatible with all render passes associated with this archetype.
|
inline |
Gets the unique identifier that represents this archetype.
| gfx::RenderPassHandleGuard kanzi::RenderPassArchetype::getVariant | ( | span< AttachmentState > | colorAttachmentStates, |
| AttachmentState | depthAttachmentState, | ||
| AttachmentState | stencilAttachmentState ) |
Gets a compatible render pass with the specified load operations and MSAA resolve.
| colorAttachmentStates | Span of color attachment states for each color attachment. If fewer operations are specified than needed, the last operation will be used for all remaining attachments. If extra operations are specified, they will be silently ignored. |
| depthAttachmentState | The attachment state for the depth attachment. |
| stencilAttachmentState | The attachment state for the stencil attachment. |