|
wren
Vulkan-based game engine
|
#include <graph.hpp>
Public Member Functions | |
| GraphBuilder (const std::shared_ptr< Context > &ctx) | |
| auto | build () const -> expected< void > |
| This calls compile() and then assigns the graph to the renderer. | |
| auto | compile () const -> expected< Graph > |
| Compiles the builder into an actual graph, it creates missing resources for targets and binds targets to the swapchain. | |
| auto | add_pass (const std::string &name, const PassResources &resources, const RenderPass::execute_fn_t &fn) -> GraphBuilder & |
Private Member Functions | |
| auto | create_target () const -> expected< std::shared_ptr< RenderTarget > > |
Private Attributes | |
| std::shared_ptr< Context > | ctx_ |
| std::vector< std::tuple< std::string, PassResources, RenderPass::execute_fn_t > > | passes_ |
|
inlineexplicit |

| auto wren::GraphBuilder::add_pass | ( | const std::string & | name, |
| const PassResources & | resources, | ||
| const RenderPass::execute_fn_t & | fn ) -> GraphBuilder & |


|
nodiscard |
This calls compile() and then assigns the graph to the renderer.

Compiles the builder into an actual graph, it creates missing resources for targets and binds targets to the swapchain.


|
nodiscardprivate |


|
private |
|
private |