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

◆ route_to_buffer() [3/4]

BufferOperation MayaFlux::Kriya::BufferOperation::route_to_buffer ( std::shared_ptr< Buffers::TextureArrayBuffer >  target,
uint32_t  layer = 0 
)
static

Route frames into one layer of a texture array buffer.

A capture of an image buffer followed directly by this route is copied on the GPU with no host read, and the array buffer fits the frame to its layer. Raw bytes carry no extent and must already match the layer.

Parameters
targetArray buffer that receives the frames.
layerLayer that holds this source.

Definition at line 368 of file BufferOperation.cpp.

370{
371 BufferOperation op = route_to_buffer(std::static_pointer_cast<Buffers::VKBuffer>(std::move(target)));
372 op.m_target_layer = layer;
373 return op;
374}
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_target_layer, and route_to_buffer().

+ Here is the call graph for this function: