mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Added size_t DXIL::Program:::GetInstructionCount() const;
This commit is contained in:
@@ -1511,6 +1511,7 @@ public:
|
||||
rdcstr GetDebugStatus();
|
||||
rdcarray<ShaderEntryPoint> GetEntryPoints();
|
||||
void FillEntryPointInterfaces();
|
||||
size_t GetInstructionCount() const;
|
||||
rdcstr GetResourceReferenceName(ResourceClass resClass, const BindingSlot &slot) const;
|
||||
// false means stop processing
|
||||
void ProcessFunctions(std::function<bool(const Function *)> callback) const;
|
||||
|
||||
@@ -1794,4 +1794,14 @@ void Program::ProcessFunctions(std::function<bool(const Function *)> callback) c
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
size_t Program::GetInstructionCount() const
|
||||
{
|
||||
size_t ret = 0;
|
||||
|
||||
for(size_t i = 0; i < m_Functions.size(); i++)
|
||||
ret += m_Functions[i]->instructions.size();
|
||||
|
||||
return ret;
|
||||
}
|
||||
}; // namespace DXIL
|
||||
|
||||
Reference in New Issue
Block a user