 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_H_
6 #define FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_H_
26 virtual bool SetLabel(
const std::string& label) = 0;
28 virtual bool SetLabel(
const std::string& label,
Range range) = 0;
44 virtual void Flush(std::optional<Range> range = std::nullopt)
const;
46 virtual void Invalidate(std::optional<Range> range = std::nullopt)
const;
65 #endif // FLUTTER_IMPELLER_CORE_DEVICE_BUFFER_H_
static BufferView AsBufferView(std::shared_ptr< DeviceBuffer > buffer)
Create a buffer view of this entire buffer.
virtual uint8_t * OnGetContents() const =0
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
virtual bool SetLabel(const std::string &label)=0
const DeviceBufferDescriptor desc_
virtual bool OnCopyHostBuffer(const uint8_t *source, Range source_range, size_t offset)=0
virtual void Invalidate(std::optional< Range > range=std::nullopt) const