本文介绍了MacOS-运行时Vulkan在vkPhysicalDeviceFeatures wideLines = VK_TURE时vkCreateDevice()失败,并且也不支持vkCmdSetLineWidth API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Vulkan的新手,最近开始学习.

I am new to Vulkan, and recently started learning .

我正面临一个问题,当启用

VkPhysicalDeviceFeatures 时,在 vkCreateDevice()中运行失败

I am facing issue, at runtime in vkCreateDevice() fails, when VkPhysicalDeviceFeatures is enables with

当features.wideLines = VK_FALSE时;vkCreateDevice()创建成功,但是我无法使用-vkCmdSetLineWidth(command_buffer,line_width)修改LineWidth.这给了我

And when features.wideLines = VK_FALSE; vkCreateDevice() creations is successful, but I am not able to modify the LineWidth using - vkCmdSetLineWidth (command_buffer, line_width); this gives me

这是一些细节-

VkPhysicalDeviceFeatures:

VkPhysicalDeviceFeatures:

geometryShader       = false
wideLines            = false
lineWidthRange: count =  2
        1
        1
lineWidthGranularity = 1
strictLines          = false

我在Vulkan文档中/在Google上进行了一些搜索,但找不到任何报告类似问题的人.任何帮助将不胜感激.

I did some searches in Vulkan Documentation/on google, but couldn’t find anyone reporting a similar issue. Any help would be appreciated.

推荐答案

当您告诉其他地方,Metal不支持宽线,因此MoltenVK(金属上的Vulkan)也不能支持宽线.您将必须使用多边形手动绘制宽线.

As you were told elsewhere, Metal does not support wide-lines, so MoltenVK (Vulkan over Metal) cannot support wide lines either. You will have to render wide lines manually with polygons.

这篇关于MacOS-运行时Vulkan在vkPhysicalDeviceFeatures wideLines = VK_TURE时vkCreateDevice()失败,并且也不支持vkCmdSetLineWidth API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 03:51