···11951195 * For AHardwareBuffer handles, the alloc size must be the size returned by
11961196 * vkGetAndroidHardwareBufferPropertiesANDROID for the Android hardware buffer
11971197 */
11981198+ } else if (requirements.size == 0) {
11991199+ /*
12001200+ * VUID-VkMemoryAllocateInfo-allocationSize-07899
12011201+ * For any handles other than AHardwareBuffer, size must be greater than 0
12021202+ */
12031203+ VK_ERROR(vk, "size must be greater than 0");
12041204+11981205 } else if (requirements.size > image_native->size) {
11991206 VK_ERROR(vk, "size mismatch, exported %" PRIu64 " but requires %" PRIu64, image_native->size,
12001207 requirements.size);