| Flutter Impeller |

device_buffer_descriptor.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_CORE_DEVICE_BUFFER_DESCRIPTOR_H_
6 #define FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_DESCRIPTOR_H_
7
8 #include <cstddef>
9
10 #include "impeller/core/formats.h"
11
12 namespace impeller {
13
14 struct DeviceBufferDescriptor {
15 StorageMode storage_mode = StorageMode::kDeviceTransient;
16 size_t size = 0u;
17 };
18
19 } // namespace impeller
20
21 #endif // FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_DESCRIPTOR_H_
impeller::DeviceBufferDescriptor
Definition: device_buffer_descriptor.h:14
formats.h
impeller::DeviceBufferDescriptor::size
size_t size
Definition: device_buffer_descriptor.h:16
impeller::StorageMode::kDeviceTransient
@ kDeviceTransient
impeller::StorageMode
StorageMode
Specified where the allocation resides and how it is used.
Definition: formats.h:27
impeller::DeviceBufferDescriptor::storage_mode
StorageMode storage_mode
Definition: device_buffer_descriptor.h:15
impeller
Definition: aiks_context.cc:10