MayaFlux 0.1.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 94 of file RenderProcessor.cpp.

98{
99 auto binding_it = m_config.bindings.find(descriptor_name);
100 if (binding_it == m_config.bindings.end()) {
102 "No binding configured for descriptor '{}'", descriptor_name);
103 return;
104 }
105
106 bind_texture(binding_it->second.binding, texture, sampler);
107}
#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::ShaderProcessorConfig::bindings, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Buffers::ShaderProcessor::m_config, and MF_ERROR.

+ Here is the call graph for this function: