Loading Playground...
Welcome to Slang Playground. Here you can write, compile and run Slang shaders locally within your browser. The Slang compiler runs locally in your browser and no data is sent to any server.
You can compile shaders to many targets supported by Slang here, including SPIR-V, HLSL, GLSL, Metal, and WGSL. Generating DXIL requires DXC, which doesn't run in the browser so it's not supported here.
In addition to compiling shaders, this playground can also run simple shaders via WebGPU. The playground supports running two types of shaders: