|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inlinestatic |
Factory: layout for MeshVertex (position, color, weight, uv, normal, tangent)
Matches 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 weight loc 3 offset 28 TEXTURE_COORDS_2D uv loc 4 offset 36 VERTEX_NORMALS_3D normal loc 5 offset 48 VERTEX_TANGENTS_3D tangent
Identical offset table to for_points() and for_lines(). FieldOperator processes all three types with the same constants.
| stride | Override stride (default: sizeof(MeshVertex) == 60) |
Definition at line 185 of file VertexLayout.hpp.
References attributes, MayaFlux::Kakshya::SCALAR_F32, stride_bytes, MayaFlux::Kakshya::TEXTURE_COORDS_2D, MayaFlux::Kakshya::VERTEX_COLORS_RGB, MayaFlux::Kakshya::VERTEX_NORMALS_3D, MayaFlux::Kakshya::VERTEX_POSITIONS_3D, and MayaFlux::Kakshya::VERTEX_TANGENTS_3D.
Referenced by MayaFlux::Kakshya::as_mesh_vertex_access(), MayaFlux::Nodes::GpuSync::MeshWriterNode::compute_frame(), MayaFlux::IO::ModelReader::extract_single_mesh(), MayaFlux::Nodes::Network::FieldOperator::get_vertex_layout(), MayaFlux::Nodes::GpuSync::MeshWriterNode::MeshWriterNode(), and MayaFlux::Nodes::vertex_layout_for().
Here is the caller graph for this function: