Expand description
Defines functionalitie associated with vertex attributes and their respective layouts and formats.
Structs§
- Nor
- Represents values that, when passed to shaders as vertex attributes, are to be treated as
normalized floating point numbers. For example,
[u8; 2]’s format isVertexFormat::Uint8x2, while[Nor<u8>; 2]’s format isVertexFormat::Unorm8x2.
Traits§
- IsVertex
Attribute - Marks the type as acceptable by shader programs as vertex attributes. You shouldn’t implement this manually, as this crate already does that for you.
- Linear
Rgba Ext - Extension trait for
LinearRgba. - Vertex
Layout - Represents vertex values in a vertex buffer object.
Derive Macros§
- Vertex
Layout - Derives
VertexLayout. Note that this also requiresNoUninit, which you can derive withhephae-render’s re-export:#[bytemuck(crate = "hephae::render::bytemuck")].