admin管理员组文章数量:1355697
When I give pointers to extension structs to be filled in when I call vkGetPhysicalDeviceFeatures, the rayTracingPipeline flag is 1, meaning it should be supported, and pretty all the flags in VkPhysicalDeviceRayTracingPipelineFeaturesKHR are set to 1. However when I create the logical device I get the validation error:
pCreateInfo->pNext includes a pointer to a VkPhysicalDeviceRayTracingPipelineFeaturesKHR, but when creating VkDevice, the parent extension (VK_KHR_ray_tracing_pipeline) was not included in ppEnabledExtensionNames.
So fair enough, it sounds like I have to enable the VK_KHR_RAY_TRACING_PIPELINE_EXTENSION_NAME in the enabled extensions list when creating the logical device. So I do that, but then I get:
Vulkan validation layer callback: loader_validate_device_extensions: Device extension VK_KHR_ray_tracing_pipeline not supported by selected physical device or enabled layers.
Vulkan validation layer callback: vkCreateDevice: Failed to validate extensions in list
When I check for the extension name with vkEnumerateDeviceExtensionProperties it's not in the list. I am using an Radeon RX570.
When I give pointers to extension structs to be filled in when I call vkGetPhysicalDeviceFeatures, the rayTracingPipeline flag is 1, meaning it should be supported, and pretty all the flags in VkPhysicalDeviceRayTracingPipelineFeaturesKHR are set to 1. However when I create the logical device I get the validation error:
pCreateInfo->pNext includes a pointer to a VkPhysicalDeviceRayTracingPipelineFeaturesKHR, but when creating VkDevice, the parent extension (VK_KHR_ray_tracing_pipeline) was not included in ppEnabledExtensionNames.
So fair enough, it sounds like I have to enable the VK_KHR_RAY_TRACING_PIPELINE_EXTENSION_NAME in the enabled extensions list when creating the logical device. So I do that, but then I get:
Vulkan validation layer callback: loader_validate_device_extensions: Device extension VK_KHR_ray_tracing_pipeline not supported by selected physical device or enabled layers.
Vulkan validation layer callback: vkCreateDevice: Failed to validate extensions in list
When I check for the extension name with vkEnumerateDeviceExtensionProperties it's not in the list. I am using an Radeon RX570.
Share Improve this question asked Mar 30 at 5:10 ZebrafishZebrafish 14.8k3 gold badges66 silver badges152 bronze badges1 Answer
Reset to default 1The RX 570 does not support hardware accelerated ray tracing. Querying features for extensions not supported by an implementation is undefined behaviour. That's exactly what the validation error is trying to tell you.
版权声明:本文标题:vulkan - Device doesn't have PIPELINE_EXTENSION_NAME even though rayTracingPipeline is supported - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743996211a2573035.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论