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

◆ writable_format()

std::optional< ImageFormat > MayaFlux::Portal::Graphics::TextureLoom::writable_format ( const std::shared_ptr< Core::VKImage > &  image)
static

ImageFormat of an image that can be written as one flat block.

The mirror of readable_format() with transfer-destination usage in place of transfer-source: an initialised single-layer 2D image of depth 1, a mapped format that is not combined depth-stencil, and a nonzero base level that fits the image's allocation.

Returns
The format, or nullopt when any requirement is not met.

Definition at line 1071 of file TextureLoom.cpp.

1073{
1074 return transfer_format(image, vk::ImageUsageFlagBits::eTransferDst);
1075}
IO::ImageData image
Definition Decoder.cpp:47
static std::optional< ImageFormat > transfer_format(const std::shared_ptr< Core::VKImage > &image, vk::ImageUsageFlagBits required_usage)

References image, and transfer_format().

+ Here is the call graph for this function: