|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::ShaderProcessor::feed | ( | const std::string & | name, |
| FeedSource | source | ||
| ) |
Supply a shader input from a callable, resolved by name.
| name | A name already declared on this shader: a descriptor in config.bindings, or a push constant field from the ShaderSpec this processor was constructed from. |
| source | Callable pulled each cycle. Returns a DataVariant for a descriptor name, a double for a push constant field. |
Resolution happens once, here. Descriptor names take precedence; a name matching neither is an error and registers nothing. File-shader processors have no record of push constant field names, so their constant feeds must use the explicit overload.
Definition at line 212 of file ShaderProcessor.cpp.
References MayaFlux::Buffers::ShaderConfig::bindings, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Kakshya::gpu_data_format_bytes(), m_config, m_feeds, MF_ERROR, offset, MayaFlux::Buffers::ShaderConfig::pc_fields, and width.
Here is the call graph for this function: