Skip to content

Commit 98dc68c

Browse files
committed
Fix pipelinestatistics example
Fix compilation error: no matching function for call to ‘vk::Device::getQueryPoolResults<uint64_t>(vk::QueryPool&, int, int, std::vector<long unsigned int>&, long unsigned int, vk::QueryResultFlagBits) const’ Building and testing vulkan environment: ``` GPU0: apiVersion = 1.3.255 driverVersion = 0.0.1 vendorID = 0x10005 deviceID = 0x0000 deviceType = PHYSICAL_DEVICE_TYPE_CPU deviceName = llvmpipe (LLVM 15.0.7, 256 bits) driverID = DRIVER_ID_MESA_LLVMPIPE driverName = llvmpipe driverInfo = Mesa 23.2.1-1ubuntu3.1~22.04.2 (LLVM 15.0.7) conformanceVersion = 1.3.1.1 deviceUUID = 6d657361-3233-2e32-2e31-2d3175627500 driverUUID = 6c6c766d-7069-7065-5555-494400000000 ``` Signed-off-by: Luc Ma <luc@sietium.com>
1 parent 8d32c62 commit 98dc68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pipelinestatistics/pipelinestatistics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class VulkanExample : public vkx::ExampleBase {
124124
// Retrieves the results of the pipeline statistics query submitted to the command buffer
125125
void getQueryResults() {
126126
uint32_t count = static_cast<uint32_t>(pipelineStats.size());
127-
device.getQueryPoolResults<uint64_t>(queryPool, 0, 1, pipelineStats, sizeof(uint64_t), vk::QueryResultFlagBits::e64);
127+
device.getQueryPoolResults(queryPool, 0, 1, count * sizeof(uint64_t), pipelineStats.data(), sizeof(uint64_t), vk::QueryResultFlagBits::e64);
128128
}
129129

130130
void updateCommandBufferPreDraw(const vk::CommandBuffer& drawCmdBuffer) override {

0 commit comments

Comments
 (0)