nvpro-samples/gl_vk_bk3dthreaded

Compilation Error on Ubuntu 16.04

danini-the-panini opened this issue · 0 comments

I am getting the following output when I run make: http://pastebin.com/6KUVQHL7

Notably, I am getting these errors

gl_vk_bk3dthreaded/NVK.h:795:58: error: invalid initialization of non-const reference of type ‘NVK::VkOffset2D&’ from an rvalue of type ‘NVK::VkOffset2D’
             r = VkRect2D(VkOffset2D(x,y), VkExtent2D(w,h));
...
gl_vk_bk3dthreaded/NVK.cpp:1273:28: error: invalid initialization of non-const reference of type ‘NVK::VkBufferCreateInfo&’ from an rvalue of type ‘NVK::VkBufferCreateInfo’
         memProps, bufferMem);
...
gl_vk_bk3dthreaded/NVK.cpp:1288:28: error: invalid initialization of non-const reference of type ‘NVK::VkBufferCreateInfo&’ from an rvalue of type ‘NVK::VkBufferCreateInfo’
         memProps, bufferMem);

Ubuntu version: 16.04,
Linux version: 4.4.0-36-generic
Nvidia Driver version: 367.44
VulkanSDK Version: 1.0.26.0
GPU: ASUS GTX 670 DirectCU II