|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::MeshBuffer::set_vertex_data | ( | std::span< const uint8_t > | bytes | ) |
Replace vertex bytes entirely and mark vertices dirty.
Intended for deformation: caller writes new interleaved bytes (same stride as the original layout) and the next graphics cycle re-uploads. Does not change index data or layout.
| bytes | Raw interleaved vertex bytes. Size must be a multiple of m_mesh_data.layout.stride_bytes. |
Definition at line 210 of file MeshBuffer.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Kakshya::MeshData::layout, m_mesh_data, m_vertices_dirty, MF_ERROR, MayaFlux::Kakshya::VertexLayout::stride_bytes, MayaFlux::Kakshya::VertexLayout::vertex_count, and MayaFlux::Kakshya::MeshData::vertex_variant.