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.22.0
    • Downloads:
      90,549,493
    • Recent downloads:
      15,622,470
    • License:
      Zlib OR Apache-2.0 OR MIT
    • Stars:
      795
    • Last activity:
      2025-03-03
  • crevice

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

    • Latest version:
      0.18.0
    • Downloads:
      112,253
    • Recent downloads:
      17,911
    • License:
      MIT OR Apache-2.0
    • Stars:
      75
    • Last activity:
      2025-02-20
  • cubecl

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

    • Latest version:
      0.4.0
    • Downloads:
      31,209
    • Recent downloads:
      22,251
    • License:
      MIT OR Apache-2.0
    • Stars:
      882
    • Last activity:
      2025-03-07
  • dsa-lib

    A Shader generation tool from TOML to GLSL written in Rust

    • Latest version:
      0.1.8
    • Downloads:
      7,870
    • Recent downloads:
      1,482
    • License:
      MIT/Apache-2.0
    • Stars:
      3
    • 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.10.0
    • Downloads:
      2,244,233
    • Recent downloads:
      294,844
    • License:
      MIT-0
    • Stars:
      165
    • Last activity:
      2024-11-17
  • 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.11.0
    • Downloads:
      2,435,340
    • Recent downloads:
      250,775
    • License:
      MIT
    • Stars:
      57
    • Last activity:
      2025-03-03
  • 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:
      8,421
    • Recent downloads:
      835
    • License:
      MIT/Apache-2.0
    • Stars:
      8
    • 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:
      16,023
    • Recent downloads:
      2,440
    • 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:
      33,439
    • Recent downloads:
      30,922
    • License:
      MIT
    • Stars:
      1
    • Last activity:
      2024-12-16
  • naga

    Shader translator and validator. Part of the wgpu project

    • Latest version:
      24.0.0
    • Downloads:
      7,709,511
    • Recent downloads:
      1,211,107
    • License:
      MIT OR Apache-2.0
  • rust-gpu

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

    • License:
      Apache License 2.0
    • Stars:
      1,403
    • Last activity:
      2025-02-11
  • shader-reflect

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

    • Latest version:
      0.2.9
    • Downloads:
      6,824
    • Recent downloads:
      1,423
    • License:
      MIT OR Apache-2.0
    • Stars:
      113
    • Last activity:
      2024-11-28
  • shaderc

    Rust bindings for shaderc

    • Latest version:
      0.8.3
    • Downloads:
      919,672
    • Recent downloads:
      92,490
    • License:
      Apache-2.0
    • Stars:
      265
    • Last activity:
      2025-03-10
  • spirq

    Light weight SPIR-V query utility for graphics.

    • Latest version:
      1.2.2
    • Downloads:
      57,400
    • Recent downloads:
      10,735
    • License:
      MIT OR Apache-2.0
    • Stars:
      113
    • 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:
      380,919
    • Recent downloads:
      11,590
    • 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.