Expand description
Mirrors wgpu::VertexFormat/VertexStepMode/VertexAttribute so a
custom vertex struct’s layout (beyond the built-in
Vertex/InstanceVertex)
can be built with zero raw wgpu. Unlike wgpu::VertexBufferLayout (which
borrows a 'static attribute slice), VertexBufferLayout owns its
attributes — simpler to build, converted to wgpu’s borrowed shape
internally by build_material in a
scope that doesn’t need 'static.
Structs§
- Vertex
Attribute - One vertex attribute within a
VertexBufferLayout— mirrorswgpu::VertexAttribute. - Vertex
Buffer Layout - Layout of one vertex buffer’s attributes — owns its attribute list
(unlike
wgpu::VertexBufferLayout, which borrows a'staticslice), so it can be built and passed around without lifetime ceremony.
Enums§
- Vertex
Format - Format of a single vertex attribute — mirrors
wgpu::VertexFormatexactly (same variants, same names). - Vertex
Step Mode - Whether a vertex buffer is indexed by vertex or by instance — mirrors
wgpu::VertexStepMode.