-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alpha of vulkan backend for Radeon Rays, some tidy up to come (build …
…system in particular), also new unittests and sample
- Loading branch information
Showing
15 changed files
with
157 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "Anvil"] | ||
path = Anvil | ||
url = https://github.com/GPUOpen-LibrariesAndSDKs/Anvil.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
project "Anvil" | ||
location "../Anvil" | ||
kind "StaticLib" | ||
local vulkanPath = "" | ||
|
||
if _OPTIONS["use_vulkan"] then | ||
local vulkanSDKPath = os.getenv( "VK_SDK_PATH" ); | ||
if vulkanSDKPath ~= nil then | ||
vulkanPath = os.getenv( "VK_SDK_PATH" ) .. "/Include" | ||
end | ||
end | ||
|
||
includedirs { "../Anvil", | ||
"../Anvil/deps", | ||
"../Anvil/include", | ||
".", | ||
vulkanPath } | ||
|
||
if os.is("macosx") then | ||
buildoptions "-std=c++11 -stdlib=libc++ -fpermissive" | ||
glslang_os_files = "../Anvil/deps/glslang/glslang/OSDependent/Unix/*.*" | ||
elseif os.is("linux") then | ||
buildoptions "-std=c++11 -fPIC -fpermissive" | ||
glslang_os_files = "../Anvil/deps/glslang/glslang/OSDependent/Unix/*.*" | ||
elseif os.is("window") then | ||
glslang_os_files = "../Anvil/deps/glslang/glslang/OSDependent/Windows/*.*" | ||
end | ||
|
||
files { "./config.h", | ||
"../Anvil/include/misc/*.*", | ||
"../Anvil/include/wrappers/*.*", | ||
"../Anvil/src/misc/*.h", | ||
"../Anvil/src/wrappers/*.*", | ||
"../Anvil/deps/glslang/OGLCompilersDLL/*.*", | ||
"../Anvil/deps/glslang/hlsl/*.*", | ||
"../Anvil/deps/glslang/glslang/MachineIndependent/preprocessor/*.*", | ||
"../Anvil/deps/glslang/glslang/MachineIndependent/*.*", | ||
"../Anvil/deps/glslang/glslang/GenericCodeGen/*.*", | ||
"../Anvil/deps/glslang/SPIRV/*.*", | ||
glslang_os_files, | ||
} | ||
if os.is("linux") then | ||
excludes {"../Anvil/include/misc/window_win3264.h" } | ||
elseif os.is("window") then | ||
excludes { | ||
"../Anvil/include/misc/window_xcb.h", | ||
"../Anvil/include/misc/xcb_loader_for_anvil.h", | ||
"../Anvil/src/misc/window_xcb.cpp", | ||
"../Anvil/src/misc/xcb_loader_for_anvil.cpp" | ||
} | ||
end | ||
|
||
defines {"ANVIL_LINK_WITH_GLSLANG" } | ||
|
||
|
||
configuration {"x32", "Debug"} | ||
targetdir "../Bin/Debug/x86" | ||
configuration {"x64", "Debug"} | ||
targetdir "../Bin/Debug/x64" | ||
configuration {"x32", "Release"} | ||
targetdir "../Bin/Release/x86" | ||
configuration {"x64", "Release"} | ||
targetdir "../Bin/Release/x64" | ||
configuration {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* Defined if glslangvalidator is statically linked with Anvil */ | ||
#define ANVIL_LINK_WITH_GLSLANG 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters