|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::GeometryBindingsProcessor::set_texture | ( | std::shared_ptr< Core::VKImage > | image, |
| std::string | binding | ||
| ) |
Supply a texture to bind on the next graphics tick.
Mirrors FormaProcessor::set_texture. Stores the image and binding name behind an atomic dirty flag; processing_function binds it to the buffer's RenderProcessor on the next cycle. The descriptor slot must already exist in the pipeline (declared by GeometryBuffer::setup_rendering). Calling again replaces the pending binding before it is consumed.
| image | GPU image. nullptr clears the binding. |
| binding | Descriptor name matching the fragment shader. |
Definition at line 136 of file GeometryBindingsProcessor.cpp.
References MayaFlux::Buffers::GeometryBindingsProcessor::PendingTexture::image, image, m_pending_texture, and m_texture_dirty.