Commit graph

18524 commits

Author SHA1 Message Date
Kovid Goyal
bd81b461f1
Rebuild shaders if slangc version does not match
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
2026-07-01 23:12:52 +05:30
Kovid Goyal
74701a701a
Bump slang version, allows removing one glsl workaround 2026-07-01 22:59:59 +05:30
Kovid Goyal
81a6fc3832
Rebuild when build script is newer than cached IR
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
2026-07-01 16:01:26 +05:30
Kovid Goyal
16e4459fae
Handle fixup of flat location specifiers 2026-07-01 15:56:54 +05:30
Kovid Goyal
28bd195499
Make mypy happy 2026-07-01 15:52:11 +05:30
Kovid Goyal
85d9de7aca
Handle uniform structs 2026-07-01 15:38:02 +05:30
Kovid Goyal
024296f36e
Nicer validation integration 2026-07-01 15:10:14 +05:30
Kovid Goyal
18d1614924
Handle array uniforms when fixing GLSL 2026-07-01 15:04:55 +05:30
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
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
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
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
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
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
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
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
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
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
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
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
2026-06-29 08:30:25 +05:30
Kovid Goyal
71fd4d3c57
More work on slang compiler
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
2026-06-28 13:06:22 +05:30
Kovid Goyal
3968a86693
Note that shader-slang is now a dependency
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
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