Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115533

Vulkan problem: can not use 'vkGetPhysicalDeviceMemoryProperties'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 6.2.4
    • GUI: Vulkan
    • None
    • ubuntu 22
    • Linux/Other display system

    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?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            garden_eel Zhou GaDoon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes