nvpro-samples / vk_raytracing_tutorial_KHR

Ray tracing examples and tutorials using VK_KHR_ray_tracing
Apache License 2.0
1.36k stars 143 forks source link

Error in the "vk_ray_tracing__simple_KHR" sample #17

Closed pnt1614 closed 3 years ago

pnt1614 commented 3 years ago

I try to run the "vk_ray_tracing__simple_KHR" sample but I always get an error about missing vkGetBufferDeviceAddress" dll. Is there anyway to fix this problem?

mklefrancois commented 3 years ago

I guess the issue you are seeing is due to the wrong Vulkan SDK. You need 1.2.162.0 and up, containing the official release for ray tracing. It is unfortunately not available for download and building one at the moment requires to be a Khronos member. I'm expecting a new SDK to be available before the end of the year (https://vulkan.lunarg.com/sdk/home). For the moment, you will also need the beta driver: https://developer.nvidia.com/vulkan-driver

pnt1614 commented 3 years ago

Thanks for the reply, mklefrancois. I have installed the Vulkan SDK 1.2.162.0 and the latest beta driver for my RTX 2060 GPU card, and it fixes the "vkGetBufferDeviceAddress" problem. However, I still cannot run the sample due to the following error message: " Could NOT locate mandatory extension 'VK_KHR_ray_tracing' Skipping physical device GeForce RTX 2060 Physical devices found : OMG... NONE !!"

Do you know how to solve it? or Do I have to wait for the official release Nvidia driver?

akeley98 commented 3 years ago

The VK_KHR_ray_tracing extension no longer exists as it has been split into three different extensions:

VK_KHR_acceleration_structure VK_KHR_ray_tracing_pipeline VK_KHR_ray_query

Can you check that you have the latest version of shared_sources and vk_raytracing_tutorial_KHR checked out and recompile?

pnt1614 commented 3 years ago

I have cloned the latest version and everything works perfect.

Thanks guys.