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

◆ operator()() [1/4]

auto MayaFlux::Evolve::operator() ( const Buffers::RelaxationGridBuffer::GridConfig &  config,
const RenderConfig &  render 
) -> std::shared_ptr<Buffers::RelaxationGridBuffer>
inline

Build a relaxation grid, register it and attach rendering.

Parameters
configGrid arrangement.
renderRender target. target_window is required.
Returns
The registered grid, or nullptr if the target window is null.

The grid is constructed from the config, registered in the graphics domain, then rendering is attached. Its state is left as allocated. Use the seeded overload, or RelaxationGridBuffer::seed_state, to give it an initial condition.

Definition at line 126 of file Evolve.hpp.

130 {
131 auto grid = build_grid(config, render, {}, 0);
132 if (grid) {
134 }
135 return grid;
136 }
#define MF_LIVE_EXPOSE_AUTO(ptr)
Auto-expose variant that deduces the key prefix from the shared_ptr element type.
std::shared_ptr< Buffers::RelaxationGridBuffer > build_grid(const Buffers::RelaxationGridBuffer::GridConfig &config, const RenderConfig &render, const std::vector< std::byte > &seed, size_t seed_stride)
Construct, optionally seed, register and render a relaxation grid.
Definition Evolve.cpp:280

References MF_LIVE_EXPOSE_AUTO.