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