Only display pipeline statistics if supported by device

This commit is contained in:
saschawillems 2017-12-01 22:10:01 +01:00
parent 7ffa7f413b
commit d45462e4a4

View file

@ -955,9 +955,11 @@ public:
} }
} }
} }
if (overlay->header("Pipeline statistics")) { if (deviceFeatures.pipelineStatisticsQuery) {
overlay->text("VS invocations: %d", pipelineStats[0]); if (overlay->header("Pipeline statistics")) {
overlay->text("TE invocations: %d", pipelineStats[1]); overlay->text("VS invocations: %d", pipelineStats[0]);
overlay->text("TE invocations: %d", pipelineStats[1]);
}
} }
} }
}; };