Expand description
The strip instance the vertex shader steps over, and the conversion into
it from a rasterized Strip.
One GpuStrip is one instance of a four-vertex quad: there is no
geometry buffer at all, the vertex shader builds the quad’s corners from
the instance’s own fields (see GpuStrip::vertex_range).
Structs§
- GpuStrip
- One strip instance, matching the shaders’
StripInstancebyte for byte. - Strip
Draw - The per-draw values every strip instance of one draw shares.
Enums§
- Paint
Type - How the fragment shader turns an instance’s payload into colour.
Constants§
- PAINT_
TEXTURE_ INDEX_ MASK - Mask covering the encoded-paint texel index in
GpuStrip::paint_and_rect_flag— everything below the paint type. - RECT_
STRIP_ FLAG - Bit 31 of
GpuStrip::paint_and_rect_flag, marking an instance as a whole rectangle rather than a strip: the shader then readsGpuStrip::dense_width_or_rect_heightas a height andGpuStrip::col_idx_or_rect_fracas a coverage fraction.
Functions§
- alpha_
column - The alpha column the strip shader addresses coverage by, from the byte
index a
Stripcarries. - pack_
paint_ descriptor - The packed paint descriptor for a
paint_typeinstance whose encoded-paint record starts attexel_index.