Flutter Engine
The Flutter Engine
|
Due the way the Vulkan spec. treats "identically defined" conversions, creating two conversion with identical descriptors, using one with the image and the other with the sampler, is invalid use. More...
#include <yuv_conversion_library_vk.h>
Public Member Functions | |
~YUVConversionLibraryVK () | |
YUVConversionLibraryVK (const YUVConversionLibraryVK &)=delete | |
YUVConversionLibraryVK & | operator= (const YUVConversionLibraryVK &)=delete |
std::shared_ptr< YUVConversionVK > | GetConversion (const YUVConversionDescriptorVK &chain) |
Get a conversion for the given descriptor. If there is already a conversion created for an equivalent descriptor, a reference to that descriptor is returned instead. More... | |
Friends | |
class | ContextVK |
Due the way the Vulkan spec. treats "identically defined" conversions, creating two conversion with identical descriptors, using one with the image and the other with the sampler, is invalid use.
A conversion library hashes and caches identical descriptors to de-duplicate conversions.
There can only be one conversion library (the constructor is private to force this) and it found in the context.
Definition at line 26 of file yuv_conversion_library_vk.h.
|
default |
|
delete |
std::shared_ptr< YUVConversionVK > impeller::YUVConversionLibraryVK::GetConversion | ( | const YUVConversionDescriptorVK & | chain | ) |
Get a conversion for the given descriptor. If there is already a conversion created for an equivalent descriptor, a reference to that descriptor is returned instead.
[in] | desc | The descriptor. |
Definition at line 18 of file yuv_conversion_library_vk.cc.
|
delete |
|
friend |
Definition at line 49 of file yuv_conversion_library_vk.h.