1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #110025 from DarioSamo/fix-shader-debug-info-take-two

Fix --generate-spirv-debug-info regression (alternate take)
This commit is contained in:
Clay John
2025-09-01 19:37:27 -07:00
committed by GitHub
5 changed files with 71 additions and 50 deletions

View File

@@ -158,6 +158,8 @@ void ShaderRD::setup(const char *p_vertex_code, const char *p_fragment_code, con
tohash.append(p_fragment_code ? p_fragment_code : "");
tohash.append("[Compute]");
tohash.append(p_compute_code ? p_compute_code : "");
tohash.append("[DebugInfo]");
tohash.append(Engine::get_singleton()->is_generate_spirv_debug_info_enabled() ? "1" : "0");
base_sha256 = tohash.as_string().sha256_text();
}