13 std::weak_ptr<DeviceHolderVK> device_holder)
14 : device_holder_(
std::move(device_holder)) {}
16YUVConversionLibraryVK::~YUVConversionLibraryVK() =
default;
18std::shared_ptr<YUVConversionVK> YUVConversionLibraryVK::GetConversion(
20 Lock lock(conversions_mutex_);
21 auto found = conversions_.find(
desc);
22 if (found != conversions_.end()) {
25 auto device_holder = device_holder_.lock();
27 VALIDATION_LOG <<
"Context loss during creation of YUV conversion.";
30 return (conversions_[
desc] = std::shared_ptr<YUVConversionVK>(
YUVConversionLibraryVK(const YUVConversionLibraryVK &)=delete
It is sometimes necessary to deal with formats not native to Vulkan. In such cases,...
vk::StructureChain< vk::SamplerYcbcrConversionCreateInfo > YUVConversionDescriptorVK