Kohi Game Engine
rendergraph_node Struct Reference

Represents a single node in a rendergraph. A node is responsible for acquiring and maintaining its required resources, and generally has some sort of input (typically sinks) and some form of output (typically sources) to potentially other nodes. More...

#include <rendergraph.h>

Data Fields

u32 index
 
const char * name
 The name of the node. More...
 
struct rendergraphgraph
 
u32 source_count
 
rendergraph_sourcesources
 
u32 sink_count
 
rendergraph_sinksinks
 
void * internal_data
 
b8(* initialize )(struct rendergraph_node *self)
 
b8(* load_resources )(struct rendergraph_node *self)
 
b8(* execute )(struct rendergraph_node *self, struct frame_data *p_frame_data)
 
void(* destroy )(struct rendergraph_node *self)
 

Detailed Description

Represents a single node in a rendergraph. A node is responsible for acquiring and maintaining its required resources, and generally has some sort of input (typically sinks) and some form of output (typically sources) to potentially other nodes.

Field Documentation

◆ destroy

void(* destroy) (struct rendergraph_node *self)

◆ execute

b8(* execute) (struct rendergraph_node *self, struct frame_data *p_frame_data)

◆ graph

struct rendergraph* graph

◆ index

u32 index

◆ initialize

b8(* initialize) (struct rendergraph_node *self)

◆ internal_data

void* internal_data

◆ load_resources

b8(* load_resources) (struct rendergraph_node *self)

◆ name

const char* name

The name of the node.

◆ sink_count

u32 sink_count

◆ sinks

◆ source_count

u32 source_count

◆ sources


The documentation for this struct was generated from the following file: