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

◆ RelaxationEmitProcessor() [2/2]

MayaFlux::Buffers::RelaxationEmitProcessor::RelaxationEmitProcessor ( const Portal::Graphics::ShaderSpec &  spec)
explicit

Construct an emit processor from a generated ShaderSpec.

Parameters
specShaderSpec whose kernel writes one packed Kakshya::Vertex (15 floats) per cell into "vertices" and declares EmitParams as its leading push constant fields. Its workgroup_size is not consulted once attached to a grid.

Definition at line 13 of file RelaxationEmitProcessor.cpp.

14 : ComputeProcessor(spec)
15{
16 m_config.bindings["cell_state"] = ShaderBinding(0, 0, vk::DescriptorType::eStorageBuffer);
17 m_config.bindings["vertices"] = ShaderBinding(0, 1, vk::DescriptorType::eStorageBuffer);
18}
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.