MayaFlux 0.5.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 implementing the state-to-vertex mapping, typically an Elementwise spec built from a factory such as the binary/scalar-ramp/rgba emit shaders.

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.