mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +00:00
The small, frequently changing parameters of a pipeline, the uniform parameters of each entry point and uniform blocks whose contents are constant for the lifetime of a pipeline (currently only the gamma LUT), are now parameter blocks whose layout comes from the shader reflection data. kitty writes their contents into memory it owns and passes changed blocks to the driver with set_params() just before drawing, instead of setting individual uniforms by location. This is the only way parameters are set, so the GL specific pipeline_uniform_slot() and set_uniform_*() functions are gone from the driver API. Drivers are free to implement parameter blocks as they see fit: the OpenGL driver uses loose uniforms, uploading only the fields that changed, Vulkan would use push constants and Metal set*Bytes(). Pipeline creation, including all parsing of the program metadata, now lives in kitty/gpu.c. |
||
|---|---|---|
| .. | ||
| opengl | ||
| api.h | ||