You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Refactor ShaderData & fix the sorting of shader uniforms
This commit is contained in:
@@ -720,6 +720,12 @@ public:
|
||||
Node(TYPE_SHADER) {}
|
||||
};
|
||||
|
||||
struct UniformOrderComparator {
|
||||
_FORCE_INLINE_ bool operator()(const Pair<StringName, int> &A, const Pair<StringName, int> &B) const {
|
||||
return A.second < B.second;
|
||||
}
|
||||
};
|
||||
|
||||
struct Expression {
|
||||
bool is_op;
|
||||
union {
|
||||
|
||||
Reference in New Issue
Block a user