 |
Flutter Impeller
|
|
Go to the documentation of this file.
20 view.
buffer = std::move(buffer);
32 if (source_range.
length == 0u) {
37 if (source ==
nullptr) {
static BufferView AsBufferView(std::shared_ptr< DeviceBuffer > buffer)
Create a buffer view of this entire buffer.
DeviceBuffer(DeviceBufferDescriptor desc)
bool CopyHostBuffer(const uint8_t *source, Range source_range, size_t offset=0u)
const DeviceBufferDescriptor & GetDeviceBufferDescriptor() const
virtual void Flush(std::optional< Range > range=std::nullopt) const
const DeviceBufferDescriptor desc_
std::shared_ptr< const DeviceBuffer > buffer
virtual bool OnCopyHostBuffer(const uint8_t *source, Range source_range, size_t offset)=0
virtual void Invalidate(std::optional< Range > range=std::nullopt) const