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

◆ size_dispatch()

void MayaFlux::Buffers::VolumeFieldProcessor::size_dispatch ( )
private

Size the manual dispatch to cover the lattice.

Definition at line 103 of file VolumeFieldProcessor.cpp.

104{
105 const glm::uvec3 res = m_volume->get_lattice().resolution;
106
107 set_workgroup_size(k_workgroup_x, k_workgroup_y, k_workgroup_z);
110 (res.x + k_workgroup_x - 1) / k_workgroup_x,
111 (res.y + k_workgroup_y - 1) / k_workgroup_y,
112 (res.z + k_workgroup_z - 1) / k_workgroup_z);
113}
void set_workgroup_size(uint32_t x, uint32_t y=1, uint32_t z=1)
Set workgroup size (should match shader local_size)
void set_dispatch_mode(ShaderDispatchConfig::DispatchMode mode)
Set dispatch mode.
void set_manual_dispatch(uint32_t x, uint32_t y=1, uint32_t z=1)
Set manual dispatch group counts.
std::shared_ptr< VolumeGridBuffer > m_volume
The attached volume, null until on_attach validates it.

References m_volume, MayaFlux::Buffers::ShaderDispatchConfig::MANUAL, MayaFlux::Buffers::ComputeProcessor::set_dispatch_mode(), MayaFlux::Buffers::ComputeProcessor::set_manual_dispatch(), and MayaFlux::Buffers::ComputeProcessor::set_workgroup_size().

Referenced by on_attach().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: