|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::DescriptorBindingsProcessor::bind_audio_buffer | ( | const std::string & | name, |
| const std::shared_ptr< AudioBuffer > & | buffer, | ||
| const std::string & | descriptor_name, | ||
| uint32_t | set, | ||
| Portal::Graphics::DescriptorRole | role = Portal::Graphics::DescriptorRole::STORAGE |
||
| ) |
Bind an AudioBuffer as a descriptor source.
Reads the buffer's double sample data each cycle, converts to float, and uploads to the descriptor. Always treated as VECTOR binding.
| name | Logical binding name |
| buffer | AudioBuffer to read from |
| descriptor_name | Name in shader config bindings |
| set | Descriptor set index |
| role | Descriptor role (default: STORAGE) |
Definition at line 221 of file DescriptorBindingsProcessor.cpp.
References AUDIO_BUFFER, MayaFlux::Buffers::ShaderProcessor::bind_buffer(), MayaFlux::Buffers::ShaderConfig::bindings, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, create_descriptor_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: