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

◆ RelaxationStepProcessor() [1/2]

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

Construct a step processor for the given rule shader file.

Parameters
shader_pathPath to the compute shader implementing the rule.
workgroup_xLocal workgroup size along X, forwarded to ComputeProcessor.

Definition at line 12 of file RelaxationStepProcessor.cpp.

13 : ComputeProcessor(shader_path, workgroup_x)
14{
15 m_config.bindings["state_in"] = ShaderBinding(0, 0, vk::DescriptorType::eStorageBuffer);
16 m_config.bindings["state_out"] = ShaderBinding(0, 1, vk::DescriptorType::eStorageBuffer);
17}
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.