|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::FormaProcessor::set_texture | ( | std::shared_ptr< Core::VKImage > | image, |
| std::string | binding | ||
| ) |
Supply a texture to bind on the next graphics tick.
Stores the image and binding name behind an atomic dirty flag. On the next processing_function call the image is bound to the RenderProcessor via bind_texture(). Calling again replaces the pending binding before it has been consumed.
| image | GPU image. nullptr clears the binding. |
| binding | Descriptor name matching the fragment shader. |
Definition at line 78 of file FormaProcessor.cpp.
References MayaFlux::Buffers::FormaProcessor::PendingTexture::image, image, m_pending_texture, and m_texture_dirty.