Compute Shaders | Babylon.js Documentation
The examples work in the playground. I wanted to get a ComputerShader running on my local from a test.html file.
Use WebGPU to watch this demo which requires compute shaders support. To enable WebGPU please use Edge Canary or Chrome canary. Also, select the WebGPU engine from the top right drop down menu.
What do I have to change?
let engine = new BABYLON.Engine(canvas, true, {
preserveDrawingBuffer: true,
stencil: true
});
let scene = createScene();
engine.runRenderLoop(function () {
if (scene) {
scene.render();
}
});