You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Merge pull request #111452 from DarioSamo/re-spirv
Use re-spirv in the Vulkan driver to optimize shaders.
This commit is contained in:
@@ -12,6 +12,7 @@ thirdparty_obj = []
|
||||
|
||||
if env["builtin_glslang"]:
|
||||
thirdparty_dir = "#thirdparty/glslang/"
|
||||
thirdparty_spirv_headers_dir = "#thirdparty/spirv-headers/"
|
||||
thirdparty_sources = [
|
||||
"glslang/GenericCodeGen/CodeGen.cpp",
|
||||
"glslang/GenericCodeGen/Link.cpp",
|
||||
@@ -63,6 +64,7 @@ if env["builtin_glslang"]:
|
||||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
||||
|
||||
env_glslang.Prepend(CPPPATH=[thirdparty_dir, "#thirdparty"])
|
||||
env_glslang.Prepend(CPPPATH=[thirdparty_spirv_headers_dir + "include/spirv/unified1"])
|
||||
|
||||
env_glslang.Append(CPPDEFINES=[("ENABLE_OPT", 0)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user