Commit graph

18500 commits

Author SHA1 Message Date
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
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
Kovid Goyal
68d4688a72
... 2026-06-28 08:54:36 +05:30
Kovid Goyal
8acfd7bbf2
Move glsl loading code to legacy 2026-06-28 08:54:36 +05:30
Kovid Goyal
951fea567b
Move shader pythons code into shaders package 2026-06-28 08:54:36 +05:30
Kovid Goyal
ccfb06d6fc
Move shaders into kitty package 2026-06-28 08:54:36 +05:30
Kovid Goyal
0d5e61e7e6
Rationalize build/test/package cycle 2026-06-28 08:54:36 +05:30
Kovid Goyal
50a95b5513
Remove unneeded build step 2026-06-28 08:54:35 +05:30
Kovid Goyal
9f85dfd6cc
Work on slang module compilation 2026-06-28 08:54:35 +05:30
Kovid Goyal
50eb2c13f2
Stub slang module 2026-06-28 08:54:35 +05:30
Kovid Goyal
f9bc1c9fdf
DRYer 2026-06-28 08:54:35 +05:30
copilot-swe-agent[bot]
8d196d86ba
Use GITHUB_TOKEN for slang release API request to avoid rate limits 2026-06-28 08:54:35 +05:30
copilot-swe-agent[bot]
3b15d86b64
Address code review: use url=None, add TypeError comment 2026-06-28 08:54:35 +05:30
copilot-swe-agent[bot]
d8972f2f95
Implement install_slang_compiler() in ci.py 2026-06-28 08:54:35 +05:30
Kovid Goyal
e64663aa74
Stub for installation of slang on CI 2026-06-28 08:54:35 +05:30
Kovid Goyal
44b3ecf06f
Add slang to sources 2026-06-28 08:54:35 +05:30
Kovid Goyal
925de17ecb
Update changelog
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
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
Fixes #10198
2026-06-28 08:54:04 +05:30
Kovid Goyal
543476f358
Merge branch 'copilot/fix-issue-10198' of https://github.com/kovidgoyal/kitty 2026-06-28 08:52:07 +05:30