Commit graph

18690 commits

Author SHA1 Message Date
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
Kovid Goyal
b3781f4fa1
Use the slangc binary instead trying to get the C++ extension working everywhere is too fragile 2026-08-05 05:32:48 +05:30
Kovid Goyal
c38b43b496
Add build test for loading slangc 2026-08-05 05:32:48 +05:30
Kovid Goyal
3a5b92af61
Get slangc building with clang 2026-08-05 05:32:48 +05:30
Kovid Goyal
ede9a990b0
... 2026-08-05 05:32:48 +05:30
Kovid Goyal
53522d564c
More work on slangc 2026-08-05 05:32:48 +05:30
Kovid Goyal
7f2d577a94
... 2026-08-05 05:32:48 +05:30
Kovid Goyal
a8d244acaa
Move glsl loading code to legacy 2026-08-05 05:32:48 +05:30
Kovid Goyal
9c82a5f7ef
Move shader pythons code into shaders package 2026-08-05 05:32:48 +05:30
Kovid Goyal
9afa480de5
Move shaders into kitty package 2026-08-05 05:32:48 +05:30
Kovid Goyal
0131876e86
Rationalize build/test/package cycle 2026-08-05 05:32:48 +05:30
Kovid Goyal
2f81f960d1
Remove unneeded build step 2026-08-05 05:32:48 +05:30
Kovid Goyal
ca9945e547
Work on slang module compilation 2026-08-05 05:32:48 +05:30
Kovid Goyal
9f5339c6df
Stub slang module 2026-08-05 05:32:48 +05:30