VulkanDevice: Add env var for non-semantic debug info

Backport of 070068366f
This commit is contained in:
Stenzek
2024-04-14 14:42:55 +10:00
parent 8a3ba53204
commit e9107bd140
2 changed files with 16 additions and 4 deletions

View File

@ -65,9 +65,11 @@ std::unique_ptr<GPUShader> VulkanDevice::CreateShaderFromSource(GPUShaderStage s
if (m_debug_device)
{
options.SetOptimizationLevel(shaderc_optimization_level_zero);
options.SetGenerateDebugInfo();
if (m_optional_extensions.vk_khr_shader_non_semantic_info)
options.SetGenerateDebugInfo();
options.SetEmitNonSemanticDebugInfo();
options.SetOptimizationLevel(shaderc_optimization_level_zero);
}
else
{