summaryrefslogtreecommitdiff
path: root/scene/resources/shader_graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/shader_graph.h')
-rw-r--r--scene/resources/shader_graph.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/shader_graph.h b/scene/resources/shader_graph.h
index fd6540a747..b93567538d 100644
--- a/scene/resources/shader_graph.h
+++ b/scene/resources/shader_graph.h
@@ -216,6 +216,10 @@ public:
void texture_node_set_filter_strength(ShaderType p_which,float p_id,float p_strength);
float texture_node_get_filter_strength(ShaderType p_which,float p_id) const;
+ void duplicate_nodes(ShaderType p_which, List<int> &p_nodes);
+
+ List<int> generate_ids(ShaderType p_type, int count);
+
enum ScalarOp {
SCALAR_OP_ADD,
SCALAR_OP_SUB,
@@ -361,6 +365,8 @@ public:
GraphError get_graph_error(ShaderType p_type) const;
+ int node_count(ShaderType p_which, int p_type);
+
static int get_type_input_count(NodeType p_type);
static int get_type_output_count(NodeType p_type);
static SlotType get_type_input_type(NodeType p_type,int p_idx);