It is sometimes necessary to deal with formats not native to Vulkan. In such cases, extra information is necessary to access images. A YUV conversion object is needed in such instances.
More...
It is sometimes necessary to deal with formats not native to Vulkan. In such cases, extra information is necessary to access images. A YUV conversion object is needed in such instances.
There are usually only a handful of viable conversions in a given context. However, due to the way the Vulkan spec. treats "identically defined" conversions, only a single conversion object is valid for an equivalent YUVConversionDescriptorVK
. Because of this restriction, it is not possible to just create a conversion from a descriptor (as the underlying handles will be equivalent but different). Instead, a conversion may only be obtained from a conversion library. Libraries handle hashing and caching conversions by descriptor. Caller can find a library on the top-level context. They may not create their own (the constructor is private).
Definition at line 51 of file yuv_conversion_vk.h.