Reduce reliance on big public headers where possible

* Mostly moving includes from common headers to cpp where possible, and removing
  includes of the whole thing where only enums or rdcstr etc are needed.
This commit is contained in:
baldurk
2019-12-16 17:06:16 +00:00
parent f68645bddc
commit c4ca8cb1d1
163 changed files with 839 additions and 710 deletions
+3 -3
View File
@@ -221,7 +221,7 @@ void StatisticsViewer::AppendConstantBindStatistics()
// structure for a given type with known integral types (or arrays
// thereof), but given we're heading for a Qt/C++ rewrite of the UI
// perhaps best not to dwell too long on that
ConstantBindStats totalConstantsPerStage[ENUM_ARRAY_SIZE(ShaderStage)];
ConstantBindStats totalConstantsPerStage[arraydim<ShaderStage>()];
memset(&totalConstantsPerStage, 0, sizeof(totalConstantsPerStage));
for(auto s : indices<ShaderStage>())
{
@@ -313,7 +313,7 @@ void StatisticsViewer::AppendSamplerBindStatistics()
// #mivance see AppendConstantBindStatistics
const SamplerBindStats &reference = frameInfo.stats.samplers[0];
SamplerBindStats totalSamplersPerStage[ENUM_ARRAY_SIZE(ShaderStage)];
SamplerBindStats totalSamplersPerStage[arraydim<ShaderStage>()];
memset(&totalSamplersPerStage, 0, sizeof(totalSamplersPerStage));
for(auto s : indices<ShaderStage>())
{
@@ -379,7 +379,7 @@ void StatisticsViewer::AppendResourceBindStatistics()
// #mivance see AppendConstantBindStatistics
const ResourceBindStats &reference = frameInfo.stats.resources[0];
ResourceBindStats totalResourcesPerStage[ENUM_ARRAY_SIZE(ShaderStage)];
ResourceBindStats totalResourcesPerStage[arraydim<ShaderStage>()];
memset(&totalResourcesPerStage, 0, sizeof(totalResourcesPerStage));
for(auto s : indices<ShaderStage>())
{