Kovid Goyal
9664f35596
Generate all cell shader variations at build time
...
Trying to generate them at runtime is fragile if using slang IR as the
IR is highly version dependent. If going from source it means it is even
slower and would require some sophisticated caching scheme.
2026-07-03 08:28:04 +05:30
Kovid Goyal
3982dc04d6
Function to specialize cell shader at runtime based on options
2026-07-02 17:24:48 +05:30
Kovid Goyal
a98f7448da
Dump slang file metadata when building
2026-07-02 15:34:14 +05:30
Kovid Goyal
1252974765
Port the cell fragment shader
2026-07-02 14:47:36 +05:30
Kovid Goyal
f322d6d9c4
Remove glsl file is fixing it fails
2026-07-02 14:35:54 +05:30
Kovid Goyal
0d5a7511b1
Lower glsl version to 140 to match existing shaders
2026-07-02 13:47:37 +05:30
Kovid Goyal
fe84bc9225
Preserve layout location attribs for VAOs
2026-07-02 13:34:35 +05:30
Kovid Goyal
d114cb1554
Finish porting cell vertex shader
2026-07-02 12:57:38 +05:30
Kovid Goyal
5e525dba6b
More work on cell shader porting
2026-07-02 12:55:03 +05:30
Kovid Goyal
9ad95fcb1f
More cell shader porting work
2026-07-02 12:09:40 +05:30
Kovid Goyal
4f9dc41e06
More porting work on cell shader
2026-07-02 11:38:14 +05:30
Kovid Goyal
ee17d47e76
Port the HSL UV shader
2026-07-02 10:40:15 +05:30
Kovid Goyal
9d3d3a7d85
More work on porting cell shader
2026-07-02 10:12:57 +05:30
Kovid Goyal
db7261440d
Start work on porting cell shader
2026-07-01 23:29:55 +05:30
Kovid Goyal
bd81b461f1
Rebuild shaders if slangc version does not match
2026-07-01 23:12:52 +05:30
Kovid Goyal
74701a701a
Bump slang version, allows removing one glsl workaround
2026-07-01 22:59:59 +05:30
Kovid Goyal
81a6fc3832
Rebuild when build script is newer than cached IR
2026-07-01 16:01:26 +05:30
Kovid Goyal
16e4459fae
Handle fixup of flat location specifiers
2026-07-01 15:56:54 +05:30
Kovid Goyal
28bd195499
Make mypy happy
2026-07-01 15:52:11 +05:30
Kovid Goyal
85d9de7aca
Handle uniform structs
2026-07-01 15:38:02 +05:30
Kovid Goyal
024296f36e
Nicer validation integration
2026-07-01 15:10:14 +05:30
Kovid Goyal
18d1614924
Handle array uniforms when fixing GLSL
2026-07-01 15:04:55 +05:30
Kovid Goyal
d2cc286412
Do not generate empty default specialization files
2026-07-01 14:54:49 +05:30
Kovid Goyal
8e597c1de0
Reduce the number of specialisation vars for the cell shader
...
Use macros for the from C constants
2026-07-01 14:13:35 +05:30
Kovid Goyal
e0b208cc39
Infrastructure for porting cell shader
2026-07-01 13:52:58 +05:30
Kovid Goyal
ff6a9faf2c
Install gslangValidator in CI
2026-07-01 10:45:59 +05:30
Kovid Goyal
8a1c322e09
...
2026-07-01 10:43:50 +05:30
Kovid Goyal
75aa909fbe
Only validate newly built files
2026-07-01 10:32:43 +05:30
Kovid Goyal
4f144a2147
Automatically validate GLSL shaders after build
2026-07-01 10:23:27 +05:30
Kovid Goyal
c2924944f0
Port rounded_rect shader
2026-07-01 10:03:12 +05:30
Kovid Goyal
149915c15c
Use gather for texture sampling
2026-07-01 08:56:29 +05:30
Kovid Goyal
5dc9b3a5ff
Port the screenshot shader
2026-07-01 08:15:17 +05:30
Kovid Goyal
c268e3a2e2
Port the blit shader
2026-07-01 08:02:59 +05:30
Kovid Goyal
740d2275dc
Rename blit common shader module
2026-07-01 07:49:59 +05:30
Kovid Goyal
5e71d46a38
Port the trail shader
2026-07-01 07:45:44 +05:30
Kovid Goyal
9bb2c168ac
Also extract sampler uniforms
2026-07-01 07:26:14 +05:30
Kovid Goyal
296c9abdc3
Port the tint shader
2026-06-30 23:13:30 +05:30
Kovid Goyal
749b3c48b6
Remove unused code
2026-06-30 23:04:22 +05:30
Kovid Goyal
81f467626c
Use same version of slang as bundled version in CI
2026-06-30 23:01:43 +05:30
Kovid Goyal
837e33395e
Output uniform variable names mapping for GLSL shaders
2026-06-30 22:33:29 +05:30
Kovid Goyal
cbebf86fb7
Port the bgimage shader
2026-06-30 22:25:01 +05:30
Kovid Goyal
f0402437ac
Get slangc working in macOS frozen build
2026-06-30 13:05:08 +05:30
Kovid Goyal
54c22e6c6c
Only copy needed slang dlls
2026-06-30 12:11:18 +05:30
Kovid Goyal
c16b78a6f4
Get freezing of slang on linux working
2026-06-30 11:41:30 +05:30
Kovid Goyal
1fa3f450b5
Ensure slangc is found when freezing
2026-06-30 09:43:39 +05:30
Kovid Goyal
64c6af3ad3
Nicer error message when slangc not found
2026-06-30 09:34:05 +05:30
Kovid Goyal
af61fd1b10
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-06-30 09:27:27 +05:30
Kovid Goyal
cfbae29da9
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-06-30 09:04:13 +05:30
Kovid Goyal
6f0fac372a
Cleanup build output
2026-06-30 08:48:55 +05:30
Kovid Goyal
236b9a8978
...
2026-06-30 08:43:08 +05:30