|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inline |
Attach a ShaderSpec GPU backend to this rule.
When set, the executor wrapper builds a ShaderExecutionContext from the spec via config_from_spec() and bindings_from_spec() and calls set_gpu_backend() on the operation before dispatching. Falls back to the CPU executor if shader compilation fails.
Must be called before executes() to take effect, as executes() reads the stored spec when wrapping the user lambda.
| spec | ShaderSpec produced by ShaderSpec::Assemble::build(). |
Definition at line 485 of file ComputeGrammar.hpp.
References MayaFlux::Yantra::ComputationGrammar::Rule::gpu_spec.