Commit graph

18517 commits

Author SHA1 Message Date
Kovid Goyal
bd7fd59bf9
Remove unused code 2026-07-03 11:12:08 +05:30
Kovid Goyal
849d996d04
Use same version of slang as bundled version in CI 2026-07-03 11:12:08 +05:30
Kovid Goyal
23d891acb6
Output uniform variable names mapping for GLSL shaders 2026-07-03 11:12:08 +05:30
Kovid Goyal
68ee6ab897
Port the bgimage shader 2026-07-03 11:12:07 +05:30
Kovid Goyal
58138f6bed
Get slangc working in macOS frozen build 2026-07-03 11:12:07 +05:30
Kovid Goyal
2cbfc9ccbf
Only copy needed slang dlls 2026-07-03 11:12:07 +05:30
Kovid Goyal
d6a2af7ac6
Get freezing of slang on linux working 2026-07-03 11:12:07 +05:30
Kovid Goyal
51c2c82d02
Ensure slangc is found when freezing 2026-07-03 11:12:07 +05:30
Kovid Goyal
d3ba5dea49
Nicer error message when slangc not found 2026-07-03 11:12:07 +05:30
Kovid Goyal
0f3a2cc288
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-07-03 11:12:07 +05:30
Kovid Goyal
714cd2612c
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-07-03 11:12:07 +05:30
Kovid Goyal
f8d890c7e2
Cleanup build output 2026-07-03 11:12:07 +05:30
Kovid Goyal
33ba260c93
... 2026-07-03 11:12:07 +05:30
Kovid Goyal
603353e7c2
Ensure shaders are built after fast_data_types.so 2026-07-03 11:12:07 +05:30
Kovid Goyal
bed59cc33d
Move specialisations into compiler code
Allows for dynamic specialisations
2026-07-03 11:12:07 +05:30
Kovid Goyal
90e2c05a8a
Fix failing tests 2026-07-03 11:12:07 +05:30
Kovid Goyal
1e9709e53e
Implement specialisation for slang shaders 2026-07-03 11:12:07 +05:30
Kovid Goyal
99c6315ae6
... 2026-07-03 11:12:07 +05:30
Kovid Goyal
31b7261a71
More work on slangc compilation 2026-07-03 11:12:06 +05:30
Kovid Goyal
7748714b0b
More work on slang compiler 2026-07-03 11:12:06 +05:30
Kovid Goyal
b6c749404c
Note that shader-slang is now a dependency 2026-07-03 11:12:06 +05:30
Kovid Goyal
b092fd0b4c
Have dev.sh set SLANGC as well 2026-07-03 11:12:06 +05:30
Kovid Goyal
29fef01e82
Ensure slangc is available in CI 2026-07-03 11:12:06 +05:30
Kovid Goyal
72e88fccd7
More work on slang compilation 2026-07-03 11:12:06 +05:30
Kovid Goyal
8142a84573
More work on integrating slangc into the build pipeline 2026-07-03 11:12:06 +05:30
Kovid Goyal
e4aa2b6fe4
Setup location for compiled shaders 2026-07-03 11:12:06 +05:30
Kovid Goyal
16e7d70f1b
Function to build slang code to IR 2026-07-03 11:12:06 +05:30
copilot-swe-agent[bot]
829da7a3fc
Fix parser to strip semicolons from module/import names; update tests 2026-07-03 11:12:06 +05:30
copilot-swe-agent[bot]
2e99bfa85d
Add slang parser corner case tests and implement test_slang_ordering 2026-07-03 11:12:06 +05:30
Kovid Goyal
a84fe4d35e
Work on generating build tree for slang files 2026-07-03 11:12:06 +05:30
Kovid Goyal
40b115bea2
Use the slangc binary instead trying to get the C++ extension working everywhere is too fragile 2026-07-03 11:12:06 +05:30
Kovid Goyal
be2de20eee
Add build test for loading slangc 2026-07-03 11:12:06 +05:30
Kovid Goyal
91d5c810b5
Get slangc building with clang 2026-07-03 11:12:05 +05:30
Kovid Goyal
55e39aa5f5
... 2026-07-03 11:12:05 +05:30
Kovid Goyal
feb22ff7ce
More work on slangc 2026-07-03 11:12:05 +05:30
Kovid Goyal
ebba5a7467
... 2026-07-03 11:12:05 +05:30
Kovid Goyal
5cb71953c4
Move glsl loading code to legacy 2026-07-03 11:12:05 +05:30
Kovid Goyal
eb4e0cc04a
Move shader pythons code into shaders package 2026-07-03 11:12:05 +05:30
Kovid Goyal
6b3206a15e
Move shaders into kitty package 2026-07-03 11:12:05 +05:30
Kovid Goyal
bd53daa213
Rationalize build/test/package cycle 2026-07-03 11:12:05 +05:30
Kovid Goyal
5b1e80ed79
Remove unneeded build step 2026-07-03 11:12:05 +05:30
Kovid Goyal
8d50293512
Work on slang module compilation 2026-07-03 11:12:05 +05:30
Kovid Goyal
2b7899b53a
Stub slang module 2026-07-03 11:12:05 +05:30
Kovid Goyal
6ee80d7f97
DRYer 2026-07-03 11:12:05 +05:30
copilot-swe-agent[bot]
ba8bd784e6
Use GITHUB_TOKEN for slang release API request to avoid rate limits 2026-07-03 11:12:05 +05:30
copilot-swe-agent[bot]
fd134b4b10
Address code review: use url=None, add TypeError comment 2026-07-03 11:12:04 +05:30
copilot-swe-agent[bot]
8a21f067da
Implement install_slang_compiler() in ci.py 2026-07-03 11:12:04 +05:30
Kovid Goyal
73158bd4b6
Stub for installation of slang on CI 2026-07-03 11:12:04 +05:30
Kovid Goyal
93e55e86e2
Add slang to sources 2026-07-03 11:12:04 +05:30
Kovid Goyal
4feb167e99
Cleanup previous PR
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
2026-07-03 11:08:14 +05:30