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

◆ run_windowed_kernel() [2/2]

std::vector< float > MayaFlux::Yantra::run_windowed_kernel ( ShaderExecutionContext<> & context,
const GpuComputeConfig & config,
std::span< const float > samples,
const SegmentGeometry & geometry,
uint32_t outputs,
std::span< const float > parameters )
inlinenodiscard

Run a one input, one invocation per window kernel over every window.

Parameters
contextContext built with config and windowed_kernel_layout.
configThe config the context was built from.
samplesFloats the windows index into. Every window must lie inside it.
geometryWindow length, stride, first offset and count.
outputsResults per window.
parametersFloats the kernel reads from binding 1.
Returns
geometry.count * outputs floats, window major, empty when there is nothing to run.

Definition at line 315 of file WindowedKernelAnalyzer.hpp.

318{
319 const WindowedInput input { .samples = samples, .stride = geometry.stride, .offset = geometry.offset };
320 return run_windowed_kernel(context, config, WindowedKernelShape {}, std::span<const WindowedInput>(&input, 1),
321 geometry.length, geometry.count, outputs, parameters);
322}
std::vector< float > run_windowed_kernel(ShaderExecutionContext<> &context, const GpuComputeConfig &config, const WindowedKernelShape &shape, std::span< const WindowedInput > inputs, uint32_t window_length, uint32_t window_count, uint32_t outputs, std::span< const float > parameters)
Run a windowed kernel over every window of one or more sequences.
One sequence a windowed kernel reads, and how its windows are laid out.

References MayaFlux::Yantra::SegmentGeometry::count, MayaFlux::Yantra::SegmentGeometry::length, MayaFlux::Yantra::SegmentGeometry::offset, run_windowed_kernel(), and MayaFlux::Yantra::SegmentGeometry::stride.

Here is the call graph for this function: