Public Member Functions | |
FlushTestDeviceBuffer (const DeviceBufferDescriptor &desc) | |
bool | SetLabel (std::string_view label) override |
bool | SetLabel (std::string_view label, Range range) override |
bool | OnCopyHostBuffer (const uint8_t *source, Range source_range, size_t offset) |
uint8_t * | OnGetContents () const override |
void | Flush (std::optional< Range > range) const override |
bool | flush_called () const |
![]() | |
virtual | ~DeviceBuffer () |
bool | CopyHostBuffer (const uint8_t *source, Range source_range, size_t offset=0u) |
const DeviceBufferDescriptor & | GetDeviceBufferDescriptor () const |
virtual void | Invalidate (std::optional< Range > range=std::nullopt) const |
Additional Inherited Members | |
![]() | |
static BufferView | AsBufferView (std::shared_ptr< DeviceBuffer > buffer) |
Create a buffer view of this entire buffer. More... | |
![]() | |
DeviceBuffer (DeviceBufferDescriptor desc) | |
![]() | |
const DeviceBufferDescriptor | desc_ |
Definition at line 2586 of file entity_unittests.cc.
|
inlineexplicit |
Definition at line 2588 of file entity_unittests.cc.
|
inlineoverridevirtual |
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 from impeller::DeviceBuffer.
Definition at line 2603 of file entity_unittests.cc.
|
inline |
Definition at line 2607 of file entity_unittests.cc.
|
inlinevirtual |
Implements impeller::DeviceBuffer.
Definition at line 2593 of file entity_unittests.cc.
|
inlineoverridevirtual |
Implements impeller::DeviceBuffer.
Definition at line 2599 of file entity_unittests.cc.
|
inlineoverridevirtual |
Implements impeller::DeviceBuffer.
Definition at line 2591 of file entity_unittests.cc.
|
inlineoverridevirtual |
Implements impeller::DeviceBuffer.
Definition at line 2592 of file entity_unittests.cc.