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

◆ ensure_capacity()

void MayaFlux::Yantra::SileroVadModel::Impl::ensure_capacity ( size_t chunks)
inline

Definition at line 114 of file SileroVadModel.cpp.

115 {
116 if (chunks <= capacity) {
117 return;
118 }
120 constexpr auto type = GpuBufferBinding::ElementType::FLOAT32;
121 context->ensure_shared_buffer(0, Audio, context_samples + chunks * chunk_samples, type, BufferUsageHint::COMPUTE);
122 context->ensure_shared_buffer(0, Frames, chunks * k_frame, type, BufferUsageHint::COMPUTE);
123 context->ensure_shared_buffer(0, Transform, chunks * 258 * 4, type, BufferUsageHint::COMPUTE);
124 context->ensure_shared_buffer(0, Magnitude, chunks * 129 * 4, type, BufferUsageHint::COMPUTE);
125 context->ensure_shared_buffer(0, Encoded1, chunks * 128 * 4, type, BufferUsageHint::COMPUTE);
126 context->ensure_shared_buffer(0, Encoded2, chunks * 64 * 2, type, BufferUsageHint::COMPUTE);
127 context->ensure_shared_buffer(0, Encoded3, chunks * 64, type, BufferUsageHint::COMPUTE);
128 context->ensure_shared_buffer(0, Encoded4, chunks * k_hidden, type, BufferUsageHint::COMPUTE);
129 context->ensure_shared_buffer(0, Hidden, chunks * k_hidden, type, BufferUsageHint::COMPUTE);
130 context->ensure_shared_buffer(0, Probability, chunks, type);
131 capacity = chunks;
132 }
static constexpr uint32_t context_samples
static constexpr uint32_t chunk_samples
BufferUsageHint
Semantic usage hint for buffer allocation and memory properties.
static constexpr DomainSpec Audio
Domain constant for Audio domain.
Definition Creator.hpp:497
enum MayaFlux::Portal::Graphics::GpuBufferBinding::ElementType FLOAT32
std::unique_ptr< ShaderExecutionContext<> > context

References MayaFlux::Audio, capacity, MayaFlux::Yantra::SileroVadModel::chunk_samples, context, MayaFlux::Yantra::SileroVadModel::context_samples, and MayaFlux::Portal::Graphics::GpuBufferBinding::FLOAT32.

Referenced by run().

Here is the caller graph for this function: