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.24.0
    • Downloads:
      166,261,164
    • Recent downloads:
      27,922,572
    • License:
      Zlib OR Apache-2.0 OR MIT
    • Stars:
      929
    • Last activity:
      2025-11-18
  • crevice

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

    • Latest version:
      0.18.0
    • Downloads:
      179,172
    • Recent downloads:
      25,663
    • License:
      MIT OR Apache-2.0
    • Stars:
      76
    • Last activity:
      2025-02-20
  • cubecl

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

    • Latest version:
      0.8.1
    • Downloads:
      268,029
    • Recent downloads:
      96,414
    • License:
      MIT OR Apache-2.0
    • Stars:
      1,818
    • Last activity:
      2025-12-06
  • dsa-lib

    A Shader generation tool from TOML to GLSL written in Rust

    • Latest version:
      0.1.8
    • Downloads:
      11,282
    • Recent downloads:
      536
    • 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.12.0
    • Downloads:
      3,878,254
    • Recent downloads:
      778,440
    • License:
      MIT-0
    • Stars:
      188
    • Last activity:
      2025-09-12
  • 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:
      3,283,012
    • Recent downloads:
      391,369
    • License:
      MIT
    • Stars:
      60
    • Last activity:
      2025-11-24
  • 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:
      10,390
    • Recent downloads:
      304
    • 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:
      26,845
    • Recent downloads:
      2,711
    • 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:
      174,520
    • Recent downloads:
      53,958
    • License:
      MIT
    • Stars:
      1
    • Last activity:
      2024-12-16
  • naga

    Shader translator and validator. Part of the wgpu project

    • Latest version:
      27.0.3
    • Downloads:
      14,791,619
    • Recent downloads:
      3,094,919
    • License:
      MIT OR Apache-2.0
    • Stars:
      15,762
    • Last activity:
      2025-12-08
  • rust-gpu

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

    • License:
      Apache License 2.0
    • Stars:
      2,635
    • Last activity:
      2025-12-05
  • shader-reflect

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

    • Latest version:
      0.2.9
    • Downloads:
      9,626
    • Recent downloads:
      506
    • License:
      MIT OR Apache-2.0
    • Stars:
      111
    • Last activity:
      2024-11-28
  • shaderc

    Rust bindings for shaderc

    • Latest version:
      0.10.1
    • Downloads:
      1,244,045
    • Recent downloads:
      111,184
    • License:
      Apache-2.0
    • Stars:
      282
    • Last activity:
      2025-09-06
  • spirq

    Light weight SPIR-V query utility for graphics.

    • Latest version:
      1.2.2
    • Downloads:
      84,265
    • Recent downloads:
      6,862
    • 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:
      429,137
    • Recent downloads:
      24,398
    • License:
      MIT/Apache-2.0
    • Stars:
      110
    • 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.