90 :
recording(shared ? std::move(shared) : std::make_shared<GpuDispatchRecorder>(
true))
91 ,
context(std::make_unique<ShaderExecutionContext<>>(
94 {
96 if (!
context->ensure_gpu_ready()) {
98 std::source_location::current(), "SileroVadModel needs a graphics device and none is available");
99 }
101 packed.values = std::vector<float> {};
102 layout = std::move(packed);
103
106 }
static constexpr uint32_t context_samples
@ ComputeMatrix
Compute operations (Yantra - algorithms, matrices, DSP).
@ Yantra
DSP algorithms, computational units, matrix operations, Grammar.
@ COMPUTE
Storage buffer for compute shaders (device-local).
constexpr const char * frame_audio_shader
constexpr uint32_t element_workgroup
Invocations per workgroup of the element-wise kernels.
void upload_packed_weights(GpuDispatchCore &context, uint32_t set, size_t binding, const PackedWeights &packed)
Allocate a shared buffer on a context and fill it with packed weights.
Portal::Graphics::GpuComputeConfig GpuComputeConfig
enum MayaFlux::Portal::Graphics::GpuBufferBinding::ElementType FLOAT32
std::vector< float > tail
std::shared_ptr< GpuDispatchRecorder > recording
std::unique_ptr< ShaderExecutionContext<> > context
TensorKernels::PackedWeights layout