|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::ShaderProcessor::feed | ( | const std::string & | name, |
| FeedSource | source, | ||
| uint32_t | offset, | ||
| size_t | size = sizeof(float) |
||
| ) |
Supply a push constant from a callable at an explicit offset.
| name | Logical name, used for removal and error reporting. Need not match anything on the shader. |
| source | Callable returning a double. |
| offset | Byte offset in the push constant block. |
| size | Byte width written. Four narrows to float, eight keeps double. Other values are rejected. |
The form hand-written shaders need, since their push constant block is described nowhere the processor can read.
Definition at line 255 of file ShaderProcessor.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, m_feeds, MF_ERROR, and offset.