diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-02-13 18:50:07 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-02-13 18:50:07 +0100 |
commit | 71b74195de3aebf1b5ad19140d02f98d43e29097 (patch) | |
tree | 7d9b0887b2d0f4263929ac67f434353072d5c014 /servers/visual/rasterizer_rd | |
parent | 5c3944e7da9ca72077cb5348fadc86347904838c (diff) |
Remove Vulkan debugging prints
Diffstat (limited to 'servers/visual/rasterizer_rd')
-rw-r--r-- | servers/visual/rasterizer_rd/rasterizer_rd.cpp | 4 | ||||
-rw-r--r-- | servers/visual/rasterizer_rd/shader_compiler_rd.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/servers/visual/rasterizer_rd/rasterizer_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_rd.cpp index 34be4817f6..ee33f395e7 100644 --- a/servers/visual/rasterizer_rd/rasterizer_rd.cpp +++ b/servers/visual/rasterizer_rd/rasterizer_rd.cpp @@ -121,9 +121,7 @@ void RasterizerRD::initialize() { String error; copy_viewports_rd_shader = RD::get_singleton()->shader_create(source); if (!copy_viewports_rd_shader.is_valid()) { - print_line("failed compilation: " + error); - } else { - print_line("compilation success"); + print_line("Failed compilation: " + error); } } diff --git a/servers/visual/rasterizer_rd/shader_compiler_rd.cpp b/servers/visual/rasterizer_rd/shader_compiler_rd.cpp index b2cbac8a09..ecff8d81f6 100644 --- a/servers/visual/rasterizer_rd/shader_compiler_rd.cpp +++ b/servers/visual/rasterizer_rd/shader_compiler_rd.cpp @@ -483,7 +483,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); } |