|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::FormaBindingsProcessor::bind_push_constant | ( | const std::string & | name, |
| std::function< float()> | reader, | ||
| uint32_t | offset, | ||
| Kakshya::GpuDataFormat | format | ||
| ) |
Bind a type-erased reader to a push constant slot described by a GpuDataFormat.
The reader's value is converted to the format; integers saturate. The format must have a single component, since the reader produces one value.
| name | Logical binding name. |
| reader | Callable returning the current value each tick. |
| offset | Byte offset in the push constant struct. |
| format | Layout written at the offset. |
Definition at line 46 of file FormaBindingsProcessor.cpp.
References b, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, format, MayaFlux::Kakshya::gpu_data_format_bytes(), MayaFlux::Kakshya::gpu_data_format_components(), m_bindings, MF_ERROR, name, MayaFlux::Buffers::FormaBindingsProcessor::PushConstantTarget::offset, offset, PUSH_CONSTANT, and release().
Here is the call graph for this function: