kitty/kitty_tests
Kovid Goyal 6a297b6f06
Add a Metal GPU driver and an MSL shader target
On macOS, kitty now tries to render using Metal, falling back to OpenGL,
see the gpu_driver option. The driver has not yet been compiled or run
on macOS, it was written on Linux and only syntax checked against stub
headers.

Shader targets of the form msl-NN (for MSL N.N) compile each program to
a single MSL source file containing the entry points for all stages,
compiled by the driver at runtime, for the built-in and custom shaders.
slangc ignores [[vk::binding]] for Metal, so the program metadata keeps
the kitty binding slots and passes the argument table indices assigned
by slangc as native names. The push constant block, emitted as an
ordinary constant buffer, is recognized by the name of its type. As
Metal has y=1 at the top in NDC, the generated code is fixed up to
negate the y coordinate of the position output by vertex entry points.
Layouts that would differ because bool is a single byte in MSL are
rejected. The MSL is validated with the Metal compiler when available.
The MSL shaders are temporarily built on all platforms, for development.

The driver follows the design of the Vulkan driver: command buffers with
serials and at most three in flight, copy on write of buffer storage the
GPU may still use, private textures uploaded with blits from staging
memory, pipeline variants created when first used and a CAMetalLayer
per window. Vertex inputs whose offset or stride is not a multiple of
four bytes, as Metal requires, are repacked into a cached copy.
2026-11-19 19:57:33 +05:30
..
__init__.py
AnnotationMono-VF-subset.ttf Fix shaping ignoring variation axes of fonts loaded from descriptors 2026-11-19 16:14:08 +05:30
atexit.py
base.py More detail for on_quit events and a new on_cwd change event 2026-11-12 11:29:08 +05:30
CascadiaCode-Regular.otf
check_build.py Add a Metal GPU driver and an MSL shader target 2026-11-19 19:57:33 +05:30
child.py panel kitten: Use the invocation cwd and a cleaned env for single instance commands 2026-11-19 19:56:17 +05:30
choose_files.py
clipboard.py clipboard: Replace the MIME list PTY test with a Go unit test 2026-10-26 07:50:36 +05:30
ComfyCode-Regular.ttf
command_palette.py Fix #10711 2026-10-21 10:45:01 +05:30
completion.py
crypto.py Encrypt sessions saved at logout with a key in the macOS Keychain 2026-10-16 11:57:31 +05:30
datatypes.py Fix PNG dimension validation test on 32-bit platforms 2026-11-09 13:01:06 +03:00
dnd.py dnd: Accept base64 payloads with trailing padding 2026-10-30 18:16:47 +05:30
dnd_kitten.py Cleanup previous PR 2026-10-29 21:41:44 +05:30
docks.py Allow resizing docks 2026-11-13 19:44:03 +05:30
edit_in_kitty.py
file_transmission.py Transfer kitten: Replace existing links when receiving files 2026-10-21 20:35:07 +05:30
FiraCode-Medium.otf
fonts.py Fix shaping ignoring variation axes of fonts loaded from descriptors 2026-11-19 16:14:08 +05:30
glfw.py
gr.py
GraphemeBreakTest.json
graphics.py Use the coordinate conventions of Vulkan and Metal for the GPU API 2026-11-19 19:57:33 +05:30
hints.py
iosevka-regular.ttf
iterable_arguments.py
keys.py
layout.py Fix single window border with draw_window_borders_for_single_window when margin is narrower than border 2026-11-19 16:29:10 +05:30
LiberationMono-Regular.ttf
main.py tests: Reuse existing resource enumeration helper 2026-11-06 19:17:39 +08:00
mouse.py Reset link hover pointer when output clears the highlight 2026-10-23 17:02:12 +05:30
multicell.py Fix multiline chars being torn by resize and ED 22 2026-11-13 19:43:59 +05:30
notifications.py Linux: Send kitty's .desktop file name to notification servers for grouping 2026-10-23 08:47:19 +05:30
notify.py
open_actions.py Cleanup previous PR 2026-10-31 17:15:08 +05:30
options.py Add a gpu_driver option to choose between GPU drivers with fallback 2026-11-19 19:57:33 +05:30
panels.py
parser.py Graphics protocol: Add sub-feature querying 2026-10-25 09:59:12 +05:30
program_status.py Cleanup previous PR 2026-10-13 21:05:16 +05:30
remote_control.py Further harden remote control password processing 2026-11-03 17:36:01 +05:30
resize_edge.py Cleanup previous PR 2026-10-09 19:51:38 +05:30
resize_fraction.py Add configurable fractional steps to window resizing 2026-10-09 19:54:02 +08:00
screen.py Fix crash in Screen.hyperlink_at() with out of bounds coordinates 2026-11-19 07:23:44 +05:30
search_query_parser.py
selection_drag.py Respect mouse mappings for link hover feedback 2026-10-23 05:08:02 +08:00
sessions.py Allow docking windows to the OS window with launch --type=os-window-dock 2026-11-12 12:47:48 +05:30
shell_integration.py Bash integration: Source the system startup files bash was built with 2026-11-07 06:25:36 +05:30
shm.py
single_instance.py
slang.py Add a Metal GPU driver and an MSL shader target 2026-11-19 19:57:33 +05:30
ssh.py ssh kitten: Fix remote directories being created world writable 2026-11-10 08:15:26 +05:30
tab_bar.py Allow selecting text drawn in the tab bar outside the tabs 2026-11-15 09:32:37 +05:30
tab_drop.py Drag and drop: Fix dropping a window on a temporarily shown title bar 2026-10-21 06:03:46 +05:30
tab_workspaces.py Fix #10627 2026-10-10 10:05:17 +05:30
tui.py
twemoji_smiley-cff2_colr_1.otf
utmp.py