mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +00:00
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. |
||
|---|---|---|
| .. | ||
| opengl | ||
| api.h | ||