Always add add printf location inputs to entry point globals

* Even in older SPIR-V versions, Input class globals should be listed in the
  entry point interface list.
This commit is contained in:
baldurk
2021-05-28 12:01:21 +01:00
parent 778d91e42c
commit 16a0ebc421
@@ -557,8 +557,7 @@ void AnnotateShader(const ShaderReflection &refl, const SPIRVPatchData &patchDat
editor.AddDecoration(rdcspv::OpDecorate(
rdocGlobalVar, rdcspv::DecorationParam<rdcspv::Decoration::BuiltIn>(spvBuiltin)));
if(editor.EntryPointAllGlobals())
newGlobals.push_back(rdocGlobalVar);
newGlobals.push_back(rdocGlobalVar);
editor.SetName(rdocGlobalVar, name);