c++ - vkGetPhysicalDeviceQueueFamilyProperties 段错误
问题描述
我已经开始使用 Vulkan/C++ 进行编程,并且遇到了线路出现段错误的问题vkGetPhysicalDeviceQueueFamilyProperties( physical_device, &queue_family_count, nullptr );
。
queue_family_count
被初始化并声明为uint32_t queue_family_count = 0;
并且physical_device
是const VkPhysicalDevice
由vkEnumeratePhysicalDevices
.
其他需要VkPhysicalDevice
诸如vkGetPhysicalDeviceProperties
工作的功能,所以该设备似乎是有效的。
vkGetPhysicalDeviceQueueFamilyProperties
装载了PFN_vkGetPhysicalDeviceQueueFamilyProperties
vkGetPhysicalDeviceQueueFamilyProperties =
(PFN_vkGetPhysicalDeviceQueueFamilyProperties) vkGetInstanceProcAddr(
instance, "vkGetPhysicalDeviceQueueFamilyProperties" );
不知道是不是和操作系统有关,所以这里有一些信息:
OS: Arch Linux
WM: i3-gaps,
Kernel: x86_64 Linux 4.17.2-1-ARCH
名字physical_device
是:Intel( R) Haswell Mobile(仅由 退回的设备vkEnumeratePhysicalDevices
)。
解决方案
pacman -Syu
在今天之后自行修复。
推荐阅读
- python - 如何从python中的元组中提取字符串
- azure - 是否可以使用 ARM 创建 KeyVault、生成密码并在其他 ARM 资源中使用密码?
- wordpress - 将 wordpress 从 http 重定向到 https。子文件夹问题
- gitlab-ci - 如何找到更详细的 gitlab 运行器日志?
- c# - C# 在 PropertyGrid 中突出显示 PropertyItem
- compiler-errors - VB6 - 找不到方法或数据成员
- python - matplotlib plt.ylim 引发错误列表对象不可调用
- excel - Excel 外部工作簿参考与工作表单元格
- git - 如何从 git 重置被忽略的文件
- mingw - vcpkg 与 MinGW?