Commit graph

18577 commits

Author SHA1 Message Date
Kovid Goyal
d5b1cbf7b5
... 2026-07-04 14:09:03 +05:30
Kovid Goyal
03abecd55b
Directly output input attr locations 2026-07-04 14:09:03 +05:30
Kovid Goyal
f536b9fb5a
Fix VAO names for cell shader 2026-07-04 14:09:03 +05:30
Kovid Goyal
8ae4fe805f
Also output input attr name mapping for generated glsl 2026-07-04 14:09:03 +05:30
Kovid Goyal
b2537e322b
Port the border shader 2026-07-04 14:09:02 +05:30
Kovid Goyal
3fd572a5e9
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-04 14:09:02 +05:30
Kovid Goyal
6a902cb4b3
Function to specialize cell shader at runtime based on options 2026-07-04 14:09:02 +05:30
Kovid Goyal
e0e16f427c
Dump slang file metadata when building 2026-07-04 14:09:02 +05:30
Kovid Goyal
c7c5c792a3
Port the cell fragment shader 2026-07-04 14:09:02 +05:30
Kovid Goyal
e6202d87c3
Remove glsl file is fixing it fails 2026-07-04 14:09:02 +05:30
Kovid Goyal
0e8938429f
Lower glsl version to 140 to match existing shaders 2026-07-04 14:09:02 +05:30
Kovid Goyal
59472fa1d9
Preserve layout location attribs for VAOs 2026-07-04 14:09:02 +05:30
Kovid Goyal
0c2c049cf8
Finish porting cell vertex shader 2026-07-04 14:09:02 +05:30
Kovid Goyal
35d5fd260d
More work on cell shader porting 2026-07-04 14:09:02 +05:30
Kovid Goyal
4c98cae59e
More cell shader porting work 2026-07-04 14:09:02 +05:30
Kovid Goyal
20460e3adf
More porting work on cell shader 2026-07-04 14:09:02 +05:30
Kovid Goyal
2e7e8db5c7
Port the HSL UV shader 2026-07-04 14:09:02 +05:30
Kovid Goyal
e029e4fb13
More work on porting cell shader 2026-07-04 14:09:02 +05:30
Kovid Goyal
37307d85e6
Start work on porting cell shader 2026-07-04 14:09:01 +05:30
Kovid Goyal
3243086840
Rebuild shaders if slangc version does not match 2026-07-04 14:09:01 +05:30
Kovid Goyal
9c12a70704
Bump slang version, allows removing one glsl workaround 2026-07-04 14:09:01 +05:30
Kovid Goyal
178c3cb8b2
Rebuild when build script is newer than cached IR 2026-07-04 14:09:01 +05:30
Kovid Goyal
17a7e6d6d9
Handle fixup of flat location specifiers 2026-07-04 14:09:01 +05:30
Kovid Goyal
cd93c944e2
Make mypy happy 2026-07-04 14:09:01 +05:30
Kovid Goyal
b052d62a97
Handle uniform structs 2026-07-04 14:09:01 +05:30
Kovid Goyal
6e185fb953
Nicer validation integration 2026-07-04 14:09:01 +05:30
Kovid Goyal
b656fc4ec5
Handle array uniforms when fixing GLSL 2026-07-04 14:09:01 +05:30
Kovid Goyal
ddc012394e
Do not generate empty default specialization files 2026-07-04 14:09:01 +05:30
Kovid Goyal
5b6279c885
Reduce the number of specialisation vars for the cell shader
Use macros for the from C constants
2026-07-04 14:09:01 +05:30
Kovid Goyal
9fa3b096ca
Infrastructure for porting cell shader 2026-07-04 14:09:01 +05:30
Kovid Goyal
437bf7bba7
Install gslangValidator in CI 2026-07-04 14:09:01 +05:30
Kovid Goyal
a4fd91e00f
... 2026-07-04 14:09:01 +05:30
Kovid Goyal
dd311a80a0
Only validate newly built files 2026-07-04 14:09:01 +05:30
Kovid Goyal
c94e47febb
Automatically validate GLSL shaders after build 2026-07-04 14:09:00 +05:30
Kovid Goyal
b6c9a05b4f
Port rounded_rect shader 2026-07-04 14:09:00 +05:30
Kovid Goyal
d294c023c7
Use gather for texture sampling 2026-07-04 14:09:00 +05:30
Kovid Goyal
a37bf14a0c
Port the screenshot shader 2026-07-04 14:09:00 +05:30
Kovid Goyal
2f12d47e0e
Port the blit shader 2026-07-04 14:09:00 +05:30
Kovid Goyal
5902de98d9
Rename blit common shader module 2026-07-04 14:09:00 +05:30
Kovid Goyal
d369637d3a
Port the trail shader 2026-07-04 14:09:00 +05:30
Kovid Goyal
49d9ea0cae
Also extract sampler uniforms 2026-07-04 14:09:00 +05:30
Kovid Goyal
cde2974a3d
Port the tint shader 2026-07-04 14:09:00 +05:30
Kovid Goyal
057e95130d
Remove unused code 2026-07-04 14:09:00 +05:30
Kovid Goyal
c4f216146b
Use same version of slang as bundled version in CI 2026-07-04 14:09:00 +05:30
Kovid Goyal
6d53ede966
Output uniform variable names mapping for GLSL shaders 2026-07-04 14:09:00 +05:30
Kovid Goyal
5bd3e311f1
Port the bgimage shader 2026-07-04 14:09:00 +05:30
Kovid Goyal
a047407c17
Get slangc working in macOS frozen build 2026-07-04 14:09:00 +05:30
Kovid Goyal
800054f664
Only copy needed slang dlls 2026-07-04 14:08:59 +05:30
Kovid Goyal
268234c6e1
Get freezing of slang on linux working 2026-07-04 14:08:59 +05:30
Kovid Goyal
47f747695e
Ensure slangc is found when freezing 2026-07-04 14:08:59 +05:30