|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::FormaBindingsProcessor::bind_push_constant | ( | const std::string & | name, |
| std::function< float()> | reader, | ||
| uint32_t | offset, | ||
| size_t | size = sizeof(float) |
||
| ) |
Bind a type-erased reader to a push constant slot.
Used by Bridge, which holds readers as std::function<float()> after type-erasing MappedState<T> at register_element time.
| name | Logical binding name. |
| reader | Callable returning the current float value each tick. |
| offset | Byte offset in the push constant struct. |
| size | Byte width. Defaults to sizeof(float). |
Definition at line 25 of file FormaBindingsProcessor.cpp.
References b, m_bindings, MayaFlux::Buffers::FormaBindingsProcessor::PushConstantTarget::offset, and PUSH_CONSTANT.