@antv/g-plugin-device-renderer
v2.6.0
Published
A G plugin of renderer implementation with GPUDevice
Maintainers
Readme
@antv/g-plugin-device-renderer
/platformHAL 硬件适配层/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
}
}