mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-17 05:32:41 +00:00
Add a small Slang lexer and top level declaration parser to slang.py, and SlangShaderQuery which runs the slangc preprocessor when an answer could depend on it. Use it for: - Detecting pointer_map(), so that comments, #if 0 blocks and calls no longer count, macros are honored, and a pointer_map() that is not public or does not return float2 is reported instead of failing obscurely. The result is cached alongside the pipeline module, so a cached load does not run slangc. - Applying pipeline var directives, which now work for declarations spanning multiple lines and match by name as documented. - Parsing the builtin shaders, with identical results for all of them. Also cleanup minor issues form previous PR - Ignore pointer_map() in groups that only draw to part of the screen - Share the pointer position conversion between glfw.c and mouse.c - Pass POINTER_MAP_SIZE to the pipeline as a define instead of duplicating it - Do not free the pointer map render target on every pipeline reload - Document what pointer_map() may depend on and when d.mouse_pos lines up with the pointer |
||
|---|---|---|
| .. | ||
| _static | ||
| _templates | ||
| kittens | ||
| screenshots | ||
| actions.rst | ||
| basic.rst | ||
| binary.rst | ||
| build.rst | ||
| changelog.rst | ||
| clipboard.rst | ||
| color-stack.rst | ||
| conf.py | ||
| conf.rst | ||
| custom-shaders.rst | ||
| deccara.rst | ||
| desktop-notifications.rst | ||
| dnd-protocol.rst | ||
| extract-rst-targets.py | ||
| faq.rst | ||
| file-transfer-protocol.rst | ||
| glossary.rst | ||
| graphics-protocol.rst | ||
| index.rst | ||
| installer.sh | ||
| integrations.rst | ||
| intro_vid.rst | ||
| invocation.rst | ||
| keyboard-protocol.rst | ||
| kittens_intro.rst | ||
| launch.rst | ||
| layouts.rst | ||
| Makefile | ||
| mapping.rst | ||
| marks.rst | ||
| misc-protocol.rst | ||
| multiple-cursors-protocol.rst | ||
| notifications.py | ||
| open_actions.rst | ||
| overview.rst | ||
| performance.rst | ||
| pipe.rst | ||
| pointer-shapes.rst | ||
| press-mentions.rst | ||
| protocol-extensions.rst | ||
| quake-screenshots.rst | ||
| quickstart.rst | ||
| rc_protocol.rst | ||
| remote-control.rst | ||
| requirements.txt | ||
| sessions.rst | ||
| shell-integration.rst | ||
| support.html | ||
| support.rst | ||
| text-sizing-protocol.rst | ||
| underlines.rst | ||
| unscroll.rst | ||
| wide-gamut-colors.rst | ||