Change type of FrameStatistics::recorded to bool32 to be more accurate

This commit is contained in:
baldurk
2017-03-31 15:15:20 +01:00
parent 018dcb073c
commit 96f11095da
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -587,7 +587,7 @@ void AppendOutputStatistics(QString &statisticsLog, const FetchFrameInfo &frameI
void AppendDetailedInformation(CaptureContext &ctx, QString &statisticsLog,
const FetchFrameInfo &frameInfo)
{
if(frameInfo.stats.recorded == 0)
if(!frameInfo.stats.recorded)
return;
AppendDrawStatistics(statisticsLog, frameInfo);
@@ -626,7 +626,7 @@ void CountContributingEvents(const FetchDrawcall &draw, uint32_t &drawCount,
QString AppendAPICallSummary(const FetchFrameInfo &frameInfo, uint numAPICalls)
{
if(frameInfo.stats.recorded == 0)
if(!frameInfo.stats.recorded)
return "";
uint numConstantSets = 0;
+1 -1
View File
@@ -267,7 +267,7 @@ struct FetchFrameOutputStats
struct FetchFrameStatistics
{
uint32_t recorded;
bool32 recorded;
FetchFrameConstantBindStats constants[ENUM_ARRAY_SIZE(ShaderStage)];
FetchFrameSamplerBindStats samplers[ENUM_ARRAY_SIZE(ShaderStage)];
FetchFrameResourceBindStats resources[ENUM_ARRAY_SIZE(ShaderStage)];
+1 -1
View File
@@ -1106,7 +1106,7 @@ void WrappedID3D11Device::Serialise_CaptureScope(uint64_t offset)
RDCEraseEl(stats);
// #mivance GL/Vulkan don't set this so don't get stats in window
stats.recorded = 1;
stats.recorded = true;
for(uint32_t stage = uint32_t(ShaderStage::First); stage < uint32_t(ShaderStage::Count); stage++)
{