73 template<
class FormatT >
115 template<
class ViewT >
117 const ViewT& imageView );
128 template<
class ViewT >
131 const ViewT& imageView );
137 std::uint32_t
index()
const;
140 std::uint32_t
width()
const;
143 std::uint32_t
height()
const;
171 std::uint32_t index()
const;
172 std::uint32_t width()
const;
173 std::uint32_t height()
const;
265 std::uint32_t
index()
const;
291 template<
class FormatT >
294 const typename FormatT::init_type& initValue,
295 VkImageLayout destLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL );
308 template<
class FormatT >
311 VkImageLayout destLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL );
342 template<
class FormatT >
345 const typename FormatT::init_type& initValue,
346 VkImageLayout preserveInLayout = VK_IMAGE_LAYOUT_UNDEFINED );
364 template<
class FormatT >
367 VkImageLayout preserveInLayout = VK_IMAGE_LAYOUT_UNDEFINED );
380 template<
class FormatT >
383 template<
class FormatT >
384 void addColorAndResolveOutput (
387 const typename FormatT::init_type& initValue );
389 void addPreservedOutput (
const BaseAttachment& d );
421 template<
class FormatT >
424 VkImageLayout nodeImageLayout = VK_IMAGE_LAYOUT_GENERAL,
425 bool bAddDependency =
true );
438 const VkSubpassDependency& dependency );
487 std::uint32_t
index()
const;
530 std::uint32_t
index()
const;
544 void operator<< ( const Process& target, const std::function< void () >& cmds );
550 void operator<< ( const Preprocess& target, const std::function< void () >& cmds );
555 void operator<< ( const Postprocess& target, const std::function< void () >& cmds );
std::uint32_t width() const
Retrieves image width of the attachment.
void setDepthOutput(const Attachment< FormatT > &d, const typename FormatT::init_type &initValue, VkImageLayout preserveInLayout=VK_IMAGE_LAYOUT_UNDEFINED)
Sets depth attachment to be produced from scratch. Any previous content of the attachment is destroye...
Process()
Constructs process node for currently defined graph.
RenderGraph * graph() const
Retrieves the parent render graph object.
Represents preparation process graph node.
Definition: vppRenderGraphNodes.hpp:462
RenderGraph * graph() const
Retrieves the parent render graph.
Attachment(std::uint32_t width, std::uint32_t height, EImagePurpose imagePurpose=RENDER)
Constructs attachment mode without fixed image view.
The VPP namespace.
Definition: main.hpp:1
Represents attachment graph node.
Definition: vppRenderGraphNodes.hpp:74
void setReusedDepthOutput(const Attachment< FormatT > &d, VkImageLayout preserveInLayout=VK_IMAGE_LAYOUT_UNDEFINED)
Sets depth attachment which has been already filled by previous render passes, to be modified by this...
void addColorOutput(const Attachment< FormatT > &d, const typename FormatT::init_type &initValue, VkImageLayout destLayout=VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL)
Adds color output attachment to be produced from scratch. Any previous content of the attachment is d...
Represents process graph node.
Definition: vppRenderGraphNodes.hpp:231
Represents a surface visible on the screen.
Definition: vppSurface.hpp:59
std::uint32_t index() const
Retrieves the index of the Process node.
void addDependency(const Process &targetProcess, const VkSubpassDependency &dependency)
Adds a dependency arc from current process to specified process.
std::uint32_t height() const
Retrieves image height of the attachment.
void addReusedColorOutput(const Attachment< FormatT > &d, VkImageLayout destLayout=VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL)
Adds color output attachment which has been already filled by previous render passes, to be modified by this render pass.
std::uint32_t index() const
Retrieves the index of the Postprocess node.
Represents finalization process graph node.
Definition: vppRenderGraphNodes.hpp:506
Base class for render graphs.
Definition: vppRenderGraph.hpp:190
std::uint32_t index() const
Retrieves the index of the attachment.
All images used for normal rendering.
Definition: vppImageInfo.hpp:37
Represents display attachment graph node.
Definition: vppRenderGraphNodes.hpp:160
Postprocess()
Constructs postprocess node for currently defined graph.
void setDepthInput(const Attachment< FormatT > &d)
Sets depth attachment which has been already filled by previous render passes, to be read by this ren...
EImagePurpose
Enumeration specifying general purpose of an image.
Definition: vppImageInfo.hpp:35
std::uint32_t index() const
Retrieves the index of the Preprocess node.
RenderGraph * graph() const
Retrieves the parent render graph.
RenderGraph * graph() const
Retrieves the parent render graph.
Preprocess()
Constructs preprocess node for currently defined graph.
void addInput(const Attachment< FormatT > &d, VkImageLayout nodeImageLayout=VK_IMAGE_LAYOUT_GENERAL, bool bAddDependency=true)
Adds input attachment to be read by this process.