|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::MeshNetworkBuffer::bind_diffuse_texture | ( | std::shared_ptr< Core::VKImage > | image, |
| std::string_view | binding_name = "diffuseTex" |
||
| ) |
Bind a single shared diffuse texture for all slots.
| image | GPU image to bind. Pass nullptr to unbind. |
| binding_name | Shader descriptor name (default: "diffuseTex"). |
Must be called before setup_rendering() for the ShaderConfig to include the descriptor slot. Calling after setup_rendering() updates the binding on the existing RenderProcessor but will warn if the pipeline was compiled without the binding.
Definition at line 168 of file MeshNetworkBuffer.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Portal::Graphics::RenderConfig::default_texture_binding, image, m_diffuse_binding, m_diffuse_texture, m_render_config, m_render_processor, and MF_WARN.