Only display pipeline statistics if supported by device
This commit is contained in:
parent
7ffa7f413b
commit
d45462e4a4
1 changed files with 5 additions and 3 deletions
|
|
@ -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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue