skia2/experimental
Arman Uguray 7bc9970941 [experimental] Add runtime effects to WebGPU demo
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>
2022-04-29 21:42:06 +00:00
..
bazel_test [bazel] Add shims to help translation into G3 2022-04-29 19:27:54 +00:00
c-api-example Fix C API example, ensure the C API example is built in CI 2020-12-15 16:38:42 +00:00
docs runs some sample animations side by side in canvas and svg 2015-11-16 13:36:08 -08:00
documentation Update references to master branch 2021-05-21 15:18:16 +00:00
ffmpeg [bazel] Add shims to help translation into G3 2022-04-29 19:27:54 +00:00
lowp-basic add constrained_add 2021-11-01 17:30:16 +00:00
minimal_ios_mtl_skia_app [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
sktext Free FontChains after test completes 2022-03-30 21:02:55 +00:00
sorttoy Move all Ganesh source files into ganesh subdirectory. 2022-04-07 21:06:50 +00:00
tools Add sleep option to web_to_(skp|mskp) shell scripts. 2020-06-19 19:06:29 +00:00
tskit [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
wasm-hello-world [bazel] Add shims to help translation into G3 2022-04-29 19:27:54 +00:00
webgpu-bazel [experimental] Add runtime effects to WebGPU demo 2022-04-29 21:42:06 +00:00