|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::FormaBindingsProcessor::bind_descriptor | ( | const std::string & | name, |
| std::function< float()> | reader, | ||
| const std::string & | descriptor_name, | ||
| uint32_t | binding_index, | ||
| uint32_t | set, | ||
| Portal::Graphics::DescriptorRole | role = Portal::Graphics::DescriptorRole::UNIFORM |
||
| ) |
Bind a type-erased reader to a descriptor binding.
Used by Bridge for the same reason as the push constant raw overload.
| name | Logical binding name. |
| reader | Callable returning the current float value each 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. |
Definition at line 38 of file FormaBindingsProcessor.cpp.
References b, MayaFlux::Buffers::ShaderProcessor::bind_buffer(), MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, DESCRIPTOR, MayaFlux::Buffers::FormaBindingsProcessor::DescriptorTarget::descriptor_name, m_bindings, MayaFlux::Buffers::ShaderProcessor::m_needs_descriptor_rebuild, make_descriptor_buffer(), and MF_ERROR.
Here is the call graph for this function: