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.");
70 node.storage_index = storage.begin_rendering.append_and_get_index(create_info.
node_data);
96 if (
data.vk_rendering_info.pColorAttachments) {
97 data.vk_rendering_info.pColorAttachments =
data.color_attachments;
99 if (
data.vk_rendering_info.pDepthAttachment) {
100 data.vk_rendering_info.pDepthAttachment = &
data.depth_attachment;
102 if (
data.vk_rendering_info.pStencilAttachment) {
103 data.vk_rendering_info.pStencilAttachment = &
data.stencil_attachment;
116 auto reconfigure_attachment = [](VkRenderingAttachmentInfo &rendering_attachment) {
117 if (
ELEM(rendering_attachment.loadOp,
118 VK_ATTACHMENT_LOAD_OP_CLEAR,
119 VK_ATTACHMENT_LOAD_OP_DONT_CARE))
121 rendering_attachment.loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
135 reconfigure_attachment(color_attachment);
#define BLI_assert_msg(a, msg)
BMesh const char void * data
static void reconfigure_for_restart(VKBeginRenderingData &begin_rendering_data)
void build_links(VKResourceStateTracker &resources, VKRenderGraphNodeLinks &node_links, const CreateInfo &create_info) override
void build_commands(VKCommandBufferInterface &command_buffer, Data &data, 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
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, VKRenderGraphNodeLinks &node_links) const