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

◆ grouped()

DataDimension MayaFlux::Kakshya::DataDimension::grouped ( std::string  name,
uint64_t  element_count,
uint8_t  components_per_element,
Role  role = Role::CUSTOM 
)
static

Create dimension with component grouping.

Parameters
nameDimension name
element_countNumber of elements (not components)
components_per_elementComponents per element (e.g., 3 for vec3)
roleSemantic role

Definition at line 69 of file NDData.cpp.

74{
75 DataDimension dim { std::move(name), element_count, 1, role };
76 dim.grouping = ComponentGroup { components_per_element, 0 };
77 return dim;
78}
std::string name
Human-readable identifier for the dimension.
Definition NDData.hpp:187
Role role
Semantic hint for common operations.
Definition NDData.hpp:190

References grouping, name, and role.

Referenced by MayaFlux::Kakshya::detect_data_dimensions(), MayaFlux::Kakshya::detect_data_dimensions(), texture_coords(), vertex_colors(), vertex_normals(), and vertex_positions().

+ Here is the caller graph for this function: