40 VKBeginRenderingCreateInfo,
42 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT,
43 VKResourceType::IMAGE> {
52 template<
typename Node,
typename Storage>
58 "When create_info.node_data.vk_rendering_info.pColorAttachments points to "
59 "something, it should point to create_info.node_data.color_attachments.");
63 "When create_info.node_data.vk_rendering_info.pDepthAttachment points to "
64 "something, it should point to create_info.node_data.depth_attachment.");
68 "When create_info.node_data.vk_rendering_info.pStencilAttachment points to "
69 "something, it should point to create_info.node_data.stencil_attachment.");
97 if (
data.vk_rendering_info.pColorAttachments) {
98 data.vk_rendering_info.pColorAttachments =
data.color_attachments;
100 if (
data.vk_rendering_info.pDepthAttachment) {
101 data.vk_rendering_info.pDepthAttachment = &
data.depth_attachment;
103 if (
data.vk_rendering_info.pStencilAttachment) {
104 data.vk_rendering_info.pStencilAttachment = &
data.stencil_attachment;
117 auto reconfigure_attachment = [](VkRenderingAttachmentInfo &rendering_attachment) {
118 if (
ELEM(rendering_attachment.loadOp,
119 VK_ATTACHMENT_LOAD_OP_CLEAR,
120 VK_ATTACHMENT_LOAD_OP_DONT_CARE))
122 rendering_attachment.loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
136 reconfigure_attachment(color_attachment);
#define BLI_assert_msg(a, msg)
static void reconfigure_for_restart(VKBeginRenderingData &begin_rendering_data)
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links, const CreateInfo &create_info) override
void build_commands(VKCommandBufferInterface &command_buffer, Data &data, Span< uint8_t >, VKBoundPipelines &) override
void set_node_data(Node &node, Storage &storage, const CreateInfo &create_info)
virtual void begin_rendering(const VkRenderingInfo *p_rendering_info)=0
VKBeginRenderingCreateInfo CreateInfo
VKBeginRenderingData Data
#define storage(slot, qualifiers)
BMesh const char void * data
VKBeginRenderingData node_data
VKBeginRenderingCreateInfo(const VKResourceAccessInfo &resources)
const VKResourceAccessInfo & resources
VkRenderingAttachmentInfo stencil_attachment
VkRenderingAttachmentInfo color_attachments[8]
VkRenderingAttachmentInfo depth_attachment
VkRenderingInfoKHR vk_rendering_info
void build_links(VKResourceStateTracker &resources, VKRenderGraphLinks &links) const