77 {
78
79
80 {
81 const auto& lhs = lhs_desc.get();
82 const auto& rhs = rhs_desc.get();
83
84 if (lhs.format != rhs.format ||
85 lhs.ycbcrModel != rhs.ycbcrModel ||
86 lhs.ycbcrRange != rhs.ycbcrRange ||
87 lhs.components.r != rhs.components.r ||
88 lhs.components.g != rhs.components.g ||
89 lhs.components.b != rhs.components.b ||
90 lhs.components.a != rhs.components.a ||
91 lhs.xChromaOffset != rhs.xChromaOffset ||
92 lhs.yChromaOffset != rhs.yChromaOffset ||
93 lhs.chromaFilter != rhs.chromaFilter ||
94 lhs.forceExplicitReconstruction != rhs.forceExplicitReconstruction
95 ) {
96 return false;
97 }
98 }
99#if FML_OS_ANDROID
100 {
101 const auto lhs = lhs_desc.get<vk::ExternalFormatANDROID>();
102 const auto rhs = rhs_desc.get<vk::ExternalFormatANDROID>();
103 return lhs.externalFormat == rhs.externalFormat;
104 }
105#else
106 return true;
107#endif
108}