nvpro-samples / vk_raytracing_tutorial_KHR

Ray tracing examples and tutorials using VK_KHR_ray_tracing
Apache License 2.0
1.34k stars 142 forks source link

VK_ERROR_LAYER_NOT_PRESENT on GTX1060 #22

Closed 2H0U closed 3 years ago

2H0U commented 3 years ago

Hi, I tried all ray tracing samples, and vkCreateInstance always return error message "VK_ERROR_LAYER_NOT_PRESENT". Please help. Thanks in advance. Below is my environment:

2H0U commented 3 years ago

It seem that GTX1060 (6GB) doesn't support ray query. VkPhysicalDeviceRayQueryFeaturesKHR::rayQuery is set to 0 after calling vkGetPhysicalDeviceFeatures2().

2H0U commented 3 years ago

The old version vk_raytracing_tutorial works on GTX1060. It uses traceRaysNV instead of traceRaysKHR. https://github.com/nvpro-samples/vk_raytracing_tutorial

NBickford-NV commented 3 years ago

Hi 2H0U! In case you're still having the issue with VK_ERROR_LAYER_NOT_PRESENT (this repository's code except for ray_tracing_rayquery should work on the GTX 1060 6GB, as all samples except for that one use ray queries), see if the discussion in https://github.com/nvpro-samples/vk_mini_path_tracer/issues/8 solves your problem. In that case:

2H0U commented 3 years ago

Thanks for the reply. I was using CUDA toolkit 9 when the error occurred. After upgrading to CUDA toolkit 11, all new version (using traceRaysKHR) samples except ray query run perfectly. In my case, VK_LAYER_KHRONOS_validation was displayed in console log.

NBickford-NV commented 3 years ago

Ah, OK, glad you figured it out!