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

◆ calculate_dispatch_size()

std::array< uint32_t, 3 > MayaFlux::Buffers::AudioComputeProcessor::calculate_dispatch_size ( const std::shared_ptr< VKBuffer > & buffer)
overrideprotectedvirtual

Dispatch size from the block's frame count, not its byte size.

Reimplemented from MayaFlux::Buffers::ComputeProcessor.

Definition at line 247 of file AudioComputeProcessor.cpp.

248{
249 const uint32_t workgroup = get_dispatch_config().workgroup_x;
250 return { (m_frames + workgroup - 1) / workgroup, 1, 1 };
251}
const ShaderDispatchConfig & get_dispatch_config() const
Get current dispatch configuration.
uint32_t workgroup_x
Workgroup size X (should match shader).

References MayaFlux::Buffers::ComputeProcessor::get_dispatch_config(), m_frames, and MayaFlux::Buffers::ShaderDispatchConfig::workgroup_x.

Here is the call graph for this function: