Commit graph

19203 commits

Author SHA1 Message Date
Kovid Goyal
63afa97289
Handle fixup of flat location specifiers 2026-08-05 05:32:52 +05:30
Kovid Goyal
8fa725e310
Make mypy happy 2026-08-05 05:32:52 +05:30
Kovid Goyal
4db9c31185
Handle uniform structs 2026-08-05 05:32:52 +05:30
Kovid Goyal
1f612bf26f
Nicer validation integration 2026-08-05 05:32:51 +05:30
Kovid Goyal
574e2c1fe0
Handle array uniforms when fixing GLSL 2026-08-05 05:32:51 +05:30
Kovid Goyal
418f2baaa1
Do not generate empty default specialization files 2026-08-05 05:32:51 +05:30
Kovid Goyal
17e1ada92d
Reduce the number of specialisation vars for the cell shader
Use macros for the from C constants
2026-08-05 05:32:51 +05:30
Kovid Goyal
59a78f9bf7
Infrastructure for porting cell shader 2026-08-05 05:32:51 +05:30
Kovid Goyal
ced733bad9
Install gslangValidator in CI 2026-08-05 05:32:51 +05:30
Kovid Goyal
c49d93c132
... 2026-08-05 05:32:51 +05:30
Kovid Goyal
dc7f9edb71
Only validate newly built files 2026-08-05 05:32:51 +05:30
Kovid Goyal
80eacece25
Automatically validate GLSL shaders after build 2026-08-05 05:32:51 +05:30
Kovid Goyal
ce6aa750a9
Port rounded_rect shader 2026-08-05 05:32:51 +05:30
Kovid Goyal
61baa0f9c4
Use gather for texture sampling 2026-08-05 05:32:51 +05:30
Kovid Goyal
25df127493
Port the screenshot shader 2026-08-05 05:32:51 +05:30
Kovid Goyal
59700e93a9
Port the blit shader 2026-08-05 05:32:51 +05:30
Kovid Goyal
56b06e0698
Rename blit common shader module 2026-08-05 05:32:51 +05:30
Kovid Goyal
d7900c664b
Port the trail shader 2026-08-05 05:32:51 +05:30
Kovid Goyal
1590bcf236
Also extract sampler uniforms 2026-08-05 05:32:51 +05:30
Kovid Goyal
d6ecf3766d
Port the tint shader 2026-08-05 05:32:50 +05:30
Kovid Goyal
e5a74decbc
Remove unused code 2026-08-05 05:32:50 +05:30
Kovid Goyal
3600152f9c
Use same version of slang as bundled version in CI 2026-08-05 05:32:50 +05:30
Kovid Goyal
98ca6c2659
Output uniform variable names mapping for GLSL shaders 2026-08-05 05:32:50 +05:30
Kovid Goyal
ef40d26771
Port the bgimage shader 2026-08-05 05:32:50 +05:30
Kovid Goyal
1612a23307
Get slangc working in macOS frozen build 2026-08-05 05:32:50 +05:30
Kovid Goyal
356aef38fc
Only copy needed slang dlls 2026-08-05 05:32:50 +05:30
Kovid Goyal
7cde77ef2c
Get freezing of slang on linux working 2026-08-05 05:32:50 +05:30
Kovid Goyal
1b61d6a671
Ensure slangc is found when freezing 2026-08-05 05:32:50 +05:30
Kovid Goyal
95bf5fe28a
Nicer error message when slangc not found 2026-08-05 05:32:50 +05:30
Kovid Goyal
676b838c0d
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-08-05 05:32:50 +05:30
Kovid Goyal
5f082b1cee
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-08-05 05:32:50 +05:30
Kovid Goyal
b70c4a1a3a
Cleanup build output 2026-08-05 05:32:50 +05:30
Kovid Goyal
0050175323
... 2026-08-05 05:32:50 +05:30
Kovid Goyal
6008d09d25
Ensure shaders are built after fast_data_types.so 2026-08-05 05:32:50 +05:30
Kovid Goyal
879697e4c5
Move specialisations into compiler code
Allows for dynamic specialisations
2026-08-05 05:32:49 +05:30
Kovid Goyal
9261295448
Fix failing tests 2026-08-05 05:32:49 +05:30
Kovid Goyal
7a01e7e125
Implement specialisation for slang shaders 2026-08-05 05:32:49 +05:30
Kovid Goyal
a9f56a3a84
... 2026-08-05 05:32:49 +05:30
Kovid Goyal
477b7ae7b4
More work on slangc compilation 2026-08-05 05:32:49 +05:30
Kovid Goyal
c15383b3e6
More work on slang compiler 2026-08-05 05:32:49 +05:30
Kovid Goyal
70031b709a
Note that shader-slang is now a dependency 2026-08-05 05:32:49 +05:30
Kovid Goyal
e310f6acf1
Have dev.sh set SLANGC as well 2026-08-05 05:32:49 +05:30
Kovid Goyal
ecea08fd7a
Ensure slangc is available in CI 2026-08-05 05:32:49 +05:30
Kovid Goyal
c171ab8111
More work on slang compilation 2026-08-05 05:32:49 +05:30
Kovid Goyal
c8f74f7a56
More work on integrating slangc into the build pipeline 2026-08-05 05:32:49 +05:30
Kovid Goyal
0eb2d26a46
Setup location for compiled shaders 2026-08-05 05:32:49 +05:30
Kovid Goyal
57bf177468
Function to build slang code to IR 2026-08-05 05:32:49 +05:30
copilot-swe-agent[bot]
a36b259d45
Fix parser to strip semicolons from module/import names; update tests 2026-08-05 05:32:49 +05:30
copilot-swe-agent[bot]
d8041066bf
Add slang parser corner case tests and implement test_slang_ordering 2026-08-05 05:32:49 +05:30
Kovid Goyal
dbfa720387
Work on generating build tree for slang files 2026-08-05 05:32:49 +05:30