MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ vertex_layout_for()

template<typename T >
Kakshya::VertexLayout MayaFlux::Nodes::vertex_layout_for ( )

Deduce a VertexLayout from a vertex struct type.

Definition at line 110 of file VertexSpec.hpp.

111{
112 if constexpr (std::is_same_v<T, PointVertex>) {
113 return Kakshya::VertexLayout::for_points();
114 } else if constexpr (std::is_same_v<T, LineVertex>) {
115 return Kakshya::VertexLayout::for_lines();
116 } else if constexpr (std::is_same_v<T, MeshVertex>) {
117 return Kakshya::VertexLayout::for_meshes();
118 } else {
119 static_assert(!std::is_same_v<T, T>,
120 "vertex_layout_for: unrecognised vertex type");
121 }
122}

References MayaFlux::Kakshya::VertexLayout::for_lines(), MayaFlux::Kakshya::VertexLayout::for_meshes(), and MayaFlux::Kakshya::VertexLayout::for_points().

+ Here is the call graph for this function: