kitty/gpu
Kovid Goyal bfbc1b25ed
Add a SPIR-V shader target for the built-in and custom shaders
Shader targets of the form spirv-NN (for SPIR-V N.N) compile each
program to a single SPIR-V module containing the entry points for all
stages, along with the same backend neutral program metadata as for
GLSL. The compiled modules are validated with spirv-val, when it is
available. Custom shaders are compiled at runtime for SPIR-V targets as
well, and the tests compile and validate all bundled custom shaders for
SPIR-V in addition to the target of the loaded driver.

The program metadata now includes the names of the entry points, which
are passed to drivers in GPUShaderSource, since a module can contain
the entry points of several stages. compile_program() accepts binary
shaders as bytes.

This replaces the unused, untargeted .spv files that were built before.
2026-11-19 07:35:31 +05:30
..
opengl Use the coordinate conventions of Vulkan and Metal for the GPU API 2026-11-19 07:35:31 +05:30
api.h Add a SPIR-V shader target for the built-in and custom shaders 2026-11-19 07:35:31 +05:30