mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Change type of FrameStatistics::recorded to bool32 to be more accurate
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)];
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user