Skip to main content

ALIGNMENT

Constant ALIGNMENT 

Source
const ALIGNMENT: NonZeroU32;
Expand description

The alignment every range starts at, in bytes.

This is wgpu’s own copy alignment, which a vertex- or index-buffer offset also has to satisfy; a multiple of it is a multiple of an index format’s size too, so one alignment serves every buffer kind.