mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
![]() WebGPU is a Render Hardware Interface built on top of the various APIs provided by the driver/OS depending on your platform. WebGPU exposes an API for performing operations, such as rendering and computation, on a Graphics Processing Unit. WebGPU official documentation: https://www.w3.org/TR/webgpu/ The new engine type introduced: tvg::CanvasEngine::Wg The new canvas type introduced: tvg::WgCanvas Example: $meson setup build -Dengines=wg_beta ` // init engine webgpu tvg::Initializer::init(tvg::CanvasEngine::Wg, 0); // create wg canvas auto canvasWg = tvg::WgCanvas::gen(); canvas_wg->target(glfwGetWin32Window(window), width, height); // ... // terminate engine and window tvg::Initializer::term(tvg::CanvasEngine::Wg); ` Still this feature is under the beta Issue: https://github.com/thorvg/thorvg/issues/1479 |
||
---|---|---|
.. | ||
meson.build | ||
thorvg.h |