Commit Graph

18540 Commits

Author SHA1 Message Date
Kovid Goyal
a8fa0ff13f Bump slang version, allows removing one glsl workaround 2026-07-03 13:44:29 +05:30
Kovid Goyal
00fc69ecb6 Rebuild when build script is newer than cached IR 2026-07-03 13:44:29 +05:30
Kovid Goyal
4910737490 Handle fixup of flat location specifiers 2026-07-03 13:44:29 +05:30
Kovid Goyal
32a0875ec3 Make mypy happy 2026-07-03 13:44:29 +05:30
Kovid Goyal
e1627f3737 Handle uniform structs 2026-07-03 13:44:28 +05:30
Kovid Goyal
70b909eb25 Nicer validation integration 2026-07-03 13:44:28 +05:30
Kovid Goyal
8e3409fedf Handle array uniforms when fixing GLSL 2026-07-03 13:44:28 +05:30
Kovid Goyal
053cf017f3 Do not generate empty default specialization files 2026-07-03 13:44:28 +05:30
Kovid Goyal
25268ac48a Reduce the number of specialisation vars for the cell shader
Use macros for the from C constants
2026-07-03 13:44:28 +05:30
Kovid Goyal
2b896c06ec Infrastructure for porting cell shader 2026-07-03 13:44:28 +05:30
Kovid Goyal
875d96216f Install gslangValidator in CI 2026-07-03 13:44:28 +05:30
Kovid Goyal
088f51787b ... 2026-07-03 13:44:28 +05:30
Kovid Goyal
fefe8b8c97 Only validate newly built files 2026-07-03 13:44:28 +05:30
Kovid Goyal
8075ce6ed7 Automatically validate GLSL shaders after build 2026-07-03 13:44:28 +05:30
Kovid Goyal
e65880e15f Port rounded_rect shader 2026-07-03 13:44:28 +05:30
Kovid Goyal
95458880e6 Use gather for texture sampling 2026-07-03 13:44:28 +05:30
Kovid Goyal
7d313f9f7d Port the screenshot shader 2026-07-03 13:44:28 +05:30
Kovid Goyal
53161e03e2 Port the blit shader 2026-07-03 13:44:28 +05:30
Kovid Goyal
4e580da6d9 Rename blit common shader module 2026-07-03 13:44:28 +05:30
Kovid Goyal
2305ac3c27 Port the trail shader 2026-07-03 13:44:27 +05:30
Kovid Goyal
d4dae6b0b8 Also extract sampler uniforms 2026-07-03 13:44:27 +05:30
Kovid Goyal
9c80a3934d Port the tint shader 2026-07-03 13:44:27 +05:30
Kovid Goyal
f3be99ae3d Remove unused code 2026-07-03 13:44:27 +05:30
Kovid Goyal
27b84dbb47 Use same version of slang as bundled version in CI 2026-07-03 13:44:27 +05:30
Kovid Goyal
345cbfc209 Output uniform variable names mapping for GLSL shaders 2026-07-03 13:44:27 +05:30
Kovid Goyal
e1cdec0abe Port the bgimage shader 2026-07-03 13:44:27 +05:30
Kovid Goyal
57852e8525 Get slangc working in macOS frozen build 2026-07-03 13:44:27 +05:30
Kovid Goyal
3bb0f432d2 Only copy needed slang dlls 2026-07-03 13:44:27 +05:30
Kovid Goyal
847175c12f Get freezing of slang on linux working 2026-07-03 13:44:27 +05:30
Kovid Goyal
c0b5604605 Ensure slangc is found when freezing 2026-07-03 13:44:27 +05:30
Kovid Goyal
5e57838a92 Nicer error message when slangc not found 2026-07-03 13:44:27 +05:30
Kovid Goyal
4b5e3c06fb Move glfw build code into setup.py
This was on my TODO list for a long time and doing this allows the
setup.py module code to be re-used in slang.py
2026-07-03 13:44:27 +05:30
Kovid Goyal
5e6c810587 Fix building of shaders under ASAN
We cant import fast_data_types.so into the system python in that case,
so build shaders by running the compiler under the kitty launcher.
2026-07-03 13:44:27 +05:30
Kovid Goyal
893ccbd4f6 Cleanup build output 2026-07-03 13:44:27 +05:30
Kovid Goyal
96ff9d4380 ... 2026-07-03 13:44:26 +05:30
Kovid Goyal
cd43acfc28 Ensure shaders are built after fast_data_types.so 2026-07-03 13:44:26 +05:30
Kovid Goyal
a168ec2712 Move specialisations into compiler code
Allows for dynamic specialisations
2026-07-03 13:44:26 +05:30
Kovid Goyal
8c07c7c25e Fix failing tests 2026-07-03 13:44:26 +05:30
Kovid Goyal
f73338a0df Implement specialisation for slang shaders 2026-07-03 13:44:26 +05:30
Kovid Goyal
d5aa62afc7 ... 2026-07-03 13:44:26 +05:30
Kovid Goyal
30adbb28d9 More work on slangc compilation 2026-07-03 13:44:26 +05:30
Kovid Goyal
22f26260d6 More work on slang compiler 2026-07-03 13:44:26 +05:30
Kovid Goyal
d2fe7d56da Note that shader-slang is now a dependency 2026-07-03 13:44:26 +05:30
Kovid Goyal
219566d2ed Have dev.sh set SLANGC as well 2026-07-03 13:44:26 +05:30
Kovid Goyal
67127a67f2 Ensure slangc is available in CI 2026-07-03 13:44:26 +05:30
Kovid Goyal
6e53ada457 More work on slang compilation 2026-07-03 13:44:26 +05:30
Kovid Goyal
c55deba34c More work on integrating slangc into the build pipeline 2026-07-03 13:44:26 +05:30
Kovid Goyal
67c0481f93 Setup location for compiled shaders 2026-07-03 13:44:26 +05:30
Kovid Goyal
642bc3ef21 Function to build slang code to IR 2026-07-03 13:44:25 +05:30
copilot-swe-agent[bot]
431098833b Fix parser to strip semicolons from module/import names; update tests 2026-07-03 13:44:25 +05:30