opt: readme

This commit is contained in:
Kingtous 2023-02-17 14:00:18 +08:00
parent 5f45a113dc
commit 0a97c09233
3 changed files with 16 additions and 3 deletions

View file

@ -7,8 +7,18 @@ A texture helper which brings a high level api to handle RGBA data. No frame cop
## Platform Support
The plugin aims to provide opengl impl for the texture, which bring a better performance instead of `FFI` + `CustomPainter`.
- [x] Linux
- [x] Windows (No gpu acceleration yet, copy required currently.)
- [x] Windows (No gpu acceleration yet due to the limitation of Flutter.)
```c++
// The available texture variants.
// Only PixelBufferTexture is currently implemented.
// Other variants are expected to be added in the future.
typedef std::variant<PixelBufferTexture, GpuSurfaceTexture> TextureVariant;
```
- [ ] MacOS (not implemented yet.)
## Getting Started