File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,28 @@ project "App"
36
36
os.execute (" rm -rf obj" );
37
37
end
38
38
39
+ if _OPTIONS [" use_vulkan" ] then
40
+ local vulkanSDKPath = os.getenv ( " VK_SDK_PATH" );
41
+ if vulkanSDKPath == nil then
42
+ vulkanSDKPath = os.getenv ( " VULKAN_SDK" );
43
+ end
44
+ if vulkanSDKPath ~= nil then
45
+ configuration {" x32" }
46
+ libdirs { vulkanSDKPath .. " /Bin32" }
47
+ configuration {" x64" }
48
+ libdirs { vulkanSDKPath .. " /Bin" }
49
+ configuration {}
50
+ end
51
+ if os .is (" macosx" ) then
52
+ -- no Vulkan on macOs need to error out TODO
53
+ elseif os .is (" linux" ) then
54
+ libdirs { vulkanSDKPath .. " /lib" }
55
+ links { " vulkan" }
56
+ elseif os .is (" windows" ) then
57
+ links {" Anvil" }
58
+ links {" vulkan-1" }
59
+ end
60
+ end
39
61
-- if _OPTIONS["embed_kernels"] then
40
62
-- configuration {}
41
63
-- defines {"FR_EMBED_KERNELS"}
Original file line number Diff line number Diff line change 1
1
#include " utils.h"
2
2
#include " RadeonRays/src/primitive/mesh.h"
3
3
#include " RadeonRays/src/primitive/instance.h"
4
+ #include < cfloat>
4
5
5
6
using namespace RadeonRays ;
6
7
You can’t perform that action at this time.
0 commit comments