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

◆ RelaxationEmitProcessor() [1/2]

MayaFlux::Buffers::RelaxationEmitProcessor::RelaxationEmitProcessor ( const std::string &  shader_path,
uint32_t  workgroup_x = 16 
)
explicit

Construct an emit processor for the given shader file.

Parameters
shader_pathPath to the compute shader that reads cell_state and writes vertices.
workgroup_xLocal workgroup size along X, forwarded to ComputeProcessor.

Definition at line 6 of file RelaxationEmitProcessor.cpp.

7 : ComputeProcessor(shader_path, workgroup_x)
8{
9 m_config.bindings["cell_state"] = ShaderBinding(0, 0, vk::DescriptorType::eStorageBuffer);
10 m_config.bindings["vertices"] = ShaderBinding(0, 1, vk::DescriptorType::eStorageBuffer);
11}
ComputeProcessor(const std::string &shader_path, uint32_t workgroup_x=256)
Construct processor with shader path.
std::unordered_map< std::string, ShaderBinding > bindings

References MayaFlux::Buffers::ShaderConfig::bindings, and MayaFlux::Buffers::ShaderProcessor::m_config.