|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::DescriptorBindingsProcessor::bind_host_vk_buffer | ( | const std::string & | name, |
| const std::shared_ptr< VKBuffer > & | buffer, | ||
| const std::string & | descriptor_name, | ||
| uint32_t | set, | ||
| Portal::Graphics::DescriptorRole | role = Portal::Graphics::DescriptorRole::STORAGE |
||
| ) |
Bind a host-visible VKBuffer as a descriptor source.
Fails hard at bind time if the buffer is not host-visible. Reads mapped memory each cycle and uploads to the descriptor. Always treated as VECTOR binding.
| name | Logical binding name |
| buffer | Host-visible VKBuffer to read from |
| descriptor_name | Name in shader config bindings |
| set | Descriptor set index |
| role | Descriptor role (default: STORAGE) |
Definition at line 266 of file DescriptorBindingsProcessor.cpp.
References MayaFlux::Buffers::ShaderProcessor::bind_buffer(), MayaFlux::Buffers::ShaderConfig::bindings, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, create_descriptor_buffer(), HOST_VK_BUFFER, m_bindings, MayaFlux::Buffers::ShaderProcessor::m_config, MayaFlux::Buffers::ShaderProcessor::m_needs_descriptor_rebuild, MF_DEBUG, MF_ERROR, and VECTOR.
Here is the call graph for this function: