kitty/gpu
Kovid Goyal 1dba9eba6d
Replace loose uniforms with parameter blocks
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.
2026-11-18 08:26:40 +05:30
..
opengl Replace loose uniforms with parameter blocks 2026-11-18 08:26:40 +05:30
api.h Replace loose uniforms with parameter blocks 2026-11-18 08:26:40 +05:30