Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
6.2.4
-
None
-
ubuntu 22
Description
I was trying to replicate the CUDA sample simpleVulkan with qt, but I encountered a problem when using the vkGetPhysicalDeviceMemoryProperties method.
This can neither be used by QVulkanDeviceFunctions nor be used directly. here is the following error message:
[build] In file included from /home/ely/文档/QtGui/LayoutSimulation/PreSimulationView.cpp:7: [build] /home/ely/文档/QtGui/LayoutSimulation/PreSimulationViewTools.h: In function 'uint32_t findMemoryType(VkPhysicalDevice, uint32_t, VkMemoryPropertyFlags)': [build] /home/ely/文档/QtGui/LayoutSimulation/PreSimulationViewTools.h:12:3: error: 'vkGetPhysicalDeviceMemoryProperties' was not declared in this scope; did you mean 'VkPhysicalDeviceMemoryProperties'? [build] 12 | vkGetPhysicalDeviceMemoryProperties(physicalDevice, &memProperties); [build] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [build] | VkPhysicalDeviceMemoryProperties [build] /home/ely/文档/QtGui/LayoutSimulation/PreSimulationView.cpp: In member function 'void PreSimulationView::recreateImageSize()': [build] /home/ely/文档/QtGui/LayoutSimulation/PreSimulationView.cpp:82:9: error: 'class QVulkanDeviceFunctions' has no member named 'vkGetPhysicalDeviceMemoryProperties' [build] 82 | df->vkGetPhysicalDeviceMemoryProperties(physicalDevice, &memProperties); [build] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [build] ninja: build stopped: subcommand failed.
I'm wondering, is that a bug or is that designed to be like that? and if is the latter, is that an alternative or the correct way to do so?