wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::GraphBuilder Class Reference

#include <graph.hpp>

Public Member Functions

 GraphBuilder (const std::shared_ptr< Context > &ctx)
 
auto compile () const -> expected< Graph >
 
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< Contextctx_
 
std::vector< std::tuple< std::string, PassResources, RenderPass::execute_fn_t > > passes_
 

Constructor & Destructor Documentation

◆ GraphBuilder()

wren::GraphBuilder::GraphBuilder ( const std::shared_ptr< Context > & ctx)
inlineexplicit

Member Function Documentation

◆ add_pass()

auto wren::GraphBuilder::add_pass ( const std::string & name,
const PassResources & resources,
const RenderPass::execute_fn_t & fn ) -> GraphBuilder &
Here is the caller graph for this function:

◆ compile()

auto wren::GraphBuilder::compile ( ) const -> expected<Graph>
Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_target()

auto wren::GraphBuilder::create_target ( ) const -> expected< std::shared_ptr< RenderTarget > >
private

Member Data Documentation

◆ ctx_

std::shared_ptr<Context> wren::GraphBuilder::ctx_
private

◆ passes_

std::vector<std::tuple<std::string, PassResources, RenderPass::execute_fn_t> > wren::GraphBuilder::passes_
private

The documentation for this class was generated from the following files: