Skip to main content

Module sprite_pipeline

Module sprite_pipeline 

Source
Expand description

Instanced sprite pipeline — M0.9.

Per-instance attributes: 4×4 model matrix (4 × Float32x4), tint (Float32x4), anchor (Float32x2). Six vertices per instance form a unit-quad in [0, 1]²; the vertex shader subtracts anchor then applies the model.

Structs§

Batch 🔒
SpriteInstance 🔒
SpritePipeline 🔒

Constants§

ATTR_LAYOUT 🔒

Functions§

collect_batches 🔒
push_sprite_instance 🔒
with_premultiplied_alpha 🔒