Skip to content

Commit

Permalink
Added some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmayoff committed Nov 24, 2024
1 parent 6da1eaa commit f908ad6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wren/include/wren/graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ class GraphBuilder {
public:
explicit GraphBuilder(const std::shared_ptr<Context> &ctx) : ctx_(ctx) {}

/**
@brief This calls compile() and then assigns the graph to the renderer
*/
[[nodiscard]] auto build() const -> expected<void>;

/**
@brief Compiles the builder into an actual graph, it creates missing resources for targets and binds targets to the swapchain
*/
[[nodiscard]] auto compile() const -> expected<Graph>;

auto add_pass(const std::string &name, const PassResources &resources,
Expand Down

0 comments on commit f908ad6

Please sign in to comment.