1
0
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:
Yuri Rubinsky
2022-12-13 15:39:53 +03:00
parent ec4de82ab3
commit 56954485ed
17 changed files with 224 additions and 1025 deletions

View File

@@ -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 {