Are we game yet?

Shaders

Languages and tools for writing, compiling, and using shaders.

Crates

  • bytemuck

    A crate for mucking around with piles of bytes.

    • Latest version:
      1.23.2
    • Downloads:
      133,014,931
    • Recent downloads:
      22,878,723
    • License:
      Zlib OR Apache-2.0 OR MIT
    • Stars:
      887
    • Last activity:
      2025-08-24
  • crevice

    Create GLSL-compatible versions of structs with explicitly-initialized padding

    • Latest version:
      0.18.0
    • Downloads:
      144,216
    • Recent downloads:
      17,424
    • License:
      MIT OR Apache-2.0
    • Stars:
      73
    • Last activity:
      2025-02-20
  • cubecl

    Multi-platform high-performance compute language extension for Rust.

    • Latest version:
      0.6.0
    • Downloads:
      140,705
    • Recent downloads:
      68,252
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,643
    • Last activity:
      2025-08-22
  • dsa-lib

    A Shader generation tool from TOML to GLSL written in Rust

    • Latest version:
      0.1.8
    • Downloads:
      10,567
    • Recent downloads:
      1,248
    • License:
      MIT/Apache-2.0
    • Stars:
      2
    • Last activity:
      2022-07-03
  • encase

    Provides a mechanism to lay out data into GPU buffers ensuring WGSL's memory layout requirements are met

    • Latest version:
      0.11.1
    • Downloads:
      2,948,684
    • Recent downloads:
      423,801
    • License:
      MIT-0
    • Stars:
      181
    • Last activity:
      2025-06-23
  • hassle-rs

    HLSL compiler library, this crate provides an FFI layer and idiomatic rust wrappers for the new DXC HLSL compiler and validator.

    • Latest version:
      0.12.0
    • Downloads:
      2,825,106
    • Recent downloads:
      212,960
    • License:
      MIT
    • Stars:
      61
    • Last activity:
      2025-08-19
  • include-merkle

    Functionality for generating a Merkle-tree of a given text file with include references, replacing includes paths with a deterministic versioned identity, and also functionality for flattening include directives into a single file. The primary motivation is compiling shaders for various graphics APIs, but the the functionality can apply to a variety of source code parsing use cases.

    • Latest version:
      0.1.4
    • Downloads:
      9,982
    • Recent downloads:
      752
    • License:
      MIT/Apache-2.0
    • Stars:
      7
    • Last activity:
      2022-04-12
  • inline-spirv

    Compile GLSL/HLSL/WGSL and inline SPIR-V right inside your crate.

    • Latest version:
      0.2.1
    • Downloads:
      23,285
    • Recent downloads:
      5,121
    • License:
      MIT OR Apache-2.0
    • Stars:
      34
    • Last activity:
      2024-08-02
  • mach-dxcompiler-rs

    Prebuilt, statically-linked DXC.

    • Latest version:
      0.1.4+2024.11.22-df583a3.1
    • Downloads:
      113,867
    • Recent downloads:
      49,732
    • License:
      MIT
    • Stars:
      1
    • Last activity:
      2024-12-16
  • naga

    Shader translator and validator. Part of the wgpu project

    • Latest version:
      26.0.0
    • Downloads:
      11,031,362
    • Recent downloads:
      1,873,430
    • License:
      MIT OR Apache-2.0
    • Stars:
      14,957
    • Last activity:
      2025-08-24
  • rust-gpu

    🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧

    • License:
      Apache License 2.0
    • Stars:
      2,292
    • Last activity:
      2025-08-18
  • shader-reflect

    SPIR-V/GLSL/HLSL shader interface reflection to JSON. (CLI)

    • Latest version:
      0.2.9
    • Downloads:
      8,933
    • Recent downloads:
      995
    • License:
      MIT OR Apache-2.0
    • Stars:
      111
    • Last activity:
      2024-11-28
  • shaderc

    Rust bindings for shaderc

    • Latest version:
      0.9.1
    • Downloads:
      1,106,354
    • Recent downloads:
      99,783
    • License:
      Apache-2.0
    • Stars:
      276
    • Last activity:
      2025-07-13
  • spirq

    Light weight SPIR-V query utility for graphics.

    • Latest version:
      1.2.2
    • Downloads:
      75,522
    • Recent downloads:
      10,310
    • License:
      MIT OR Apache-2.0
    • Stars:
      111
    • Last activity:
      2024-11-28
  • spirv-reflect

    Reflection API in rust for SPIR-V shader byte code, intended for Vulkan applications.

    • Latest version:
      0.2.3
    • Downloads:
      401,359
    • Recent downloads:
      11,521
    • License:
      MIT/Apache-2.0
    • Stars:
      109
    • Last activity:
      2025-01-08

Contribute

Do you know about a missing crate? Did you launch a new crate?

Please create a pull request or an issue on our GitHub!

Looking for a crate you can't find here? Try asking on the chat.