#include <device_buffer.h>
Definition at line 19 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}
static const uint8_t buffer[]
◆ AsTexture()
◆ CopyHostBuffer()
bool impeller::DeviceBuffer::CopyHostBuffer |
( |
const uint8_t * |
source, |
|
|
Range |
source_range, |
|
|
size_t |
offset = 0u |
|
) |
| |
Definition at line 44 of file device_buffer.cc.
46 {
47 if (source_range.length == 0u) {
48
49 return true;
50 }
51
53
54 return false;
55 }
56
58
59 return false;
60 }
61
63
64 return false;
65 }
66
68}
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 |
◆ 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: