|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Non-owning handle for all bind/write/unbind operations on one element. More...
#include <Bridge.hpp>
Collaboration diagram for MayaFlux::Portal::Forma::Bridge::Binding:Public Member Functions | |
| Binding & | bind (std::function< float()> source) |
| Binding & | bind (std::shared_ptr< Nodes::Node > node, std::function< float(double)> project={}) |
| Binding (Bridge &bridge, uint32_t id) noexcept | |
| uint32_t | id () const noexcept |
| void | unbind () |
| Binding & | write (const std::shared_ptr< Buffers::VKBuffer > &target, 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) |
| Binding & | write (const std::shared_ptr< Buffers::VKBuffer > &target, const std::string &shader_path, uint32_t offset, size_t size=sizeof(float)) |
| Binding & | write (std::function< void(std::span< const float >)> sink) |
| Binding & | write (std::shared_ptr< Buffers::AudioWriteProcessor > target) |
| Binding & | write (std::shared_ptr< Buffers::DataWriteProcessor > target) |
| Binding & | write (std::shared_ptr< Nodes::Constant > node) |
Private Attributes | |
| Bridge & | m_bridge |
| uint32_t | m_id |
Non-owning handle for all bind/write/unbind operations on one element.
Obtained via Bridge::at(id) or Bridge::at(state). Closes over the Bridge reference and the element id so the caller never repeats either. Every method forwards directly to the corresponding Bridge overload: there is no deferred execution, no new mechanism.
Binding holds a reference to its Bridge and must not outlive it.
Definition at line 393 of file Bridge.hpp.