Merge pull request #10945 from Pokechu22/vulkan-source-file-name
Vulkan: Call setSourceFile in addition to addSourceText
This commit is contained in:
commit
e638bb658f
|
@ -124,6 +124,7 @@ CompileShaderToSPV(EShLanguage stage, APIType api_type,
|
||||||
if (g_ActiveConfig.bEnableValidationLayer)
|
if (g_ActiveConfig.bEnableValidationLayer)
|
||||||
{
|
{
|
||||||
// Attach the source code to the SPIR-V for tools like RenderDoc.
|
// Attach the source code to the SPIR-V for tools like RenderDoc.
|
||||||
|
intermediate->setSourceFile(stage_filename);
|
||||||
intermediate->addSourceText(pass_source_code, pass_source_code_length);
|
intermediate->addSourceText(pass_source_code, pass_source_code_length);
|
||||||
|
|
||||||
options.generateDebugInfo = true;
|
options.generateDebugInfo = true;
|
||||||
|
|
Loading…
Reference in New Issue