Godot Slang

Slang compute shaders in Godot, loaded and bound like GDShader

Image 1 of 2: A scene of primitives in front of a panel lit by a glowing ring rendered by a Slang shader

A GDExtension in C++ that imports .slang files as compute shaders with reflection, binds parameters through a GDShader-like API, auto-binds common textures, time and globals, exposes parameters in the editor, and runs Slang effects in Godot's compositor; most GLSL and HLSL shaders load too.

Trade-offs

  • Parameters bind through a GDShader-like API, and common textures, time and globals are bound automatically, to cut the usual compute-shader boilerplate.
  • A Slang compute file can hold several entry points, each imported as its own program, unlike Godot's .glsl compute shaders.
  • A shader task reloads itself when its compute shader changes, so edits show without a restart.

Q&A3

SlangShaderEffect turns a Slang compute shader into a CompositorEffect, often running with no code at all.

Reviews

Loading reviews

    More in Godot

    See all 5 →
    • Rigby2DOpen-source 2D skeletal animation editor for games and film
    • GodotMakerAgent workflow that turns a game idea into a tested Godot project
    • CSG_BlockoutLevel blockout in Godot with native CSG nodes, from drawn rooms to playtest
    • godotdev.nvimNeovim as an external editor for Godot 4: LSP, DAP, docs and scene trees
    • Godot MCP EnhancedMCP server that lets AI read, write, run and verify Godot projects

    More in Graphics

    See all 13 →
    • MuTracerPhysically based path tracer for the web on WebGPU, with a WebGL 2 fallback
    • Procedural TerrainsGPU-driven terrain studio for the browser: boards, endless worlds, planets
    • WhimTexA sprite and texture editor inside Unity, with layers that stay editable
    • TequilaProduct renderer for CAD models with the final image live in the viewport
    • SculptForgeOpen-source digital sculpting app for Linux, macOS and Windows
    • NerthusA node-based terrain generator in Rust that opens and saves Gaea 2 projects

    More in GPU

    See all 23 →
    • jobdGPU-aware job broker for a few personal machines, with an MCP server
    • PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs
    • GlydLossless compression that keeps bf16 weights and KV cache smaller on the GPU
    • gnss_gpuGPU GNSS positioning for urban canyons with particle filters and ray-traced NLOS
    • impLLM inference server built only for NVIDIA Blackwell GPUs
    • AlzeoOne-command installer that turns a DGX Spark or GB10 box into an AI server