Check that all complex struct members that have :type: in docstrings

* Ideally we'd document every member unconditionally for best autocompletion,
  but that's a lot of modification so for now we stick to just making sure that
  any members that are struct types (or lists/tuples) have the :type:
  declaration so that we can autocomplete inside them.
This commit is contained in:
baldurk
2020-12-05 14:06:49 +00:00
parent dd3e7ab121
commit 659fdaa235
18 changed files with 1524 additions and 640 deletions
+4 -4
View File
@@ -176,7 +176,7 @@ void StatisticsViewer::AppendShaderStatistics()
{
const FrameDescription &frameInfo = m_Ctx.FrameInfo();
const ShaderChangeStats *shaders = frameInfo.stats.shaders;
const rdcarray<ShaderChangeStats> &shaders = frameInfo.stats.shaders;
ShaderChangeStats totalShadersPerStage;
memset(&totalShadersPerStage, 0, sizeof(totalShadersPerStage));
for(auto s : indices<ShaderStage>())
@@ -230,7 +230,7 @@ void StatisticsViewer::AppendConstantBindStatistics()
}
{
const ConstantBindStats *constants = frameInfo.stats.constants;
const rdcarray<ConstantBindStats> &constants = frameInfo.stats.constants;
for(auto s : indices<ShaderStage>())
{
totalConstantsPerStage[s].calls += constants[s].calls;
@@ -321,7 +321,7 @@ void StatisticsViewer::AppendSamplerBindStatistics()
}
{
const SamplerBindStats *samplers = frameInfo.stats.samplers;
const rdcarray<SamplerBindStats> &samplers = frameInfo.stats.samplers;
for(auto s : indices<ShaderStage>())
{
totalSamplersPerStage[s].calls += samplers[s].calls;
@@ -388,7 +388,7 @@ void StatisticsViewer::AppendResourceBindStatistics()
}
{
const ResourceBindStats *resources = frameInfo.stats.resources;
const rdcarray<ResourceBindStats> &resources = frameInfo.stats.resources;
for(auto s : indices<ShaderStage>())
{
totalResourcesPerStage[s].calls += resources[s].calls;