#include <device_buffer.h>
Definition at line 19 of file device_buffer.h.
◆ ~DeviceBuffer()
impeller::DeviceBuffer::~DeviceBuffer |
( |
| ) |
|
|
virtualdefault |
◆ DeviceBuffer()
◆ AsBufferView()
◆ AsTexture()
◆ CopyHostBuffer()
bool impeller::DeviceBuffer::CopyHostBuffer |
( |
const uint8_t * |
source, |
|
|
Range |
source_range, |
|
|
size_t |
offset = 0u |
|
) |
| |
◆ 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: