pixi-silk/webgpu
enableWebGPU: installs the WGSL shader for your own WebGPU Application.
import { enableWebGPU, isWebGPUEnabled } from 'pixi-silk/webgpu';
Functions#
| Function | Description |
|---|---|
| enableWebGPU | Lets SilkGraphics render with Pixi’s WebGPU renderer. It installs the WGSL version of the shader, which lives in this module so that WebGL2 apps never download it. |
| isWebGPUEnabled | Whether enableWebGPU has run, so new SilkGraphics carry a WebGPU program. |