MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / EqualValuesOrBothNull

Function EqualValuesOrBothNull

layers/utils/math_utils.h:180–185  ·  view source on GitHub ↗

For spots we care if one pointer is null, or if both are not null, are the same values

Source from the content-addressed store, hash-verified

178
179// For spots we care if one pointer is null, or if both are not null, are the same values
180static inline bool EqualValuesOrBothNull(const uint32_t* a, const uint32_t* b) {
181 if (!a || !b) {
182 return a == b;
183 }
184 return *a == *b;
185}
186
187template <typename T>
188constexpr T AbsDiff(T a, T b) {

Calls

no outgoing calls

Tested by

no test coverage detected