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

Function IsBetweenInclusive

layers/utils/math_utils.h:139–141  ·  view source on GitHub ↗

Check if size is in range

Source from the content-addressed store, hash-verified

137
138// Check if size is in range
139static inline bool IsBetweenInclusive(VkDeviceSize value, VkDeviceSize min, VkDeviceSize max) {
140 return (value >= min) && (value <= max);
141}
142
143static inline bool IsBetweenInclusive(const VkExtent2D& value, const VkExtent2D& min, const VkExtent2D& max) {
144 return IsBetweenInclusive(value.width, min.width, max.width) && IsBetweenInclusive(value.height, min.height, max.height);

Calls

no outgoing calls

Tested by

no test coverage detected