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

◆ swap_shader()

void MayaFlux::Yantra::GpuDispatchCore::swap_shader ( GpuComputeConfig  config)
inline

Switch which shader subsequent dispatch_core calls target.

No longer destroys any GpuResourceManager state: each shader path is a persistent key in GpuResourceManager, created once and reused. Switching back to a previously-used shader is free. Preserves all staged image and buffer bindings, same as before.

Use to drive a multi-op sequence through one context: stage the input image, call swap_shader + dispatch_core per op, pipe get_output_image(0) back in via stage_image between steps.

Parameters
configShader config for the next dispatch.

Definition at line 192 of file GpuDispatchCore.hpp.

193 {
194 m_gpu_config = std::move(config);
196 }