Expand description
Pick buffer rendering for element selection.
The pick buffer is an offscreen framebuffer where each element is rendered with a unique color encoding its ID. When the user clicks, we read the pixel at that position and decode the color to find what was clicked.
Structs§
- Mesh
Pick Uniforms - GPU uniforms for mesh pick rendering (flat 24-bit global index encoding).
- Pick
Result - Result of a pick operation.
- Pick
Uniforms - Encodes a structure ID and element ID into RGB pick color. GPU uniforms for pick rendering (flat 24-bit global index encoding).
- Tube
Pick Uniforms - GPU uniforms for tube-based curve network pick rendering (flat 24-bit global index encoding).
Enums§
- Pick
Element Type - Element type for pick results.
Functions§
- color_
to_ index - Decodes a pick color back to an index.
- index_
to_ color - Encodes an index as a pick color.