Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some minor fixes #51

Open
wants to merge 3 commits into
base: cpp
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix terraintessellation example
Fix compilation error: no matching function for call to
‘vk::Device::getQueryPoolResults<uint64_t>(vk::QueryPool&, int, int,
std::array<long unsigned int, 2>&, long unsigned int, vk::QueryResultFlagBits) const’
152 |         device.getQueryPoolResults<uint64_t>(queryPool, 0, 1, pipelineStats, sizeof(uint64_t), vk::QueryResultFlagBits::e64);
    |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Luc Ma <[email protected]>
  • Loading branch information
lucmann committed Aug 22, 2024
commit 190f08155d779610dce153d37984f2afb93b3120
3 changes: 2 additions & 1 deletion examples/terraintessellation/terraintessellation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ class VulkanExample : public vkx::ExampleBase {
// Retrieves the results of the pipeline statistics query submitted to the command buffer
void getQueryResults() {
// We use vkGetQueryResults to copy the results into a host visible buffer
device.getQueryPoolResults<uint64_t>(queryPool, 0, 1, pipelineStats, sizeof(uint64_t), vk::QueryResultFlagBits::e64);
uint32_t count = static_cast<uint32_t>(pipelineStats.size());
device.getQueryPoolResults(queryPool, 0, 1, count * sizeof(uint64_t), pipelineStats.data(), sizeof(uint64_t), vk::QueryResultFlagBits::e64);
}

void loadAssets() override {
Expand Down