Skip to content
pixi-silk
GitHub repository
Docs

Reference

The API reference, renderers, resolution, performance and the glossary.

View as Markdown

Look things up here once you know what you need. The API reference lists every export with its JSDoc.

Also here

How the shader draws a pixel, how pixi-silk compares with other anti-aliasing and how layout computes.

Questions

Does pixi-silk work with WebGPU?

Yes. Pass preference: 'webgpu' to createSilkApp, or call enableWebGPU() from pixi-silk/webgpu before the first SilkGraphics in your own Pixi app. WebGL2 is the default and the fallback.

How do I draw many SilkGraphics in one draw call?

Call enableSilkBatching() before you create the objects. It is off by default and works on WebGL2 and WebGPU. Without it, each SilkGraphics is one instanced draw call.

Why is my PixiJS canvas blurry on retina or high-DPI screens?

The canvas backing store does not match the device pixels, or a filter renders at resolution 1. createSilkApp sizes the canvas from devicePixelContentBoxSize and makes filters inherit the screen resolution.

Does pixi-silk need antialias: true?

No. Coverage is computed per pixel, so create the app with antialias: false, as createSilkApp does. MSAA would only cost memory bandwidth.

All questions