From 0a97c09233ab1988f1baafa7132650b782e87db9 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Fri, 17 Feb 2023 14:00:18 +0800 Subject: [PATCH] opt: readme --- .github/workflows/pub.yaml | 2 +- CHANGELOG.md | 5 ++++- README.md | 12 +++++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pub.yaml b/.github/workflows/pub.yaml index 3f9de99..6f4aa87 100644 --- a/.github/workflows/pub.yaml +++ b/.github/workflows/pub.yaml @@ -7,6 +7,6 @@ on: jobs: publish: - uses: dart-lang/setup-dart/.github/workflows/publish.yml + uses: dart-lang/setup-dart/.github/workflows/publish.yml@main # with: # working-directory: path/to/package/within/repository \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b7adb01..11761e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.3 +* Initial pixel based rgba render for Windows. Note that we use the buffer directly without copy, which may have some memory corrupt. + ## 0.0.2 -* Initial Hardware accelerated rgba render. +* Initial Hardware accelerated rgba render for Linux. diff --git a/README.md b/README.md index 3b673a0..4594cf8 100644 --- a/README.md +++ b/README.md @@ -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 TextureVariant; +``` + - [ ] MacOS (not implemented yet.) ## Getting Started