learn-wgpu VS glium

Compare learn-wgpu vs glium and see what are their differences.


Guide for using gfx-rs's wgpu library. (by sotrh)


Safe OpenGL wrapper for the Rust language. (by glium)
Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
learn-wgpu glium
48 14
1,031 3,109
- 1.4%
8.5 6.7
12 days ago 5 days ago
Rust Rust
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of learn-wgpu. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-10.
  • What is the "P5.js" for Rust?
    11 projects | reddit.com/r/rust | 10 Dec 2022
    the "p5.js" of rust is definetelly nannou. but i wouldn't recommend it for something that is graphics heavy, nannou is great for visualizations, effects, animations and stuff, but for proper 3d rendering and stuff you should go to wgpu (which has a great walkthrough: https://sotrh.github.io/learn-wgpu/), or some opengl binding which there are many of: https://crates.io/keywords/opengl
  • If you're using Metal you're literally a terrorist [shitpost/rant]
    3 projects | reddit.com/r/GraphicsProgramming | 23 Nov 2022
    And here's the tutorial: https://sotrh.github.io/learn-wgpu/
  • Render Pipelines in wgpu and Rust
    5 projects | dev.to | 18 Nov 2022
    baryon is a lightweight toy renderer for prototyping 3D applications in Rust. It uses wgpu to render 3D elements, hecs for an ECS system (to make a scene with “entities” like 3D models), and winit for handling cross-platform window management (just like the wgpu tutorial). It also allows for setting different “render passes”, like a Phong (”cartoony”/fast) vs PBR (”realistic”) pass.
  • A web enabled interactive fractal explorer written in rust!
    5 projects | reddit.com/r/rust | 17 Oct 2022
    I creted this project while learning from this awesome tutorial which I highly recommend. I also took inspiration for the minimal web ui from this repository.
  • Primitive Geometry in wgpu and Rust
    6 projects | dev.to | 14 Oct 2022
    ⚠️ This tutorial assumes you’ve followed and completed the “Learn wgpu” tutorial. You could also use my repo here as a starting point - but it will require Rust and Trunk setup in your local dev environment. You can also checkout the final code here for reference.
  • Where to start to develop a game engine?
    7 projects | reddit.com/r/rust_gamedev | 11 Oct 2022
    If you do know Rust and know what to pick from, but want to be at bleeding edge and have the best Rust centric graphics libraries can offer, try wgpu which is an implementation of WebGPU. There's a tutorial on how to get started too.
  • Questions about resizing: 1) How to keep aspect ratio, 2) How to allow resizing as wasm/on web?
    2 projects | reddit.com/r/wgpu | 4 Sep 2022
    Hello! So far am I following this guide for WGPU/Rust: sotrh/learn-wgpu. I made it to the depth buffer before I wanted to use what I had learned to make my own project. It has been going pretty well, with no major hiccups, however, I am having issues with resizing.
  • Best resources to learn graphics programming?
    2 projects | reddit.com/r/learnprogramming | 30 Aug 2022
    I started learning Rust a while back and recently got interested into graphics programming. I found this library called wgpu. It seemed what I was looking for so I looked up some tutorials and this one seems to be the only one that exists.
  • 3D graphics library
    10 projects | reddit.com/r/golang | 28 Aug 2022
    If you decide to go with it and want to learn it I would recommend you to refer https://sotrh.github.io/learn-wgpu/ and refer to Go code for the tutorials here https://github.com/rajveermalviya/go-webgpu-examples/tree/main/learn-wgpu/beginner (WIP, I am in the process of making complete doc)
  • GPU to good use
    3 projects | reddit.com/r/rust | 21 Aug 2022
    There's also https://sotrh.github.io/learn-wgpu/, but that focusses more on the graphics part of wgpu.


Posts with mentions or reviews of glium. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-25.
  • [Media] Visualizing scientific data in rust
    3 projects | reddit.com/r/rust | 25 Sep 2022
    Hi rustaceans! I glued this prototype together with vtkio and glium. There are more features that are unsupported than supported at this point, but the code is here if you want to check it out: https://github.com/JeffIrwin/skillet
  • should i learn glium?
    3 projects | reddit.com/r/rust | 12 Jun 2022
    Should i learn glium (https://crates.io/crates/glium)? i have some experience in opengl (C++) and i would like to use the opengl functionality in the Rust ecosystem.
  • How to abstract OpenGL for future use?
    4 projects | reddit.com/r/opengl | 8 Feb 2022
    I can recommend https://github.com/glium/glium as a good, safe abstraction. There was a time when I wanted to learn shaders and write complex pipelines with several stages, this library allowed me to learn about the important objects and their responsibilities without having to program the very verbose chunks of code to initialize. I learned the following:
  • Where to find resources to learn OpenGL with Rust ?
    6 projects | reddit.com/r/rust | 19 Jan 2022
    Glium is a Rust-y OpenGL wrapper, and its repository contains a discussion that should give you an idea whether this is what you want to use, as well as some tutorial.
  • Drew a torus in the browser using Rust + WASM
    5 projects | reddit.com/r/rust | 26 Dec 2021
    If you don't know C++, don't let that deter you because if you can read Rust, you can read the C++ the author writes in the book. To interact with OpenGL I used glium; translating the C++ code to Rust/glium can be tricky though. The Rust equivalent to the linear algebra library the author uses (GLM) is nalgebra_glm.
  • How to render text with rust?
    11 projects | reddit.com/r/rust | 31 Oct 2021
    Glium and ash provide low level access to different common graphics api's. I'm sure there's a good directx-11/12 bindings as well but I'm unfamiliar with what people use.
  • Issues with glium
    2 projects | reddit.com/r/rust | 24 Sep 2021
    I was following the glium tutorials and I thought that I could play around with the code and move most of the logic over into a struct similar to what is done in this wgpu tutorial. However when I try to do that I get an issue saying that a move occurred because my struct didn't implement the copy trait, although neither did the tutorial on wgpu, so I am a bit confused as to why it works in the wgpu code and not in my code.
  • Any recommended resources for beginning graphics with Rust
    2 projects | reddit.com/r/rust | 22 Jul 2021
    glium: https://github.com/glium/glium/tree/master/book wgpu: https://sotrh.github.io/learn-wgpu/
  • I want to change my point of view by key input in glium.
    3 projects | reddit.com/r/rust | 11 Jul 2021
    A good place to start learning how it all works are glium tutorials which you can find on their Github: https://github.com/glium/glium
  • Shaders and Uniforms in pure SDL2?
    3 projects | reddit.com/r/rust_gamedev | 4 Jul 2021

What are some alternatives?

When comparing learn-wgpu and glium you can also consider the following projects:

glow - GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code

gfx - [maintenance mode] A low-overhead Vulkan-like GPU API for Rust.

glutin - A low-level library for OpenGL context creation, written in pure Rust.

ash - Vulkan bindings for Rust

wgpu - Safe and portable GPU abstraction in Rust, implementing WebGPU API.

winit - Window handling library in pure Rust

SDL - Simple Directmedia Layer

wgsl-mode - Emacs syntax highlighting for the WebGPU Shading Language (WGSL)

kiss3d - Keep it simple, stupid 3d graphics engine for Rust.

egui - egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native

luminance-rs - Type-safe, type-level and stateless Rust graphics framework

bevy - A refreshingly simple data-driven game engine built in Rust