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

◆ calculate_dispatch_size()

std::array< uint32_t, 3 > MayaFlux::Yantra::TextureExecutionContext::calculate_dispatch_size ( size_t  ,
const DataStructureInfo  
) const
inlineoverrideprotectedvirtual

Derives dispatch groups from stored image dimensions.

Ignores total_elements and structure_info (both meaningless for image dispatch). Uses m_width and m_height set by the most recent prepare_output_image() call.

Reimplemented from MayaFlux::Yantra::GpuDispatchCore.

Definition at line 87 of file TextureExecutionContext.hpp.

90 {
91 const auto& ws = gpu_config().workgroup_size;
92 return {
93 (m_width + ws[0] - 1) / ws[0],
94 (m_height + ws[1] - 1) / ws[1],
95 1U
96 };
97 }
const GpuShaderConfig & gpu_config() const
std::array< uint32_t, 3 > workgroup_size