JSPM

@antv/g-plugin-device-renderer

1.7.21
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 993
  • Score
    100M100P100Q119715F
  • License MIT

A G plugin of renderer implementation with GPUDevice

Package Exports

  • @antv/g-plugin-device-renderer
  • @antv/g-plugin-device-renderer/dist/index.esm.js
  • @antv/g-plugin-device-renderer/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@antv/g-plugin-device-renderer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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
    }
}