Flutter Impeller
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
10
namespace
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.
16
constexpr
size_t
kImageSizeThresholdForDedicatedMemoryAllocation
=
17
4 * 1024 * 1024;
18
19
}
// namespace impeller
20
21
#endif
// FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_LIMITS_VK_H_
impeller
Definition:
allocation.cc:12
impeller::kImageSizeThresholdForDedicatedMemoryAllocation
constexpr size_t kImageSizeThresholdForDedicatedMemoryAllocation
Definition:
limits_vk.h:16
impeller
renderer
backend
vulkan
limits_vk.h
Generated by
1.9.1