7bc9970941
Added a radial gradient and a RuntimeEffect to the WebGPU demo. Both of these exercise shader creation and staging buffer allocation. Also refactored the C++ code to reuse a GrDirectContext which highly improves the per-frame performance when using runtime effects. However this unfortunately triggers skbug.com/13266 so a work-around has been provided in which the context can conditionally get re-created every frame, as before. Bug: skia:12512 Change-Id: Ic3e71679bf449bd8557577f74001f18e300e952a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/534756 Reviewed-by: Kevin Lubick <kjlubick@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Arman Uguray <armansito@google.com> |
||
---|---|---|
.. | ||
example | ||
src | ||
.gitignore | ||
Makefile |