1
0
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:
Thaddeus Crews
2025-12-02 11:52:10 -06:00
18 changed files with 9022 additions and 7724 deletions

View File

@@ -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)])