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

◆ set_bytes()

void MayaFlux::Buffers::FormaProcessor::set_bytes ( const std::vector< uint8_t > &  bytes)

Replace the default slice with new vertex bytes.

Applied on the next processing_function call. The default slice is created on first use.

Parameters
bytesRaw interleaved vertex bytes matching the topology's vertex type (PointVertex, LineVertex, or MeshVertex).

Definition at line 40 of file FormaProcessor.cpp.

41{
42 if (m_default_slice == 0) {
44 } else {
46 }
47 m_changed = true;
48}
std::span< const uint8_t > whole_vertices(const std::vector< uint8_t > &bytes) const noexcept
SliceId add(std::span< const uint8_t > bytes, std::optional< Portal::Graphics::PrimitiveTopology > topology=std::nullopt)
Append a block at the end of memory and draw order.
Definition SliceSet.cpp:22
void update(SliceId id, std::span< const uint8_t > bytes)
Replace a block's vertices.
Definition SliceSet.cpp:46

References MayaFlux::Buffers::SliceSet::add(), m_changed, m_default_slice, m_slices, MayaFlux::Buffers::SliceSet::update(), and whole_vertices().

+ Here is the call graph for this function: