Commit Graph

18516 Commits

Author SHA1 Message Date
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
Kovid Goyal
db16c1b771 Ensure shaders are built after fast_data_types.so 2026-06-30 08:34:44 +05:30
Kovid Goyal
a12883abf3 Move specialisations into compiler code
Allows for dynamic specialisations
2026-06-30 08:11:18 +05:30
Kovid Goyal
bbec9d5bbd Fix failing tests 2026-06-29 23:24:40 +05:30
Kovid Goyal
5bc8cfaaf5 Implement specialisation for slang shaders 2026-06-29 23:11:53 +05:30
Kovid Goyal
c49dcf9fca ... 2026-06-29 08:37:16 +05:30
Kovid Goyal
3f89d0a94b More work on slangc compilation 2026-06-29 08:30:25 +05:30
Kovid Goyal
71fd4d3c57 More work on slang compiler 2026-06-28 13:06:22 +05:30
Kovid Goyal
3968a86693 Note that shader-slang is now a dependency 2026-06-28 09:08:37 +05:30
Kovid Goyal
8d20d25288 Have dev.sh set SLANGC as well 2026-06-28 09:03:50 +05:30
Kovid Goyal
e008088b9f Ensure slangc is available in CI 2026-06-28 08:59:49 +05:30
Kovid Goyal
1326ac914f More work on slang compilation 2026-06-28 08:54:37 +05:30
Kovid Goyal
980de0c3f6 More work on integrating slangc into the build pipeline 2026-06-28 08:54:37 +05:30
Kovid Goyal
ab59a7f72c Setup location for compiled shaders 2026-06-28 08:54:37 +05:30
Kovid Goyal
c801efdd03 Function to build slang code to IR 2026-06-28 08:54:37 +05:30
copilot-swe-agent[bot]
c899873784 Fix parser to strip semicolons from module/import names; update tests 2026-06-28 08:54:36 +05:30
copilot-swe-agent[bot]
060c235224 Add slang parser corner case tests and implement test_slang_ordering 2026-06-28 08:54:36 +05:30
Kovid Goyal
135ba45c7e Work on generating build tree for slang files 2026-06-28 08:54:36 +05:30
Kovid Goyal
5b4e3a12a1 Use the slangc binary instead trying to get the C++ extension working everywhere is too fragile 2026-06-28 08:54:36 +05:30
Kovid Goyal
d52013db7e Add build test for loading slangc 2026-06-28 08:54:36 +05:30
Kovid Goyal
fff087bd49 Get slangc building with clang 2026-06-28 08:54:36 +05:30
Kovid Goyal
b5339915e6 ... 2026-06-28 08:54:36 +05:30
Kovid Goyal
0ad4f694d3 More work on slangc 2026-06-28 08:54:36 +05:30