|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::MeshBuffer::bind_diffuse_texture | ( | std::shared_ptr< Core::VKImage > | image, |
| std::string_view | binding_name = "diffuseTex" |
||
| ) |
Bind a diffuse texture to the render processor, if present.
The binding name must match a descriptor slot in the shader. If the render processor is not yet created, the texture will be bound on creation if the default_texture_binding matches.
Definition at line 187 of file MeshBuffer.cpp.
References MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Portal::Graphics::RenderConfig::default_texture_binding, image, m_diffuse_binding, m_diffuse_texture, MayaFlux::Buffers::VKBuffer::m_render_config, MayaFlux::Buffers::VKBuffer::m_render_processor, and MF_WARN.