|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::optional< VertexAccess > MayaFlux::Kakshya::as_point_vertex_access | ( | std::span< const DataVariant > | channels, |
| const VertexAccessConfig & | config = {} |
||
| ) |
Assemble point-vertex-compatible bytes from one or more data channels.
channels[0] must supply position data (vec3 or uint8_t interleaved). channels[1..5] optionally supply color, scalar, uv, normal, tangent in canonical field order. Missing trailing channels are filled from config. A single uint8_t channel of N*60 bytes is passed through zero-copy.
| channels | Source channels in canonical field order. |
| config | Default attribute values for absent channels. |
Definition at line 89 of file VertexAccess.cpp.
References b, MayaFlux::Kakshya::VertexAccess::byte_count, MayaFlux::Kakshya::VertexAccess::conversion_buffer, count, MayaFlux::Kakshya::VertexAccess::data_ptr, MayaFlux::Kakshya::VertexAccessConfig::default_size, MayaFlux::Kakshya::VertexLayout::for_points(), MayaFlux::Journal::Kakshya, MayaFlux::Kakshya::VertexAccess::layout, MF_ERROR, MayaFlux::Journal::Runtime, and MayaFlux::Kakshya::VertexLayout::vertex_count.
Referenced by as_vertex_access(), and MayaFlux::Buffers::DataWriteProcessor::upload_vertex().
Here is the call graph for this function:
Here is the caller graph for this function: