copilot-swe-agent[bot]
b273349447
fix: remove incorrect alpha_blend in bgimage.slang that shadowed correct module function
2026-07-03 09:16:07 +00:00
copilot-swe-agent[bot]
ebb9b4c1c4
fix: remove incorrect alpha_blend in bgimage.slang
2026-07-03 09:14:58 +00:00
Kovid Goyal
4bb534f72c
Function to dump processed legacy GLSL shaders
...
Makes it easier to compare legacy with new shaders
2026-07-03 14:16:20 +05:30
Kovid Goyal
8364a7c096
Move a couple of loose uniforms into the block
2026-07-03 13:57:13 +05:30
Kovid Goyal
5fc2cf4230
Backport using uniform for text_fg_override_threshold from slang to legacy glsl
2026-07-03 13:44:30 +05:30
Kovid Goyal
47a238e4b3
Backport fg override algo change from slang to legacy glsl shaders
2026-07-03 13:44:30 +05:30
Kovid Goyal
a0034e362d
...
2026-07-03 13:44:30 +05:30
Kovid Goyal
77d3bab632
Directly output input attr locations
2026-07-03 13:44:30 +05:30
Kovid Goyal
da7327975c
Fix VAO names for cell shader
2026-07-03 13:44:30 +05:30
Kovid Goyal
23e82763bb
Also output input attr name mapping for generated glsl
2026-07-03 13:44:30 +05:30
Kovid Goyal
eca806863b
Port the border shader
2026-07-03 13:44:30 +05:30
Kovid Goyal
f1c411cb61
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 13:44:30 +05:30
Kovid Goyal
d73df051f2
Function to specialize cell shader at runtime based on options
2026-07-03 13:44:30 +05:30
Kovid Goyal
c853935a15
Dump slang file metadata when building
2026-07-03 13:44:30 +05:30
Kovid Goyal
3b1747148d
Port the cell fragment shader
2026-07-03 13:44:30 +05:30
Kovid Goyal
23ae27901b
Remove glsl file is fixing it fails
2026-07-03 13:44:29 +05:30
Kovid Goyal
98082a1b37
Lower glsl version to 140 to match existing shaders
2026-07-03 13:44:29 +05:30
Kovid Goyal
41fb964d34
Preserve layout location attribs for VAOs
2026-07-03 13:44:29 +05:30
Kovid Goyal
860f773774
Finish porting cell vertex shader
2026-07-03 13:44:29 +05:30
Kovid Goyal
d0691f4f70
More work on cell shader porting
2026-07-03 13:44:29 +05:30
Kovid Goyal
08d7db03c4
More cell shader porting work
2026-07-03 13:44:29 +05:30
Kovid Goyal
4b3d9d7578
More porting work on cell shader
2026-07-03 13:44:29 +05:30
Kovid Goyal
67429d8034
Port the HSL UV shader
2026-07-03 13:44:29 +05:30
Kovid Goyal
c1a36a844f
More work on porting cell shader
2026-07-03 13:44:29 +05:30
Kovid Goyal
199fd86c43
Start work on porting cell shader
2026-07-03 13:44:29 +05:30
Kovid Goyal
54c0a58672
Rebuild shaders if slangc version does not match
2026-07-03 13:44:29 +05:30
Kovid Goyal
a8fa0ff13f
Bump slang version, allows removing one glsl workaround
2026-07-03 13:44:29 +05:30
Kovid Goyal
00fc69ecb6
Rebuild when build script is newer than cached IR
2026-07-03 13:44:29 +05:30
Kovid Goyal
4910737490
Handle fixup of flat location specifiers
2026-07-03 13:44:29 +05:30
Kovid Goyal
32a0875ec3
Make mypy happy
2026-07-03 13:44:29 +05:30
Kovid Goyal
e1627f3737
Handle uniform structs
2026-07-03 13:44:28 +05:30
Kovid Goyal
70b909eb25
Nicer validation integration
2026-07-03 13:44:28 +05:30
Kovid Goyal
8e3409fedf
Handle array uniforms when fixing GLSL
2026-07-03 13:44:28 +05:30
Kovid Goyal
053cf017f3
Do not generate empty default specialization files
2026-07-03 13:44:28 +05:30
Kovid Goyal
25268ac48a
Reduce the number of specialisation vars for the cell shader
...
Use macros for the from C constants
2026-07-03 13:44:28 +05:30
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