Skip to main content

Module instance_stream

Module instance_stream 

Source
Expand description

A reused vertex buffer holding one family’s per-frame instance records.

A pipeline family that draws with instance-stepped attributes owns one InstanceBuffer: every frame it packs one record per visible instance and uploads them through the frame’s encoder. Keeping the stream per family is what lets a caller’s family carry its own per-instance data without sharing a record layout or a buffer with the built-in lit family.

Re-exports§

use crate::staging::StagingBuffer; 🔒

Structs§

InstanceBuffer
A reused vertex buffer holding one frame’s packed instance records.
InstanceStreamDesc
Where a family’s instance stream binds and how wide one record is.