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

◆ MF_KERNEL

#define MF_KERNEL (   lambda)     MayaFlux::Portal::Graphics::KernelSource::parse(#lambda)

Stringifies a kernel lambda for use with ShaderSpec::Assemble::kernel().

The lambda is never evaluated. Its text is captured at the call site and parsed into parameter names and a body by KernelSource::parse(). Parameter names must match the binding and push constant field names declared on the enclosing ShaderSpec in declaration order.

.kernel(MF_KERNEL([](float* sig, float gain, uint32_t i) {
sig[i] *= gain;
}))
#define MF_KERNEL(lambda)
Stringifies a kernel lambda for use with ShaderSpec::Assemble::kernel().

Definition at line 503 of file ShaderSpec.hpp.