15 #include <vsg/nodes/Group.h>
17 #include <vsg/app/Camera.h>
18 #include <vsg/app/Window.h>
19 #include <vsg/app/WindowResizeHandler.h>
62 void setClearValues(VkClearColorValue clearColor = {{0.2f, 0.2f, 0.4f, 1.0f}}, VkClearDepthStencilValue clearDepthStencil = {0.0f, 0});
65 VkSubpassContents contents = VK_SUBPASS_CONTENTS_INLINE;
75 constexpr
static uint32_t invalid_dimension = std::numeric_limits<uint32_t>::max();
76 mutable VkExtent2D previous_extent = VkExtent2D{invalid_dimension, invalid_dimension};
82 extern VSG_DECLSPEC ref_ptr<RenderGraph> createRenderGraphForView(ref_ptr<Window> window, ref_ptr<Camera> camera, ref_ptr<Node> scenegraph, VkSubpassContents contents = VK_SUBPASS_CONTENTS_INLINE,
bool assignHeadlight =
true);
RecordTraversal traverses a scene graph doing view frustum culling and invoking state/commands to rec...
Definition: RecordTraversal.h:61
Definition: RenderGraph.h:28
void resized()
invoke the WindowResizeHandler, called automatically when a window dimension change is detected.
VkRect2D renderArea
RenderArea settings for VkRenderPassBeginInfo.renderArea passed to the vkCmdBeginRenderPass,...
Definition: RenderGraph.h:51
std::vector< VkClearValue > ClearValues
Buffer clearing settings for VkRenderPassBeginInfo.clearValueCount & VkRenderPassBeginInfo....
Definition: RenderGraph.h:57
RenderPass * getRenderPass()
RenderPass to use passed to the vkCmdBeginRenderPass, if renderPass is set it takes precedence,...
RenderGraph(ref_ptr< Window > in_window, ref_ptr< View > view={})
Construct RenderGraph assigning window and setting up clearValues with the appropriate settings for t...
VkExtent2D getExtent() const
Get the Extent2D of the attached Framebuffer or Window.
void accept(RecordTraversal &recordTraversal) const override
execute vkCmdBeginRenderPass and then traverse the RenderGraph subgraph
ref_ptr< RenderPass > renderPass
RenderPass to use passed to the vkCmdBeginRenderPass in place of the framebuffer's or window's render...
Definition: RenderGraph.h:54
ref_ptr< WindowResizeHandler > windowResizeHandler
Definition: RenderGraph.h:69
ref_ptr< Framebuffer > framebuffer
either window or framebuffer must be assigned. If framebuffer is set then it takes precedence,...
Definition: RenderGraph.h:41
void setClearValues(VkClearColorValue clearColor={{0.2f, 0.2f, 0.4f, 1.0f}}, VkClearDepthStencilValue clearDepthStencil={0.0f, 0})
RenderPass encapsulation of VkRenderPass.
Definition: RenderPass.h:86