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

◆ bind_texture()

void MayaFlux::Buffers::FormaBuffer::bind_texture ( uint32_t  array_index,
const std::shared_ptr< Core::VKImage > &  image 
)

Bind a texture to a slot in the multi-texture array at runtime.

Valid only when setup_rendering was called with additional_textures. array_index is 0-based into the array declared at setup time: index 0 = weight 1, index 1 = weight 2, etc.

Parameters
array_indexZero-based index into the textures[] array.
imageGPU image. Must be GPU-resident.

Definition at line 171 of file FormaBuffer.cpp.

172{
174 m_render_processor->bind_texture(1 + array_index, image);
175}
IO::ImageData image
Definition Decoder.cpp:57
std::shared_ptr< RenderProcessor > m_render_processor
Definition VKBuffer.hpp:618

References image, and MayaFlux::Buffers::VKBuffer::m_render_processor.