diff --git a/base/glfw/glfw.cpp b/base/glfw/glfw.cpp index a195da3e3..4b1099cbd 100644 --- a/base/glfw/glfw.cpp +++ b/base/glfw/glfw.cpp @@ -29,7 +29,7 @@ vk::SurfaceKHR Window::createWindowSurface(GLFWwindow* window, const vk::Instanc VkSurfaceKHR rawSurface; vk::Result result = static_cast(glfwCreateWindowSurface((VkInstance)instance, window, reinterpret_cast(pAllocator), &rawSurface)); - return vk::createResultValue(result, rawSurface, "vk::CommandBuffer::begin"); + return {vk::ResultValue(result, rawSurface).value}; } #endif diff --git a/examples/pipelinestatistics/pipelinestatistics.cpp b/examples/pipelinestatistics/pipelinestatistics.cpp index e3e82a418..0a0ee21c3 100644 --- a/examples/pipelinestatistics/pipelinestatistics.cpp +++ b/examples/pipelinestatistics/pipelinestatistics.cpp @@ -124,7 +124,7 @@ class VulkanExample : public vkx::ExampleBase { // Retrieves the results of the pipeline statistics query submitted to the command buffer void getQueryResults() { uint32_t count = static_cast(pipelineStats.size()); - device.getQueryPoolResults(queryPool, 0, 1, pipelineStats, sizeof(uint64_t), vk::QueryResultFlagBits::e64); + device.getQueryPoolResults(queryPool, 0, 1, count * sizeof(uint64_t), pipelineStats.data(), sizeof(uint64_t), vk::QueryResultFlagBits::e64); } void updateCommandBufferPreDraw(const vk::CommandBuffer& drawCmdBuffer) override { diff --git a/examples/terraintessellation/terraintessellation.cpp b/examples/terraintessellation/terraintessellation.cpp index fc486f7a9..eb10e922a 100644 --- a/examples/terraintessellation/terraintessellation.cpp +++ b/examples/terraintessellation/terraintessellation.cpp @@ -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(queryPool, 0, 1, pipelineStats, sizeof(uint64_t), vk::QueryResultFlagBits::e64); + uint32_t count = static_cast(pipelineStats.size()); + device.getQueryPoolResults(queryPool, 0, 1, count * sizeof(uint64_t), pipelineStats.data(), sizeof(uint64_t), vk::QueryResultFlagBits::e64); } void loadAssets() override {