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,11 +955,13 @@ public:
|
|||
}
|
||||
}
|
||||
}
|
||||
if (deviceFeatures.pipelineStatisticsQuery) {
|
||||
if (overlay->header("Pipeline statistics")) {
|
||||
overlay->text("VS invocations: %d", pipelineStats[0]);
|
||||
overlay->text("TE invocations: %d", pipelineStats[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
VULKAN_EXAMPLE_MAIN()
|
||||
Loading…
Add table
Add a link
Reference in a new issue