nvpro-samples / vk_raytrace

Ray tracing glTF scene with Vulkan
Apache License 2.0
567 stars 35 forks source link

#include <thread> -- header is missing #4

Closed chrisdonlan closed 3 years ago

chrisdonlan commented 3 years ago

The thread include is missing in main.cpp:

In file included from /home/chris/lab/ray-tracing/vk_raytrace/main.cpp:32:
/usr/include/vulkan/vulkan.hpp:14218:5: note: declared here
14218 |     operator T const& () const & VULKAN_HPP_NOEXCEPT
      |     ^~~~~~~~
/home/chris/lab/ray-tracing/vk_raytrace/main.cpp: In function ‘int main(int, char**)’:
/home/chris/lab/ray-tracing/vk_raytrace/main.cpp:175:8: error: ‘thread’ is not a member of ‘std’
  175 |   std::thread([&] {
      |        ^~~~~~
/home/chris/lab/ray-tracing/vk_raytrace/main.cpp:46:1: note: ‘std::thread’ is defined in header ‘<thread>’; did you forget to ‘#include <thread>’?
   45 | #include "sample_example.hpp"
  +++ |+#include <thread>
   46 | 
mklefrancois commented 3 years ago

We have moved to vulkan_core.h, this error shouldn't show up anymore.