1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +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

@@ -9,6 +9,7 @@ env_metal = env.Clone()
thirdparty_obj = []
thirdparty_spirv_headers_dir = "#thirdparty/spirv-headers/"
thirdparty_dir = "#thirdparty/spirv-cross/"
thirdparty_sources = [
"spirv_cfg.cpp",
@@ -22,6 +23,7 @@ thirdparty_sources = [
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
env_metal.Prepend(CPPPATH=[thirdparty_dir, thirdparty_dir + "/include"])
env_metal.Prepend(CPPPATH=[thirdparty_spirv_headers_dir + "include/spirv/unified1"])
# Must enable exceptions for SPIRV-Cross; otherwise, it will abort the process on errors.
if "-fno-exceptions" in env_metal["CXXFLAGS"]: