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

◆ TextureContainer() [2/5]

MayaFlux::Kakshya::TextureContainer::TextureContainer ( const std::shared_ptr< Core::VKImage > &  image,
ImageFormat  format 
)

Construct from an existing VKImage, downloading its pixel data.

Parameters
imageSource GPU texture. Must be initialized.
formatPixel format of the image.

Performs a blocking GPU->CPU download via TextureLoom. Equivalent to constructing empty then calling from_image().

Definition at line 76 of file TextureContainer.cpp.

77 : TextureContainer(image->get_width(), image->get_height(), format)
78{
79 from_image(image, 0);
80}
IO::ImageData image
Definition Decoder.cpp:47
bool format
TextureContainer(uint32_t width, uint32_t height, ImageFormat format, uint32_t layers=1)
Construct an empty container with declared dimensions.
void from_image(const std::shared_ptr< Core::VKImage > &image, uint32_t layer=0)
Download pixel data from a VKImage into this container.

References from_image(), and image.

+ Here is the call graph for this function: