Commit Graph

18531 Commits

Author SHA1 Message Date
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
copilot-swe-agent[bot]
619f6bdb12 Add slang parser corner case tests and implement test_slang_ordering 2026-07-03 13:44:25 +05:30
Kovid Goyal
45401ee2a4 Work on generating build tree for slang files 2026-07-03 13:44:25 +05:30
Kovid Goyal
050488c06a Use the slangc binary instead trying to get the C++ extension working everywhere is too fragile 2026-07-03 13:44:25 +05:30
Kovid Goyal
bf75196de6 Add build test for loading slangc 2026-07-03 13:44:25 +05:30
Kovid Goyal
d50b1c80e6 Get slangc building with clang 2026-07-03 13:44:25 +05:30
Kovid Goyal
368b988564 ... 2026-07-03 13:44:25 +05:30
Kovid Goyal
ad194e5d6a More work on slangc 2026-07-03 13:44:25 +05:30
Kovid Goyal
641a3d3d49 ... 2026-07-03 13:44:25 +05:30
Kovid Goyal
617c02420c Move glsl loading code to legacy 2026-07-03 13:44:25 +05:30