diff options
author | 2016-10-29 09:11:50 +0200 | |
---|---|---|
committer | 2016-10-29 09:11:50 +0200 | |
commit | a3b4058bf7266f1291cf38c30425d9948250fcd9 (patch) | |
tree | 46116c48b60368ac9c782c1d5e6e8ae16e558987 /3rdparty/bgfx/scripts/shaderc.lua | |
parent | b99be73f2db5d3f81edc96a92ac4839e7f1cc3ab (diff) |
Updated BGFX and BX and recompiled shaders (nw)
Diffstat (limited to '3rdparty/bgfx/scripts/shaderc.lua')
-rw-r--r-- | 3rdparty/bgfx/scripts/shaderc.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/3rdparty/bgfx/scripts/shaderc.lua b/3rdparty/bgfx/scripts/shaderc.lua index f45310417e4..3942b6917de 100644 --- a/3rdparty/bgfx/scripts/shaderc.lua +++ b/3rdparty/bgfx/scripts/shaderc.lua @@ -114,4 +114,26 @@ project "shaderc" path.join(GLSL_OPTIMIZER, "src/glsl/builtin_stubs.cpp"), } + if filesexist(BGFX_DIR, path.join(BGFX_DIR, "../bgfx-ext"), { + path.join(BGFX_DIR, "scripts/shaderc.lua"), }) then + + if filesexist(BGFX_DIR, path.join(BGFX_DIR, "../bgfx-ext"), { + path.join(BGFX_DIR, "tools/shaderc/shaderc_pssl.cpp"), }) then + + removefiles { + path.join(BGFX_DIR, "tools/shaderc/shaderc_pssl.cpp"), + } + end + + if filesexist(BGFX_DIR, path.join(BGFX_DIR, "../bgfx-ext"), { + path.join(BGFX_DIR, "tools/shaderc/shaderc_spirv.cpp"), }) then + + removefiles { + path.join(BGFX_DIR, "tools/shaderc/shaderc_spirv.cpp"), + } + end + + dofile(path.join(BGFX_DIR, "../bgfx-ext/scripts/shaderc.lua") ) + end + strip() |