Skip to main content

segment_layout

Function segment_layout 

Source
pub fn segment_layout() -> VertexBufferLayoutDesc
Expand description

The instance-step layout a line pipeline reads its segment records through.

The stride is SEGMENT_STRIDE, the sum of the declared attribute sizes, so a caller’s segment record is tightly packed by the same tokens: a type feeding the stream asserts its own size against the constant.