1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Replaced GLSLang reflection by SPIRV-Reflect, eventually allowing to move GLSLang out.

This commit is contained in:
Juan Linietsky
2019-07-28 13:42:15 -03:00
parent 0586e18449
commit 60c7498cee
7 changed files with 7828 additions and 10 deletions

View File

@@ -410,7 +410,7 @@ String ShaderCompilerRD::_dump_node_code(const SL::Node *p_node, int p_level, Ge
r_gen_code.uniform_total_size = offset;
print_line("uniform total: " + itos(r_gen_code.uniform_total_size));
if (r_gen_code.uniform_total_size % 16 != 0) { //UBO sizes must be multiples of 16
//r_gen_code.uniform_total_size += 16 - (r_gen_code.uniform_total_size % 16);
r_gen_code.uniform_total_size += 16 - (r_gen_code.uniform_total_size % 16);
}
#else
// add up