# @antv/g-plugin-device-renderer

> A G plugin of renderer implementation with GPUDevice

Latest version **2.6.1** (published 2025-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @antv/g-plugin-device-renderer
pnpm add @antv/g-plugin-device-renderer
yarn add @antv/g-plugin-device-renderer
bun add @antv/g-plugin-device-renderer
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.6.1 |
| Published | 2025-12-24 |
| First published | 2022-05-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 3.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1215 |
| Author | https://github.com/orgs/antvis/people |
| Maintainers | lvisei, freestyle21, soundquiet, elaine.q.10, sturuby, sakuya223, serializedowen, xdzhao, yangzhanmei, wjgogogo, leungwensen, dori, iaaron, yard, simaq, dxq613, intchous, susan_ann, jinke.li, lzxue, army8735, atool, baizn, dengfuping, neoddish, jeffy2012, zqlu, afc163, pomelo-nwu, kopiluwaky, ccnuzindex, panyuqi, bubkoo, zengyue, kasmine, boyu.zlj, l1ud0ngq1, newbyvector, winniexing, chenluli, kn9117, xdddst, semious2020, esora, nadia_liu, bbsqq, mxz96102, openwayne, pearmini, pddpd, yiqianyao, zhanba, cxxxxxn, laixingui.lxg, susiwen8, yanxiong, zeyuwang, rainy25ghz, zhangjunjie-loki, flash1, yisi.wang, dreammy23, biupiubiupiu, basketduck, xuying1027, banxuan, bqxbqxbqx, alex_zjt, duxinyue023, wang1212, leondt1, gaofuhong |
| Keywords | antv, g |

## Links

- npm: https://www.npmjs.com/package/@antv/g-plugin-device-renderer
- Repository: https://github.com/antvis/g
- Homepage: https://github.com/antvis/g#readme
- Issues: https://github.com/antvis/g/issues
- npm.io page: https://npm.io/package/@antv/g-plugin-device-renderer

## Dependencies (11)

- [tslib](https://npm.io/package/tslib.md) ^2.5.3
- [earcut](https://npm.io/package/earcut.md) ^2.2.3
- [gl-matrix](https://npm.io/package/gl-matrix.md) ^3.4.3
- [@antv/util](https://npm.io/package/@antv/util.md) ^3.3.5
- [@antv/g-lite](https://npm.io/package/@antv/g-lite.md) 2.7.0
- [@antv/g-math](https://npm.io/package/@antv/g-math.md) 3.1.0
- [@webgpu/types](https://npm.io/package/@webgpu/types.md) ^0.1.6
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^5.0.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.25.6
- [@antv/g-device-api](https://npm.io/package/@antv/g-device-api.md) ^1.6.10
- [@antv/g-shader-components](https://npm.io/package/@antv/g-shader-components.md) 2.0.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 2.6.1 (latest) — 2025-12-24
- 2.3.4-beta.0 (beta) — 2025-12-15
- 2.0.18-alpha.0 (alpha) — 2024-10-21
- 2.0.17 (next) — 2024-09-29
- 2.6.0 — 2025-12-22
- 2.5.1 — 2025-12-12
- 2.5.0 — 2025-12-10
- 2.4.1 — 2025-10-13
- 2.4.0 — 2025-10-13
- 2.3.3 — 2025-07-30
- 2.3.2 — 2025-07-18
- 2.3.0 — 2025-06-27
- 2.2.23 — 2025-05-30
- 2.2.22 — 2025-05-09
- 2.2.21 — 2025-04-14
- … 205 more at https://npm.io/package/@antv/g-plugin-device-renderer/versions

## README

# @antv/g-plugin-device-renderer

- `/platform` HAL 硬件适配层
- `/render` 实现 FrameGraph
- `/geometries` 提供基础几何定义
- `/materials` 提供基础材质
- `/meshes` 提供内置 2D 图形所需 Mesh

## 扩展点

### DeviceContribution

```js
import { DeviceContribution } from '@antv/g-plugin-device-renderer';

@singleton({
    token: DeviceContribution,
})
export class WebGLDeviceContribution implements DeviceContribution {
    async createSwapChain($canvas: HTMLCanvasElement) {
        // 创建基于 WebGL 的 Device
    }
}
```

---
_Source: https://npm.io/package/@antv/g-plugin-device-renderer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
