mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user