◄ Wiki / Graphics
push constant
A tiny bit of data sent straight into a shader for the next draw, faster than the usual buffer setup.
Shaders normally read parameters from bound buffers, but Vulkan offers push constants: a small block of values pushed inline with a command, ideal for things that change every draw like a transform matrix or a color. Because the amount is tiny and the path is direct, it's low-overhead. Here a class of crashes ('the with_push_template crash family') clustered around code paths that use them.
See also
- pipelineThe ordered assembly line of stages a GPU runs to turn 3D geometry into the colored pixels on screen.
- pipeline-creation timeThe moment shaders get compiled to native GPU machine code — when a Vulkan pipeline object is built, before any drawing.
- render pass / subpassVulkan's way of formally declaring a chunk of rendering and its internal steps up front, so the GPU can optimize it.