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

◆ set_weights()

void MayaFlux::Buffers::TextureArrayBuffer::set_weights ( std::span< const float >  weights)

Set the weights of the first layers in order.

Parameters
weightsWeights, at most WEIGHT_SLOTS or get_layer_count() are used.

Definition at line 269 of file TextureArrayBuffer.cpp.

270{
271 const auto count = std::min<size_t>({ weights.size(), m_layers, m_push.weights.size() });
272 std::copy_n(weights.begin(), count, m_push.weights.begin());
273 flush_push();
274}
size_t count
std::array< float, WEIGHT_SLOTS > weights

References count, flush_push(), m_layers, m_push, and MayaFlux::Buffers::TextureArrayBuffer::Push::weights.

+ Here is the call graph for this function: