| 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 // Perhaps we could combine this with storage mode and create appropriate
18 // host-write and host-read flags.
19 bool readback = false;
20 };
21
22 } // namespace impeller
23
24 #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:32
impeller::DeviceBufferDescriptor::storage_mode
StorageMode storage_mode
Definition: device_buffer_descriptor.h:15
impeller::DeviceBufferDescriptor::readback
bool readback
Definition: device_buffer_descriptor.h:19
impeller
Definition: allocation.cc:12