Flutter Engine
 
Loading...
Searching...
No Matches
limits_vk.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_LIMITS_VK_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_LIMITS_VK_H_
7
8#include <stdint.h>
9
10namespace impeller {
11
12// Maximum size to use VMA image suballocation. Any allocation greater than or
13// equal to this value will use a dedicated VkDeviceMemory.
14//
15// This value was taken from ANGLE.
17 4 * 1024 * 1024;
18
19} // namespace impeller
20
21#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_LIMITS_VK_H_
constexpr size_t kImageSizeThresholdForDedicatedMemoryAllocation
Definition limits_vk.h:16