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

◆ write_layer() [2/2]

void MayaFlux::Kriya::detail::write_layer ( const std::shared_ptr< Buffers::VKBuffer > &  target,
uint32_t  layer,
const std::shared_ptr< Core::VKImage > &  image 
)

Write a GPU image into one layer of a layered buffer, with no host read.

Parameters
targetBuffer that passed accepts_layer_write.
layerLayer to replace.
imageSource image; the buffer fits it to the layer.

Definition at line 113 of file PipelineGraphicsData.cpp.

117{
118 const auto array = std::dynamic_pointer_cast<Buffers::TextureArrayBuffer>(target);
119 if (array && image) {
120 array->submit_layer(layer, image);
121 }
122}
IO::ImageData image
Definition Decoder.cpp:47

References image.