|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Portal::Forma::Bridge::write | ( | uint32_t | id, |
| const std::shared_ptr< Buffers::VKBuffer > & | target_buffer, | ||
| const std::string & | shader_path, | ||
| const std::string & | descriptor_name, | ||
| uint32_t | binding_index, | ||
| uint32_t | set, | ||
| Portal::Graphics::DescriptorRole | role = Portal::Graphics::DescriptorRole::UNIFORM |
||
| ) |
Route element value to a descriptor binding on target_buffer.
Creates a FormaBindingsProcessor if one does not yet exist for this element and attaches it to target_buffer. If a processor already exists from a prior write() call, target_buffer must be the same buffer — a second attachment is not made.
| id | Element id. |
| target_buffer | Buffer whose pipeline context receives the descriptor update. |
| shader_path | Shader path used to construct FormaBindingsProcessor if needed. |
| descriptor_name | Descriptor name in the shader config. |
| binding_index | Vulkan binding index. |
| set | Descriptor set index. |
| role | UNIFORM or STORAGE. |
Definition at line 120 of file Bridge.cpp.
References MayaFlux::Buffers::BufferManager::add_processor(), MayaFlux::Buffers::GRAPHICS_BACKEND, MayaFlux::Journal::Init, m_buffer_manager, m_records, MF_ERROR, and MayaFlux::Journal::Portal.
Here is the call graph for this function: