MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ bind_texture() [1/2]

void MayaFlux::Buffers::RenderProcessor::bind_texture ( const std::string &  descriptor_name,
const std::shared_ptr< Core::VKImage > &  texture,
vk::Sampler  sampler = nullptr 
)

Bind a texture to a named descriptor.

Parameters
descriptor_nameLogical name (must be in config.bindings)
textureVKImage texture to bind
samplerOptional sampler (uses default linear if null)

Definition at line 89 of file RenderProcessor.cpp.

93{
94 auto binding_it = m_config.bindings.find(descriptor_name);
95 if (binding_it == m_config.bindings.end()) {
97 "No binding configured for descriptor '{}'", descriptor_name);
98 return;
99 }
100
101 bind_texture(binding_it->second.binding, texture, sampler);
102}
#define MF_ERROR(comp, ctx,...)
void bind_texture(uint32_t binding, const std::shared_ptr< Core::VKImage > &texture, vk::Sampler sampler=nullptr)
Bind a texture to a descriptor binding point.
@ BufferProcessing
Buffer processing (Buffers::BufferManager, processing chains)
@ Buffers
Buffers, Managers, processors and processing chains.
std::unordered_map< std::string, ShaderBinding > bindings

References bind_texture(), MayaFlux::Buffers::ShaderConfig::bindings, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Buffers::ShaderProcessor::m_config, and MF_ERROR.

+ Here is the call graph for this function: