Commit graph

18782 commits

Author SHA1 Message Date
Kovid Goyal
ad7043bc20
More work on custom shaders 2026-08-05 05:32:57 +05:30
Kovid Goyal
bfac604d6d
Improve handling of import dirs for custom shaders 2026-08-05 05:32:57 +05:30
Kovid Goyal
3d16c300e4
Add option for custom shaders 2026-08-05 05:32:57 +05:30
Kovid Goyal
16297903f6
test for compiling custom shader to glsl 2026-08-05 05:32:57 +05:30
Kovid Goyal
2c6a380392
... 2026-08-05 05:32:57 +05:30
Kovid Goyal
425cee3a9a
More work on custom shaders 2026-08-05 05:32:57 +05:30
Kovid Goyal
e4a067405a
Now padding.slang doesnt need the defines 2026-08-05 05:32:57 +05:30
Kovid Goyal
4b15314267
compile builtin shaders in dependency layers 2026-08-05 05:32:56 +05:30
Kovid Goyal
f569f9a868
Fix compilation of padding shader failing on first try 2026-08-05 05:32:56 +05:30
Kovid Goyal
e862e5febd
Honor verbose flag when building shaders 2026-08-05 05:32:56 +05:30
Kovid Goyal
157b4d8161
Dont emit empty specialisation commands 2026-08-05 05:32:56 +05:30
Kovid Goyal
384f7ff5aa
Make function more easily testable 2026-08-05 05:32:56 +05:30
Kovid Goyal
cebab9c739
add custom shader dir to includes 2026-08-05 05:32:56 +05:30
Kovid Goyal
966f389cbb
Wire up the backbuffer sampler 2026-08-05 05:32:56 +05:30
Kovid Goyal
5bfe8b5746
More work on custom shaders 2026-08-05 05:32:56 +05:30
Kovid Goyal
caa5be702a
Use only 2 drawcalls for filling compensatory padding 2026-08-05 05:32:56 +05:30
Kovid Goyal
7f0b072f0d
autoformat 2026-08-05 05:32:56 +05:30
Kovid Goyal
d9bf2228d7
Start work on customs shaders 2026-08-05 05:32:56 +05:30
Kovid Goyal
b97beabb4c
Remove unused code 2026-08-05 05:32:56 +05:30
Kovid Goyal
104acf7d65
add tests for lock_with_file 2026-08-05 05:32:56 +05:30
Kovid Goyal
06b6974f59
Utility function for locked file contextmanager 2026-08-05 05:32:56 +05:30
Kovid Goyal
71e8d7496e
... 2026-08-05 05:32:55 +05:30
Kovid Goyal
100c78bbb3
A new option to color compensatory padding with neighboring cell colors 2026-08-05 05:32:55 +05:30
Kovid Goyal
5c4f6b39bd
Remove the clear progress timer on window destruction
Prevents callback to destroyed window object
2026-08-05 05:32:55 +05:30
Kovid Goyal
28fdf0b20e
Refactor the cell shader moving the background and geometry computation into a module
This makes the code re-useable in another shader such as one to color
the padding based on cell backgrounds.
2026-08-05 05:32:55 +05:30
Kovid Goyal
28b534a821
... 2026-08-05 05:32:55 +05:30
Kovid Goyal
3f16b01e80
Also handle leading ~ 2026-08-05 05:32:55 +05:30
Kovid Goyal
f156c3c152
Handle relative paths for the screenshot rc command correctly 2026-08-05 05:32:55 +05:30
Kovid Goyal
e37965f418
... 2026-08-05 05:32:55 +05:30
Kovid Goyal
9bc6df9994
... 2026-08-05 05:32:55 +05:30
Kovid Goyal
3799ad76b4
pep8 2026-08-05 05:32:55 +05:30
Kovid Goyal
766466ad57
Add a screenshot remote control command 2026-08-05 05:32:55 +05:30
Kovid Goyal
ec064b09bb
fix regression in slang migration that caused second OS Window to not render because shared gamma_lut UBO was only bound to first OS Window context 2026-08-05 05:32:55 +05:30
Kovid Goyal
fbd5b212be
Free global VAO on terminate 2026-08-05 05:32:55 +05:30
Kovid Goyal
2c527c7f39
gl.h functions should only be used in shaders.c 2026-08-05 05:32:55 +05:30
Kovid Goyal
31629cd104
Load GLSL binding information at runtime rather than writing it to a generated C header 2026-08-05 05:32:55 +05:30
Kovid Goyal
358bf982f9
fix graphics rendering because of inverted specialisation 2026-08-05 05:32:54 +05:30
Kovid Goyal
e582eed2ec
Decrease the number of cell variants 2026-08-05 05:32:54 +05:30
Kovid Goyal
73bcf0670e
... 2026-08-05 05:32:54 +05:30
Kovid Goyal
5802d35198
Switch over to the slang based shaders 2026-08-05 05:32:54 +05:30
Kovid Goyal
c680adcde5
Port load shader programs to slang 2026-08-05 05:32:54 +05:30
Kovid Goyal
f5aa48647d
Cleanup shader load/recompile legacy code
Make it easier to port
2026-08-05 05:32:54 +05:30
Kovid Goyal
9469d268fd
Generate glsl uniforms header from slang code 2026-08-05 05:32:54 +05:30
Kovid Goyal
a7c226d957
Also parse uniform struct names 2026-08-05 05:32:54 +05:30
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