Skip to content

Commit

Permalink
Fix a git goof up
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiantUwU committed Aug 9, 2024
1 parent 90738fb commit 30960e1
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions servers/rendering/shader_language.h
Original file line number Diff line number Diff line change
Expand Up @@ -754,43 +754,6 @@ class ShaderLanguage {
Node(NODE_TYPE_SHADER) {}
};

struct FunctionNode : public Node {
struct Argument {
ArgumentQualifier qualifier;
StringName name;
DataType type;
StringName struct_name;
DataPrecision precision;
//for passing textures as arguments
bool tex_argument_check;
TextureFilter tex_argument_filter;
TextureRepeat tex_argument_repeat;
bool tex_builtin_check;
StringName tex_builtin;
ShaderNode::Uniform::Hint tex_hint;
bool is_const;
int array_size;

HashMap<StringName, HashSet<int>> tex_argument_connect;
};

StringName name;
DataType return_type = TYPE_VOID;
StringName return_struct_name;
DataPrecision return_precision = PRECISION_DEFAULT;
int return_array_size = 0;
Vector<Argument> arguments;
BlockNode *body = nullptr;
bool can_discard = false;

virtual DataType get_datatype() const override { return return_type; }
virtual String get_datatype_name() const override { return String(return_struct_name); }
virtual int get_array_size() const override { return return_array_size; }

FunctionNode() :
Node(NODE_TYPE_FUNCTION) {}
};

struct UniformOrderComparator {
_FORCE_INLINE_ bool operator()(const Pair<StringName, int> &A, const Pair<StringName, int> &B) const {
return A.second < B.second;
Expand Down

0 comments on commit 30960e1

Please sign in to comment.