@antv/g-plugin-device-renderer
A G plugin of renderer implementation with GPUDevice
Last updated 3 years ago by panyuqi .
MIT · Repository · Bugs · Original npm
$ cnpm install @antv/g-plugin-device-renderer 
SYNC missed versions from official npm registry.

@antv/g-plugin-device-renderer

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

扩展点

DeviceContribution

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

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

Current Tags

  • 1.7.44                                ...           latest (3 years ago)

3 Versions

  • 1.7.44                                ...           3 years ago
  • 1.1.8-alpha.1                                ...           3 years ago
  • 1.7.11                                ...           3 years ago

Copyright 2013 - present © cnpmjs.org