Skip to content
pixi-silk
GitHub repository
Entry point

pixi-silk/webgpu

enableWebGPU: installs the WGSL shader for your own WebGPU Application.

import { enableWebGPU, isWebGPUEnabled } from 'pixi-silk/webgpu';

Functions#

FunctionDescription
enableWebGPULets 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.
isWebGPUEnabledWhether enableWebGPU has run, so new SilkGraphics carry a WebGPU program.