Commit graph

18738 commits

Author SHA1 Message Date
Kovid Goyal
da87a97c72
Remove array syntax from uniform block member variable names 2026-08-05 05:32:54 +05:30
Kovid Goyal
dbe59e0667
... 2026-08-05 05:32:54 +05:30
Kovid Goyal
c4f1d1b9be
Delay load slangc 2026-08-05 05:32:54 +05:30
copilot-swe-agent[bot]
a31f9e52f2
Refactor kitty_tests: move __init__.py code to base.py, update all imports 2026-08-05 05:32:54 +05:30
Kovid Goyal
2a71ecdc89
Ensure slangc is correct in test env 2026-08-05 05:32:54 +05:30
Kovid Goyal
1628a0dd14
Fix struct naming in ported cell shader 2026-08-05 05:32:54 +05:30
Kovid Goyal
7aeaf18fd3
Keep generated IR in build dir rather than dest dir
We dont do runtime specialisation anymore so no need
for the IR to be distributed.
2026-08-05 05:32:54 +05:30
Kovid Goyal
52511e4cfa
Fix shadowed function 2026-08-05 05:32:53 +05:30
Kovid Goyal
9e2f49f1bb
Fix default cell variant generation 2026-08-05 05:32:53 +05:30
Kovid Goyal
113fc313b5
Function to dump processed legacy GLSL shaders
Makes it easier to compare legacy with new shaders
2026-08-05 05:32:53 +05:30
Kovid Goyal
5dfe414bbb
Move a couple of loose uniforms into the block 2026-08-05 05:32:53 +05:30
Kovid Goyal
a47cc05d4d
Backport using uniform for text_fg_override_threshold from slang to legacy glsl 2026-08-05 05:32:53 +05:30
Kovid Goyal
020611424a
Backport fg override algo change from slang to legacy glsl shaders 2026-08-05 05:32:53 +05:30
Kovid Goyal
d8841799ac
... 2026-08-05 05:32:53 +05:30
Kovid Goyal
c0115c80b2
Directly output input attr locations 2026-08-05 05:32:53 +05:30
Kovid Goyal
b569dc3d53
Fix VAO names for cell shader 2026-08-05 05:32:53 +05:30
Kovid Goyal
0f7211f07a
Also output input attr name mapping for generated glsl 2026-08-05 05:32:53 +05:30
Kovid Goyal
b0bb8822a5
Port the border shader 2026-08-05 05:32:53 +05:30
Kovid Goyal
cb673d3817
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-08-05 05:32:53 +05:30
Kovid Goyal
9ebf3e59e2
Function to specialize cell shader at runtime based on options 2026-08-05 05:32:53 +05:30
Kovid Goyal
fde8c23a6a
Dump slang file metadata when building 2026-08-05 05:32:53 +05:30
Kovid Goyal
5271092dfb
Port the cell fragment shader 2026-08-05 05:32:53 +05:30
Kovid Goyal
9a247cf108
Remove glsl file is fixing it fails 2026-08-05 05:32:53 +05:30
Kovid Goyal
91decafd9a
Lower glsl version to 140 to match existing shaders 2026-08-05 05:32:52 +05:30
Kovid Goyal
a2db126f46
Preserve layout location attribs for VAOs 2026-08-05 05:32:52 +05:30
Kovid Goyal
68031c76d9
Finish porting cell vertex shader 2026-08-05 05:32:52 +05:30
Kovid Goyal
29501544f0
More work on cell shader porting 2026-08-05 05:32:52 +05:30
Kovid Goyal
8315865d61
More cell shader porting work 2026-08-05 05:32:52 +05:30
Kovid Goyal
d775b26886
More porting work on cell shader 2026-08-05 05:32:52 +05:30
Kovid Goyal
b5dbfdc9b6
Port the HSL UV shader 2026-08-05 05:32:52 +05:30
Kovid Goyal
6bf8e4f830
More work on porting cell shader 2026-08-05 05:32:52 +05:30
Kovid Goyal
966ad7f1c7
Start work on porting cell shader 2026-08-05 05:32:52 +05:30
Kovid Goyal
684b160556
Rebuild shaders if slangc version does not match 2026-08-05 05:32:52 +05:30
Kovid Goyal
3ea6a3b7a8
Bump slang version, allows removing one glsl workaround 2026-08-05 05:32:52 +05:30
Kovid Goyal
0e2b9a0b48
Rebuild when build script is newer than cached IR 2026-08-05 05:32:52 +05:30
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