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
commit 0f0bb7d225
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 71 additions and 50 deletions

View file

@ -103,6 +103,11 @@ bool ShaderBakerExportPlugin::_begin_customize_resources(const Ref<EditorExportP
return false;
}
if (Engine::get_singleton()->is_generate_spirv_debug_info_enabled()) {
WARN_PRINT("Shader baker can't generate a compatible shader when run with --generate-spirv-debug-info. Restart the editor without this argument if you want to bake shaders.");
return false;
}
shader_cache_platform_name = p_platform->get_os_name();
shader_cache_renderer_name = RendererSceneRenderRD::get_singleton()->get_name();
tasks_processed = 0;