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

◆ route_to_buffer() [2/4]

BufferOperation MayaFlux::Kriya::BufferOperation::route_to_buffer ( std::shared_ptr< Buffers::TextureArrayBuffer >  target,
std::vector< std::shared_ptr< Core::VKImage > >  images 
)
static

Route many GPU images into the layers of a texture array buffer.

Each cycle images[i] is copied into layer i on the GPU, and the array buffer fits it to the layer. An image that stays the same object is copied again with whatever it holds that cycle.

Parameters
targetArray buffer that receives the frames.
imagesOne image per layer, in layer order.

Definition at line 376 of file BufferOperation.cpp.

379{
380 BufferOperation op = route_to_buffer(std::static_pointer_cast<Buffers::VKBuffer>(std::move(target)));
381 op.m_source_images = std::move(images);
382 return op;
383}
BufferOperation(OpType type, BufferCapture capture)
static BufferOperation route_to_buffer(std::shared_ptr< Buffers::AudioBuffer > target)
Create a routing operation to AudioBuffer destination.

References m_source_images, and route_to_buffer().

+ Here is the call graph for this function: