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

◆ make_stage()

template<typename PC>
DependencyStage MayaFlux::Yantra::TensorKernels::detail::make_stage ( const char * shader,
uint32_t local,
const PC & pc,
uint32_t groups )
nodiscard

Definition at line 48 of file Stages.hpp.

49 {
50 return DependencyStage {
51 .config = GpuComputeConfig { .shader_path = shader, .workgroup_size = { local, 1, 1 }, .push_constant_size = sizeof(PC) },
52 .stage_fn = [pc](GpuDispatchCore& core) { core.set_push_constants(pc); },
53 .explicit_groups = std::array<uint32_t, 3> { groups, 1U, 1U },
54 };
55 }
Non-template base that owns all type-independent GPU dispatch logic.
Plain-data description of the compute shader to dispatch.
One stage in a record_stages call.

Referenced by MayaFlux::Yantra::TensorKernels::frame_audio_stage(), MayaFlux::Yantra::TensorKernels::lstm_sequence_stage(), and MayaFlux::Yantra::TensorKernels::magnitude_stage().

Here is the caller graph for this function: