Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[g-webgpu] 构建产物中需要包含 glsl_wgsl_compiler_bg.wasm #1369

Closed
xiaoiver opened this issue Jun 12, 2023 · 0 comments
Closed

[g-webgpu] 构建产物中需要包含 glsl_wgsl_compiler_bg.wasm #1369

xiaoiver opened this issue Jun 12, 2023 · 0 comments
Assignees

Comments

@xiaoiver
Copy link
Contributor

xiaoiver commented Jun 12, 2023

在运行时加载 WASM,用户可以自行部署:

import { Renderer as WebGPURenderer } from '@antv/g-webgpu';

const webgpuRenderer = new WebGPURenderer({
  shaderCompilerPath: '/glsl_wgsl_compiler_bg.wasm',
});

只需要拷贝 WASM 到 dist 目录即可。

@xiaoiver xiaoiver self-assigned this Jun 12, 2023
xiaoiver added a commit that referenced this issue Jun 14, 2023
* fix: WebGPU HAL & handle lost context #863 & #1362

* fix: wait for context lost promise

* fix: create renderer3d component in picking plugin #1094

* feat: add onContextLost callback to constructor options of WebGL & WebGPU renderer #1362

* fix: copy glsl_wgsl_compiler_bg.wasm to dist dir of g-webgpu #1369
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant