|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inlinestatic |
Factory: layout for raw vertex data with common attributes.
Matches PointVertex/LineVertex/MeshVertex field order exactly (60 bytes): loc 0 offset 0 VERTEX_POSITIONS_3D position loc 1 offset 12 VERTEX_COLORS_RGB color loc 2 offset 24 SCALAR_F32 scalar loc 3 offset 28 TEXTURE_COORDS_2D uv loc 4 offset 36 VERTEX_NORMALS_3D normal loc 5 offset 48 VERTEX_TANGENTS_3D tangent
Use when vertex data is pre-packed or doesn't fit standard structs.
| stride | Override stride (default: 60 bytes for these attributes) |
Definition at line 232 of file VertexLayout.hpp.
References attributes, MayaFlux::Kakshya::SCALAR_F32, stride_bytes, MayaFlux::Kakshya::VERTEX_COLORS_RGB, MayaFlux::Kakshya::VERTEX_NORMALS_3D, MayaFlux::Kakshya::VERTEX_POSITIONS_3D, and MayaFlux::Kakshya::VERTEX_TANGENTS_3D.
Referenced by MayaFlux::Buffers::DataWriteProcessor::on_attach(), and MayaFlux::Kakshya::vertex_layout_for().
Here is the caller graph for this function: