266 {
269 const size_t frames = lengths.back();
270 context->ensure_shared_buffer(0,
Audio, samples, type, BufferUsageHint::COMPUTE);
271 context->ensure_shared_buffer(0, WideA,
static_cast<size_t>(k_features) * lengths[0], type, BufferUsageHint::COMPUTE);
272 context->ensure_shared_buffer(0, WideB,
static_cast<size_t>(k_features) * lengths[1], type, BufferUsageHint::COMPUTE);
273 context->ensure_shared_buffer(0, Stats, 2 * std::max<size_t>(k_features, frames), type, BufferUsageHint::COMPUTE);
274 for (
const uint32_t buffer : { Hidden, Positional, Query,
Key, Value }) {
275 context->ensure_shared_buffer(0, buffer, k_width * frames, type, BufferUsageHint::COMPUTE);
276 }
277 context->ensure_shared_buffer(0, Scores, k_heads * frames * frames, type, BufferUsageHint::COMPUTE);
278 context->ensure_shared_buffer(0, Expanded, k_expanded * frames, type, BufferUsageHint::COMPUTE);
279 context->ensure_shared_buffer(0, Posterior, k_classes * frames, type);
280 }
BufferUsageHint
Semantic usage hint for buffer allocation and memory properties.
static constexpr DomainSpec Audio
Domain constant for Audio domain.
enum MayaFlux::Portal::Graphics::GpuBufferBinding::ElementType FLOAT32
std::unique_ptr< ShaderExecutionContext<> > context