#include <device_buffer.h>
Definition at line 18 of file device_buffer.h.
◆ ~DeviceBuffer()
impeller::DeviceBuffer::~DeviceBuffer |
( |
| ) |
|
|
virtualdefault |
◆ DeviceBuffer()
◆ AsBufferView()
Create a buffer view of this entire buffer.
Definition at line 18 of file device_buffer.cc.
18 {
19 BufferView view;
20 view.buffer = std::move(
buffer);
21 view.range = {0u, view.buffer->desc_.size};
22 return view;
23}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ CopyHostBuffer()
bool impeller::DeviceBuffer::CopyHostBuffer |
( |
const uint8_t * |
source, |
|
|
Range |
source_range, |
|
|
size_t |
offset = 0u |
|
) |
| |
Definition at line 29 of file device_buffer.cc.
31 {
32 if (source_range.length == 0u) {
33
34 return true;
35 }
36
38
39 return false;
40 }
41
43
44 return false;
45 }
46
48
49 return false;
50 }
51
53}
virtual bool OnCopyHostBuffer(const uint8_t *source, Range source_range, size_t offset)=0
◆ Flush()
void impeller::DeviceBuffer::Flush |
( |
std::optional< Range > |
range = std::nullopt | ) |
const |
|
virtual |
Make any pending writes visible to the GPU.
This method must be called if the device pointer provided by [OnGetContents] is written to without using [CopyHostBuffer]. On Devices with coherent host memory, this method will not perform extra work.
If the range is not provided, the entire buffer is flushed.
Reimplemented in impeller::DeviceBufferGLES.
Definition at line 13 of file device_buffer.cc.
◆ GetDeviceBufferDescriptor()
◆ Invalidate()
void impeller::DeviceBuffer::Invalidate |
( |
std::optional< Range > |
range = std::nullopt | ) |
const |
|
virtual |
◆ OnCopyHostBuffer()
virtual bool impeller::DeviceBuffer::OnCopyHostBuffer |
( |
const uint8_t * |
source, |
|
|
Range |
source_range, |
|
|
size_t |
offset |
|
) |
| |
|
protectedpure virtual |
◆ OnGetContents()
virtual uint8_t * impeller::DeviceBuffer::OnGetContents |
( |
| ) |
const |
|
pure virtual |
◆ SetLabel() [1/2]
virtual bool impeller::DeviceBuffer::SetLabel |
( |
const std::string & |
label | ) |
|
|
pure virtual |
◆ SetLabel() [2/2]
virtual bool impeller::DeviceBuffer::SetLabel |
( |
const std::string & |
label, |
|
|
Range |
range |
|
) |
| |
|
pure virtual |
◆ desc_
The documentation for this class was generated from the following files: