1#ifndef TOPAZ_GPU_GRAPH_HPP
2#define TOPAZ_GPU_GRAPH_HPP
3#include "tz/gpu/pass.hpp"
24 return static_cast<graph_flag>(
static_cast<int>(lhs) |
static_cast<int>(rhs));
29 return static_cast<int>(lhs) &
static_cast<int>(rhs);
32 using graph_handle = tz::handle<pass_handle>;
39 void graph_add_pass(graph_handle graph,
pass_handle pass, std::span<const pass_handle> dependencies = {});
40 void graph_add_subgraph(graph_handle graph, graph_handle subgraph);
41 void graph_set_execute_callback(graph_handle graph,
void(*on_execute)(graph_handle));
graph_flag
Specifies optional, extra functionality for a graph.
Definition graph.hpp:19
graph_handle create_graph(const char *name="<untitled graph>")
Create a new graph, which can be used for rendering a frame.
void execute(graph_handle)
Execute the graph - invoking all passes contained a single time.
tz::handle< pass_info > pass_handle
Corresponds to a previously-created pass.
Definition pass.hpp:191