|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
Parsed representation of a user-supplied kernel lambda. More...
#include <ShaderSpec.hpp>
Collaboration diagram for MayaFlux::Portal::Graphics::KernelSource:Static Public Member Functions | |
| static KernelSource | parse (std::string_view stringified) |
| Parse parameter names and body from a stringified lambda. | |
Public Attributes | |
| std::string | body |
| std::vector< std::string > | param_names |
| std::string | raw |
Parsed representation of a user-supplied kernel lambda.
Produced by the MF_KERNEL macro, which stringifies the lambda text at the call site. The parameter names must match binding and push constant field names declared on the enclosing ShaderSpec in declaration order: SSBO bindings first, then PC fields, then optionally a uint32_t index parameter named i.
The body is extracted verbatim between the outermost braces and injected into the generated GLSL compute shader by the emitter.
Definition at line 57 of file ShaderSpec.hpp.