|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
|
inline |
Bind a MappedState<T> to a descriptor binding on the attached buffer.
Creates an owned host-visible GPU buffer sized to sizeof(float). Each tick the projected value is uploaded into this buffer and registered in the attached buffer's descriptor_buffer_bindings, following the same path as DescriptorBindingsProcessor.
| name | Logical binding name. |
| state | MappedState whose value is read each graphics tick. |
| project | Projection from T to float. Called every tick. |
| descriptor_name | Descriptor name in the shader config. |
| binding_index | Vulkan binding index within the descriptor set. |
| set | Descriptor set index. |
| role | UNIFORM for UBO, STORAGE for SSBO. |
| T | MappedState value type. |
Definition at line 172 of file FormaBindingsProcessor.hpp.
References b, MayaFlux::Buffers::FormaBindingsProcessor::DescriptorTarget::descriptor_name, MF_DEBUG, and MF_ERROR.