Store whether or not a shader uses debug printf

* Shaders that use printf will go through the feedback path, even though they
  may not use arrayed descriptors.
This commit is contained in:
baldurk
2021-05-07 16:04:56 +01:00
parent 3021cc9fa4
commit aec2f8db79
2 changed files with 6 additions and 0 deletions
@@ -1186,6 +1186,10 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
patchData.outTopo = e.executionModes.outTopo;
}
for(auto it = extSets.begin(); it != extSets.end(); it++)
if(it->second == "NonSemantic.DebugPrintf")
patchData.usesPrintf = true;
// sort system value semantics to the start of the list
struct sig_param_sort
{
@@ -65,6 +65,8 @@ struct SPIRVPatchData
// the output topology for tessellation and geometry shaders
Topology outTopo = Topology::Unknown;
bool usesPrintf = false;
};
namespace rdcspv