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

◆ as_vertex_access()

MAYAFLUX_API std::optional< VertexAccess > MayaFlux::Kakshya::as_vertex_access ( std::span< const DataVariant channels,
const VertexAccessConfig config = {} 
)

Extract a VertexAccess from a DataVariant.

Inspects the active variant type and produces a VertexAccess whose layout describes the resulting vertex data. Scalar and complex types are converted to a positional vec3 waveform representation. GLM vector types are passed through without copying.

Parameters
variantSource data.
Returns
Populated VertexAccess, or std::nullopt on incompatible type.

Definition at line 82 of file VertexAccess.cpp.

85{
86 return as_point_vertex_access(channels, config);
87}
std::optional< VertexAccess > as_point_vertex_access(std::span< const DataVariant > channels, const VertexAccessConfig &config)
Assemble point-vertex-compatible bytes from one or more data channels.

References as_point_vertex_access().

+ Here is the call graph for this function: