sultim-t / RayTracedGL1

MIT License
128 stars 29 forks source link

Vulkan function names error #15

Open phodina opened 2 years ago

phodina commented 2 years ago

Hi,

I'm attempting to build this library on GNU Guix. I've added the vulkan-loader and vulkan-headers as dependency.

But I get these errors:

/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ -DKHRONOS_STATIC -DLIBKTX -DRG_LIBRARY_EXPORTS -DRG_USE_SURFACE_WAYLAND -DRayTracedGL1_EXPORTS -DVK_USE_PLATFORM_WAYLAND_KHR -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/include -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/other_include -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/lib/basisu/zstd -I/tmp/guix-build-rtgl1-.drv-0/source/Include -O2 -g -DNDEBUG -fPIC -std=gnu++17 -MD -MT CMakeFiles/RayTracedGL1.dir/Source/ScratchBuffer.cpp.o -MF CMakeFiles/RayTracedGL1.dir/Source/ScratchBuffer.cpp.o.d -o CMakeFiles/RayTracedGL1.dir/Source/ScratchBuffer.cpp.o -c /tmp/guix-build-rtgl1-.drv-0/source/Source/ScratchBuffer.cpp
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/PhysicalDevice.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/PhysicalDevice.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/Queues.h:24,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/Queues.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/Buffer.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/AutoBuffer.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/GlobalUniform.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/GlobalUniform.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/BlueNoise.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/Buffer.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/Buffer.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:27,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/RTGL1.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/CommandBufferManager.h:25,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/CommandBufferManager.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:27,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/VertexCollectorFilter.h:25,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VertexCollectorFilter.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/Swapchain.h:26,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/Swapchain.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/ASBuilder.h:25,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/ASManager.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/Scene.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/Scene.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/ASBuilder.h:25,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/ASBuilder.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/Buffer.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/ScratchBuffer.h:25,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/ScratchBuffer.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/Buffer.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VertexCollector.h:25,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VertexCollector.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/ASBuilder.h:25,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/ASManager.h:23,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/ASManager.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:163: CMakeFiles/RayTracedGL1.dir/Source/Queues.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/ShaderManager.h:26,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/ShaderManager.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:58:45: error: ‘PFN_vkCmdPipelineBarrier2KHR’ does not name a type; did you mean ‘PFN_vkCmdPipelineBarrier’?
   58 | #define VK_EXTENSION_FUNCTION(fname) extern PFN_##fname s##fname;
      |                                             ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:41:2: note: in expansion of macro ‘VK_EXTENSION_FUNCTION’
   41 |  VK_EXTENSION_FUNCTION(vkCmdPipelineBarrier2KHR) \
      |  ^~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Common.h:60:1: note: in expansion of macro ‘VK_DEVICE_FUNCTION_LIST’
   60 | VK_DEVICE_FUNCTION_LIST
      | ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:149: CMakeFiles/RayTracedGL1.dir/Source/PhysicalDevice.cpp.o] Error 1
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:205: CMakeFiles/RayTracedGL1.dir/Source/CommandBufferManager.cpp.o] Error 1
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:275: CMakeFiles/RayTracedGL1.dir/Source/VertexCollectorFilter.cpp.o] Error 1
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.h:26,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h: In member function ‘void RTGL1::Framebuffers::BarrierMultiple(VkCommandBuffer, uint32_t, const RTGL1::FramebufferImageIndex (&)[BARRIER_COUNT], RTGL1::Framebuffers::BarrierType)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:130:16: error: ‘VkImageMemoryBarrier2KHR’ was not declared in this scope; did you mean ‘VkImageMemoryBarrier’?
  130 |     std::array<VkImageMemoryBarrier2KHR, BARRIER_COUNT> tmpBarriers;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
      |                VkImageMemoryBarrier
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:130:55: error: template argument 1 is invalid
  130 |     std::array<VkImageMemoryBarrier2KHR, BARRIER_COUNT> tmpBarriers;
      |                                                       ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:132:5: error: ‘VkAccessFlags2KHR’ was not declared in this scope; did you mean ‘VkAccessFlags’?
  132 |     VkAccessFlags2KHR srcAccess = 0, dstAccess = 0;
      |     ^~~~~~~~~~~~~~~~~
      |     VkAccessFlags
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:121: CMakeFiles/RayTracedGL1.dir/Source/Buffer.cpp.o] Error 1
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:133:5: error: ‘VkPipelineStageFlags2KHR’ was not declared in this scope; did you mean ‘VkPipelineStageFlags’?
  133 |     VkPipelineStageFlags2KHR srcStage = 0, dstStage = 0;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     VkPipelineStageFlags
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:13: error: ‘srcAccess’ was not declared in this scope
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |             ^~~~~~~~~
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:191: CMakeFiles/RayTracedGL1.dir/Source/GlobalUniform.cpp.o] Error 1
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:289: CMakeFiles/RayTracedGL1.dir/Source/ASBuilder.cpp.o] Error 1
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:303: CMakeFiles/RayTracedGL1.dir/Source/ScratchBuffer.cpp.o] Error 1
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:25: error: ‘VK_ACCESS_2_SHADER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         VK_ACCESS_SHADER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:60: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                            VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:105: error: ‘VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                         VK_ACCESS_TRANSFER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:139:13: error: ‘srcStage’ was not declared in this scope
  139 |             srcStage =
      |             ^~~~~~~~
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:177: CMakeFiles/RayTracedGL1.dir/Source/Swapchain.cpp.o] Error 1
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:140:17: error: ‘VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT’?
  140 |                 VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:141:17: error: ‘VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR’?
  141 |                 VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.h:26,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/PathTracer.h:24,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:35,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/RTGL1.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h: In member function ‘void RTGL1::Framebuffers::BarrierMultiple(VkCommandBuffer, uint32_t, const RTGL1::FramebufferImageIndex (&)[BARRIER_COUNT], RTGL1::Framebuffers::BarrierType)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:130:16: error: ‘VkImageMemoryBarrier2KHR’ was not declared in this scope; did you mean ‘VkImageMemoryBarrier’?
  130 |     std::array<VkImageMemoryBarrier2KHR, BARRIER_COUNT> tmpBarriers;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
      |                VkImageMemoryBarrier
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:130:55: error: template argument 1 is invalid
  130 |     std::array<VkImageMemoryBarrier2KHR, BARRIER_COUNT> tmpBarriers;
      |                                                       ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:132:5: error: ‘VkAccessFlags2KHR’ was not declared in this scope; did you mean ‘VkAccessFlags’?
  132 |     VkAccessFlags2KHR srcAccess = 0, dstAccess = 0;
      |     ^~~~~~~~~~~~~~~~~
      |     VkAccessFlags
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:133:5: error: ‘VkPipelineStageFlags2KHR’ was not declared in this scope; did you mean ‘VkPipelineStageFlags’?
  133 |     VkPipelineStageFlags2KHR srcStage = 0, dstStage = 0;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     VkPipelineStageFlags
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:13: error: ‘srcAccess’ was not declared in this scope
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |             ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:142:17: error: ‘VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT’?
  142 |                 VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:25: error: ‘VK_ACCESS_2_SHADER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         VK_ACCESS_SHADER_WRITE_BIT
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:219: CMakeFiles/RayTracedGL1.dir/Source/ShaderManager.cpp.o] Error 1
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:143:17: error: ‘VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_TRANSFER_BIT’?
  143 |                 VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR;
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_TRANSFER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:166:5: error: ‘dstAccess’ was not declared in this scope
  166 |     dstAccess =
      |     ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:60: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                            VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.h:26,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/PathTracer.h:24,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:35,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h: In member function ‘void RTGL1::Framebuffers::BarrierMultiple(VkCommandBuffer, uint32_t, const RTGL1::FramebufferImageIndex (&)[BARRIER_COUNT], RTGL1::Framebuffers::BarrierType)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:130:16: error: ‘VkImageMemoryBarrier2KHR’ was not declared in this scope; did you mean ‘VkImageMemoryBarrier’?
  130 |     std::array<VkImageMemoryBarrier2KHR, BARRIER_COUNT> tmpBarriers;
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
      |                VkImageMemoryBarrier
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:130:55: error: template argument 1 is invalid
  130 |     std::array<VkImageMemoryBarrier2KHR, BARRIER_COUNT> tmpBarriers;
      |                                                       ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:167:9: error: ‘VK_ACCESS_2_SHADER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_WRITE_BIT’?
  167 |         VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_SHADER_READ_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_SHADER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:132:5: error: ‘VkAccessFlags2KHR’ was not declared in this scope; did you mean ‘VkAccessFlags’?
  132 |     VkAccessFlags2KHR srcAccess = 0, dstAccess = 0;
      |     ^~~~~~~~~~~~~~~~~
      |     VkAccessFlags
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:105: error: ‘VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                         VK_ACCESS_TRANSFER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:133:5: error: ‘VkPipelineStageFlags2KHR’ was not declared in this scope; did you mean ‘VkPipelineStageFlags’?
  133 |     VkPipelineStageFlags2KHR srcStage = 0, dstStage = 0;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     VkPipelineStageFlags
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:139:13: error: ‘srcStage’ was not declared in this scope
  139 |             srcStage =
      |             ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:13: error: ‘srcAccess’ was not declared in this scope
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |             ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:167:44: error: ‘VK_ACCESS_2_SHADER_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_READ_BIT’?
  167 |         VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_SHADER_READ_BIT_KHR |
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            VK_ACCESS_SHADER_READ_BIT
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:247: CMakeFiles/RayTracedGL1.dir/Source/VertexCollector.cpp.o] Error 1
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:261: CMakeFiles/RayTracedGL1.dir/Source/ASManager.cpp.o] Error 1
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:25: error: ‘VK_ACCESS_2_SHADER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         VK_ACCESS_SHADER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:140:17: error: ‘VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT’?
  140 |                 VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:168:9: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT’?
  168 |         VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:141:17: error: ‘VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR’?
  141 |                 VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:60: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                            VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:168:54: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_READ_BIT’?
  168 |         VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR |
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_ACCESS_COLOR_ATTACHMENT_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:142:17: error: ‘VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT’?
  142 |                 VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:138:105: error: ‘VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_WRITE_BIT’?
  138 |             srcAccess = VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR;
      |                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                         VK_ACCESS_TRANSFER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:139:13: error: ‘srcStage’ was not declared in this scope
  139 |             srcStage =
      |             ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:169:9: error: ‘VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_WRITE_BIT’?
  169 |         VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_READ_BIT_KHR;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_TRANSFER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:140:17: error: ‘VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT’?
  140 |                 VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:143:17: error: ‘VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_TRANSFER_BIT’?
  143 |                 VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR;
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_TRANSFER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:166:5: error: ‘dstAccess’ was not declared in this scope
  166 |     dstAccess =
      |     ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:169:46: error: ‘VK_ACCESS_2_TRANSFER_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_READ_BIT’?
  169 |         VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_READ_BIT_KHR;
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                              VK_ACCESS_TRANSFER_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:170:5: error: ‘dstStage’ was not declared in this scope
  170 |     dstStage =
      |     ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:141:17: error: ‘VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR’?
  141 |                 VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:167:9: error: ‘VK_ACCESS_2_SHADER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_WRITE_BIT’?
  167 |         VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_SHADER_READ_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_SHADER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:171:9: error: ‘VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT’?
  171 |         VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:142:17: error: ‘VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT’?
  142 |                 VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR |
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:167:44: error: ‘VK_ACCESS_2_SHADER_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_READ_BIT’?
  167 |         VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_SHADER_READ_BIT_KHR |
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            VK_ACCESS_SHADER_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:172:9: error: ‘VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR’?
  172 |         VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:168:9: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT’?
  168 |         VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:143:17: error: ‘VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_TRANSFER_BIT’?
  143 |                 VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR;
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 VK_PIPELINE_STAGE_TRANSFER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:166:5: error: ‘dstAccess’ was not declared in this scope
  166 |     dstAccess =
      |     ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:173:9: error: ‘VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT’?
  173 |         VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:135: CMakeFiles/RayTracedGL1.dir/Source/Scene.cpp.o] Error 1
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:168:54: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_READ_BIT’?
  168 |         VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR |
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_ACCESS_COLOR_ATTACHMENT_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:167:9: error: ‘VK_ACCESS_2_SHADER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_WRITE_BIT’?
  167 |         VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_SHADER_READ_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_SHADER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:174:9: error: ‘VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_TRANSFER_BIT’?
  174 |         VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_TRANSFER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:183:35: error: ‘b’ was not declared in this scope
  183 |         VkImageMemoryBarrier2KHR &b = tmpBarriers[i];
      |                                   ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:183:50: error: invalid types ‘int[uint32_t {aka unsigned int}]’ for array subscript
  183 |         VkImageMemoryBarrier2KHR &b = tmpBarriers[i];
      |                                                  ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:167:44: error: ‘VK_ACCESS_2_SHADER_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_SHADER_READ_BIT’?
  167 |         VK_ACCESS_2_SHADER_WRITE_BIT_KHR | VK_ACCESS_2_SHADER_READ_BIT_KHR |
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            VK_ACCESS_SHADER_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:169:9: error: ‘VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_WRITE_BIT’?
  169 |         VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_READ_BIT_KHR;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_TRANSFER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:169:46: error: ‘VK_ACCESS_2_TRANSFER_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_READ_BIT’?
  169 |         VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_READ_BIT_KHR;
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                              VK_ACCESS_TRANSFER_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:186:19: error: ‘VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER’?
  186 |         b.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR;
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                   VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:170:5: error: ‘dstStage’ was not declared in this scope
  170 |     dstStage =
      |     ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:168:9: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT’?
  168 |         VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:190:27: error: ‘srcAccess’ was not declared in this scope
  190 |         b.srcAccessMask = srcAccess;
      |                           ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:192:26: error: ‘srcStage’ was not declared in this scope
  192 |         b.srcStageMask = srcStage;
      |                          ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:205:5: error: ‘VkDependencyInfoKHR’ was not declared in this scope; did you mean ‘VkPipelineInfoKHR’?
  205 |     VkDependencyInfoKHR dependencyInfo = {};
      |     ^~~~~~~~~~~~~~~~~~~
      |     VkPipelineInfoKHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:206:5: error: ‘dependencyInfo’ was not declared in this scope
  206 |     dependencyInfo.sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR;
      |     ^~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:171:9: error: ‘VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT’?
  171 |         VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:168:54: error: ‘VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_COLOR_ATTACHMENT_READ_BIT’?
  168 |         VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT_KHR | VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT_KHR |
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      VK_ACCESS_COLOR_ATTACHMENT_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:172:9: error: ‘VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR’?
  172 |         VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:206:28: error: ‘VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR’?
  206 |     dependencyInfo.sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                            VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:207:58: error: request for member ‘size’ in ‘tmpBarriers’, which is of non-class type ‘int’
  207 |     dependencyInfo.imageMemoryBarrierCount = tmpBarriers.size();
      |                                                          ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:208:55: error: request for member ‘data’ in ‘tmpBarriers’, which is of non-class type ‘int’
  208 |     dependencyInfo.pImageMemoryBarriers = tmpBarriers.data();
      |                                                       ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:5: error: there are no arguments to ‘svkCmdPipelineBarrier2KHR’ that depend on a template parameter, so a declaration of ‘svkCmdPipelineBarrier2KHR’ must be available [-fpermissive]
  210 |     svkCmdPipelineBarrier2KHR(cmd, &dependencyInfo);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:5: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:169:9: error: ‘VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_WRITE_BIT’?
  169 |         VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_READ_BIT_KHR;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_ACCESS_TRANSFER_WRITE_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:173:9: error: ‘VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT’?
  173 |         VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:169:46: error: ‘VK_ACCESS_2_TRANSFER_READ_BIT_KHR’ was not declared in this scope; did you mean ‘VK_ACCESS_TRANSFER_READ_BIT’?
  169 |         VK_ACCESS_2_TRANSFER_WRITE_BIT_KHR | VK_ACCESS_2_TRANSFER_READ_BIT_KHR;
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                              VK_ACCESS_TRANSFER_READ_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:170:5: error: ‘dstStage’ was not declared in this scope
  170 |     dstStage =
      |     ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:171:9: error: ‘VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT’?
  171 |         VK_PIPELINE_STAGE_2_ALL_GRAPHICS_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:174:9: error: ‘VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_TRANSFER_BIT’?
  174 |         VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_TRANSFER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:183:35: error: ‘b’ was not declared in this scope
  183 |         VkImageMemoryBarrier2KHR &b = tmpBarriers[i];
      |                                   ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:183:50: error: invalid types ‘int[uint32_t {aka unsigned int}]’ for array subscript
  183 |         VkImageMemoryBarrier2KHR &b = tmpBarriers[i];
      |                                                  ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:172:9: error: ‘VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR’?
  172 |         VK_PIPELINE_STAGE_2_RAY_TRACING_SHADER_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:186:19: error: ‘VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER’?
  186 |         b.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR;
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                   VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:190:27: error: ‘srcAccess’ was not declared in this scope
  190 |         b.srcAccessMask = srcAccess;
      |                           ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:192:26: error: ‘srcStage’ was not declared in this scope
  192 |         b.srcStageMask = srcStage;
      |                          ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:173:9: error: ‘VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT’?
  173 |         VK_PIPELINE_STAGE_2_COMPUTE_SHADER_BIT_KHR |
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:205:5: error: ‘VkDependencyInfoKHR’ was not declared in this scope; did you mean ‘VkPipelineInfoKHR’?
  205 |     VkDependencyInfoKHR dependencyInfo = {};
      |     ^~~~~~~~~~~~~~~~~~~
      |     VkPipelineInfoKHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:206:5: error: ‘dependencyInfo’ was not declared in this scope
  206 |     dependencyInfo.sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR;
      |     ^~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:174:9: error: ‘VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR’ was not declared in this scope; did you mean ‘VK_PIPELINE_STAGE_TRANSFER_BIT’?
  174 |         VK_PIPELINE_STAGE_2_ALL_TRANSFER_BIT_KHR;
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_PIPELINE_STAGE_TRANSFER_BIT
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:183:35: error: ‘b’ was not declared in this scope
  183 |         VkImageMemoryBarrier2KHR &b = tmpBarriers[i];
      |                                   ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:183:50: error: invalid types ‘int[uint32_t {aka unsigned int}]’ for array subscript
  183 |         VkImageMemoryBarrier2KHR &b = tmpBarriers[i];
      |                                                  ^
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:206:28: error: ‘VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR’?
  206 |     dependencyInfo.sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                            VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:207:58: error: request for member ‘size’ in ‘tmpBarriers’, which is of non-class type ‘int’
  207 |     dependencyInfo.imageMemoryBarrierCount = tmpBarriers.size();
      |                                                          ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:208:55: error: request for member ‘data’ in ‘tmpBarriers’, which is of non-class type ‘int’
  208 |     dependencyInfo.pImageMemoryBarriers = tmpBarriers.data();
      |                                                       ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:5: error: there are no arguments to ‘svkCmdPipelineBarrier2KHR’ that depend on a template parameter, so a declaration of ‘svkCmdPipelineBarrier2KHR’ must be available [-fpermissive]
  210 |     svkCmdPipelineBarrier2KHR(cmd, &dependencyInfo);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:5: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:186:19: error: ‘VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER’?
  186 |         b.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2_KHR;
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                   VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:190:27: error: ‘srcAccess’ was not declared in this scope
  190 |         b.srcAccessMask = srcAccess;
      |                           ^~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:192:26: error: ‘srcStage’ was not declared in this scope
  192 |         b.srcStageMask = srcStage;
      |                          ^~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:205:5: error: ‘VkDependencyInfoKHR’ was not declared in this scope; did you mean ‘VkPipelineInfoKHR’?
  205 |     VkDependencyInfoKHR dependencyInfo = {};
      |     ^~~~~~~~~~~~~~~~~~~
      |     VkPipelineInfoKHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:206:5: error: ‘dependencyInfo’ was not declared in this scope
  206 |     dependencyInfo.sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR;
      |     ^~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:206:28: error: ‘VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR’?
  206 |     dependencyInfo.sType = VK_STRUCTURE_TYPE_DEPENDENCY_INFO_KHR;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                            VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:207:58: error: request for member ‘size’ in ‘tmpBarriers’, which is of non-class type ‘int’
  207 |     dependencyInfo.imageMemoryBarrierCount = tmpBarriers.size();
      |                                                          ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:208:55: error: request for member ‘data’ in ‘tmpBarriers’, which is of non-class type ‘int’
  208 |     dependencyInfo.pImageMemoryBarriers = tmpBarriers.data();
      |                                                       ^~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:5: error: there are no arguments to ‘svkCmdPipelineBarrier2KHR’ that depend on a template parameter, so a declaration of ‘svkCmdPipelineBarrier2KHR’ must be available [-fpermissive]
  210 |     svkCmdPipelineBarrier2KHR(cmd, &dependencyInfo);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:5: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:52,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/RTGL1.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectWipe.h: In member function ‘bool RTGL1::EffectWipe::Setup(const RTGL1::CommonnlyUsedEffectArguments&, const RgPostEffectWipe*, const std::shared_ptr<RTGL1::Swapchain>&, uint32_t)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectWipe.h:101:17: error: ‘VK_ACCESS_NONE_KHR’ was not declared in this scope; did you mean ‘VK_THREAD_DONE_KHR’?
  101 |                 VK_ACCESS_NONE_KHR, VK_ACCESS_TRANSFER_READ_BIT,
      |                 ^~~~~~~~~~~~~~~~~~
      |                 VK_THREAD_DONE_KHR
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:52,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectWipe.h: In member function ‘bool RTGL1::EffectWipe::Setup(const RTGL1::CommonnlyUsedEffectArguments&, const RgPostEffectWipe*, const std::shared_ptr<RTGL1::Swapchain>&, uint32_t)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectWipe.h:101:17: error: ‘VK_ACCESS_NONE_KHR’ was not declared in this scope; did you mean ‘VK_THREAD_DONE_KHR’?
  101 |                 VK_ACCESS_NONE_KHR, VK_ACCESS_TRANSFER_READ_BIT,
      |                 ^~~~~~~~~~~~~~~~~~
      |                 VK_THREAD_DONE_KHR
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.h:26,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/PathTracer.h:24,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:35,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/RTGL1.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h: In instantiation of ‘void RTGL1::Framebuffers::BarrierMultiple(VkCommandBuffer, uint32_t, const RTGL1::FramebufferImageIndex (&)[BARRIER_COUNT], RTGL1::Framebuffers::BarrierType) [with unsigned int BARRIER_COUNT = 1; VkCommandBuffer = VkCommandBuffer_T*; uint32_t = unsigned int]’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectBase.h:152:34:   required from ‘RTGL1::FramebufferImageIndex RTGL1::EffectBase::Dispatch(VkCommandBuffer, uint32_t, const std::shared_ptr<RTGL1::Framebuffers>&, uint32_t, uint32_t, RTGL1::FramebufferImageIndex, VkDescriptorSet_T* const (&)[DESC_SET_COUNT]) [with int DESC_SET_COUNT = 3; VkCommandBuffer = VkCommandBuffer_T*; uint32_t = unsigned int; VkDescriptorSet = VkDescriptorSet_T*]’
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectWipe.h:138:119:   required from here
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:51: error: ‘svkCmdPipelineBarrier2KHR’ was not declared in this scope; did you mean ‘vkCmdPipelineBarrier’?
  210 |     svkCmdPipelineBarrier2KHR(cmd, &dependencyInfo);
      |                                                   ^
      |                                                   vkCmdPipelineBarrier
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:233: CMakeFiles/RayTracedGL1.dir/Source/RayTracingPipeline.cpp.o] Error 1
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:79: CMakeFiles/RayTracedGL1.dir/Source/RTGL1.cpp.o] Error 1
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp: In member function ‘void RTGL1::VulkanDevice::CreateDevice()’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1583:5: error: ‘VkPhysicalDeviceSynchronization2FeaturesKHR’ was not declared in this scope; did you mean ‘VkPhysicalDeviceLineRasterizationFeaturesEXT’?
 1583 |     VkPhysicalDeviceSynchronization2FeaturesKHR sync2Features = {};
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     VkPhysicalDeviceLineRasterizationFeaturesEXT
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1584:5: error: ‘sync2Features’ was not declared in this scope; did you mean ‘vulkan12Features’?
 1584 |     sync2Features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR;
      |     ^~~~~~~~~~~~~
      |     vulkan12Features
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1584:27: error: ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR’ was not declared in this scope; did you mean ‘VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR’?
 1584 |     sync2Features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR;
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                           VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1618:9: error: ‘VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME’ was not declared in this scope; did you mean ‘VK_KHR_SWAPCHAIN_EXTENSION_NAME’?
 1618 |         VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         VK_KHR_SWAPCHAIN_EXTENSION_NAME
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1620:5: error: could not convert ‘{"VK_KHR_swapchain", "VK_KHR_deferred_host_operations", "VK_KHR_pipeline_library", "VK_KHR_ray_tracing_pipeline", "VK_KHR_acceleration_structure", <expression error>, "VK_KHR_shader_float16_int8"}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<const char*>’
 1620 |     };
      |     ^
      |     |
      |     <brace-enclosed initializer list>
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp: In static member function ‘static VkSurfaceKHR_T* RTGL1::VulkanDevice::GetSurfaceFromUser(VkInstance, const RgInstanceCreateInfo&)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1754:40: error: cannot convert ‘VkSurfaceKHR_T**’ to ‘VkResult’ in assignment
 1754 |         r = (instance, &wlInfo, nullptr, &surface);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                        |
      |                                        VkSurfaceKHR_T**
In file included from /tmp/guix-build-rtgl1-.drv-0/source/Source/RayTracingPipeline.h:26,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/PathTracer.h:24,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.h:35,
                 from /tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:21:
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h: In instantiation of ‘void RTGL1::Framebuffers::BarrierMultiple(VkCommandBuffer, uint32_t, const RTGL1::FramebufferImageIndex (&)[BARRIER_COUNT], RTGL1::Framebuffers::BarrierType) [with unsigned int BARRIER_COUNT = 1; VkCommandBuffer = VkCommandBuffer_T*; uint32_t = unsigned int]’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectBase.h:152:34:   required from ‘RTGL1::FramebufferImageIndex RTGL1::EffectBase::Dispatch(VkCommandBuffer, uint32_t, const std::shared_ptr<RTGL1::Framebuffers>&, uint32_t, uint32_t, RTGL1::FramebufferImageIndex, VkDescriptorSet_T* const (&)[DESC_SET_COUNT]) [with int DESC_SET_COUNT = 3; VkCommandBuffer = VkCommandBuffer_T*; uint32_t = unsigned int; VkDescriptorSet = VkDescriptorSet_T*]’
/tmp/guix-build-rtgl1-.drv-0/source/Source/EffectWipe.h:138:119:   required from here
/tmp/guix-build-rtgl1-.drv-0/source/Source/Framebuffers.h:210:51: error: ‘svkCmdPipelineBarrier2KHR’ was not declared in this scope; did you mean ‘vkCmdPipelineBarrier’?
  210 |     svkCmdPipelineBarrier2KHR(cmd, &dependencyInfo);
      |                                                   ^
      |                                                   vkCmdPipelineBarrier
make[2]: *** [CMakeFiles/RayTracedGL1.dir/build.make:107: CMakeFiles/RayTracedGL1.dir/Source/VulkanDevice.cpp.o] Error 1

What is the difference between PFN_vkCmdPipelineBarrier2KHR and PFN_vkCmdPipelineBarrier? How can I fix the build?

Jackfritt commented 2 years ago

I had the same problem. I needed the latest vulkan sdk. straightforward install, it takes a while...

wget https://sdk.lunarg.com/sdk/download/1.3.211.0/linux/vulkansdk-linux-x86_64-1.3.211.0.tar.gz wget https://sdk.lunarg.com/sdk/download/1.3.211.0/linux/config.json tar zxvf vulkansdk-linux-x86_64-1.3.211.0.tar.gz cd 1.3.211.0/ sudo aptitude install libxcb-keysyms1-dev export NUMJOBS=12 ./vulkansdk source setup-env.sh

From this console go on..as the env is temporary to it...

phodina commented 2 years ago

Thanks @Jackfritt , I'll package newer vulkan packages and try again

phodina commented 2 years ago

Ok, So I've packaged vulkan-loader and vulkan-headers in version 1.3.211.

However, there is still at least one error:

/gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ -DKHRONOS_STATIC -DLIBKTX -DRG_LIBRARY_EXPORTS -DRG_USE_SURFACE_WAYLAND -DRayTracedGL1_EXPORTS -DVK_USE_PLATFORM_WAYLAND_KHR -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/include -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/other_include -I/tmp/guix-build-rtgl1-.drv-0/source/Source/KTX/lib/basisu/zstd -I/tmp/guix-build-rtgl1-.drv-0/source/Include -O2 -g -DNDEBUG -fPIC -std=gnu++17 -MD -MT CMakeFiles/RayTracedGL1.dir/Source/MemoryAllocator.cpp.o -MF CMakeFiles/RayTracedGL1.dir/Source/MemoryAllocator.cpp.o.d -o CMakeFiles/RayTracedGL1.dir/Source/MemoryAllocator.cpp.o -c /tmp/guix-build-rtgl1-.drv-0/source/Source/MemoryAllocator.cpp
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp: In static member function ‘static VkSurfaceKHR_T* RTGL1::VulkanDevice::GetSurfaceFromUser(VkInstance, const RgInstanceCreateInfo&)’:
/tmp/guix-build-rtgl1-.drv-0/source/Source/VulkanDevice.cpp:1754:40: error: cannot convert ‘VkSurfaceKHR_T**’ to ‘VkResult’ in assignment
 1754 |         r = (instance, &wlInfo, nullptr, &surface);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                        |
      |                                        VkSurfaceKHR_T**
Jackfritt commented 2 years ago

@phodina Sorry cant help with that. for me it works...

phodina commented 2 years ago

Thanks for the help @Jackfritt, it's probably somehting Guix specific - slightly different versions or something like that