glium VS ash

Compare glium vs ash and see what are their differences.

ash

Vulkan bindings for Rust (by ash-rs)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
glium ash
17 13
3,388 1,695
0.4% 1.7%
8.0 8.5
about 1 month ago 7 days ago
Rust Rust
Apache License 2.0 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.

glium

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 2023-03-23.
  • I don't understand how dependencies work
    1 project | /r/rust | 15 Nov 2023
    I am trying to follow to this tutorial on glium and I can't even get a window to show up because of what I assume to be a lack of comprehension on my end about how dependencies work.
  • Cargo build feature issue: Building winit problem, says no features specified
    2 projects | /r/rust | 23 Mar 2023
    Which is blocked, waiting for glium to update: https://github.com/glium/glium/pull/2036
  • OpenGL crates: gl vs glow vs glium
    3 projects | /r/rust | 22 Mar 2023
    https://crates.io/crates/glium (8 months ago - 925 kB)
  • Questions about Glium framework
    1 project | /r/rust | 29 Nov 2022
    The book is a great place to look at https://github.com/glium/glium/tree/master/book And glium itself is a bit outdated might be good to look at alternatives like glow
  • [Media] Visualizing scientific data in rust
    3 projects | /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
  • [GLIUM] - how to pass structs as uniforms to shaders
    1 project | /r/rust | 9 Jul 2022
    https://github.com/glium/glium/issues/941 is the relevant Glium bug/feature request. Long story short, structs as uniforms aren't supported by Glium's current design, it looks like.
  • should i learn glium?
    3 projects | /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 | /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 | /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.
  • Workaround for counter that goes out of scope
    1 project | /r/learnrust | 19 Jan 2022
    With a gluim window open, I want to count the number of user clicks and retain the number after the window is closed. In order to keep the program running after the window is closed, I had to change event_loop.run to event_loop.run_return and I think that means all variables will be moved into the closure and my counter goes out of scope.

ash

Posts with mentions or reviews of ash. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-02.
  • Going beyond build.rs: introducing cargo-px
    2 projects | /r/rust | 2 May 2023
    If you want to automate the creation of certain code that will be nested under the src directory, and committed into source control, there are a variety of ways to do that. One option is to create a sub-crate in your project that does the code-gen and you can run it as needed. The ash project is an example of this.
  • Hey Rustaceans! Got a question? Ask here (16/2023)!
    15 projects | /r/rust | 17 Apr 2023
    There is also [Vulkano](https://github.com/vulkano-rs/vulkano). It has a safe high level api and lower level layers, all the way down to [ash](https://github.com/ash-rs/ash) which is more or less raw vulkan. It's more explicit and verbose than [wgpu](https://github.com/gfx-rs/wgpu) though, so maybe try wgpu first and see how you like it.
  • A new picture of my ray tracing voxel engine (Vulkan/RTX/Rust)
    1 project | /r/VoxelGameDev | 30 Mar 2023
    Yes. I use Ash bindings for Vulkan and raw GLSL for shaders. I tried to use spirv-std for shaders—it was really great to have the benefits of Rust (structs, enums, strict type assertions, etc.)—until I needed to use buffer references. Unfortunaly, it is not yet implemented.
  • go-vk - A new Go language binding for Vulkan
    5 projects | /r/vulkan | 6 Mar 2023
    This is great, of all the vulkan go bindings I have been waiting for one that uses vk.xml to generate the bindings, because it's the only viable way to keep the bindings up-to-date. (fyi the popular [ash-rs](https://github.com/ash-rs/ash) is created the same-way).
  • undefined symbol: wlEglCreateSurfaceExport
    1 project | /r/pop_os | 30 Oct 2022
    Hi, I am having an issue on pop-os wayland where when I run a vulkan application I get an error symbol lookup error: /lib/x86_64-linux-gnu/libnvidia-vulkan-producer.so: undefined symbol: wlEglCreateSurfaceExport I have tested this with https://github.com/ash-rs/ash running the triangle example.
  • State of GPGPU in 2022
    12 projects | /r/rust | 27 Apr 2022
    Nice and simple. Its quite portable too. But simplicity and ease of use come with some limitations. Ash is much more complex but can extract every bit of power from your card if needed. Wgpu-rs github comes with many examples and you can find a really nice tutorial here
  • I made a video with every single debug render on a pathtracer I'm programming in Rust
    5 projects | /r/programming | 30 Nov 2021
    low level vulkan bindings
  • How to render text with rust?
    11 projects | /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.
  • https://np.reddit.com/r/rust/comments/pgruh2/most_efficient_way_to_write_and_read_large/hbfavpa/
    1 project | /r/backtickbot | 3 Sep 2021
    fn read_uncompressed_buffer( reader: &mut R, length: usize, // estimated via a seek or other mechanism file_is_little_endian: bool, ) -> Result> { let bytes = length * std::mem::size_of::(); // it is undefined behavior to call read_exact on un-initialized, https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read // see also https://github.com/MaikKlein/ash/issues/354#issue-781730580 let mut buffer = vec![0u64, length]; unsafe { // transmute u64 to bytes. let slice = std::slice::from_raw_parts_mut( buffer.as_mut_ptr() as *mut u8, length * std::mem::size_of::(), ); reader.read_exact(slice)?; } if is_native_little_endian() != file_is_little_endian { swap(&mut buffer, file_is_little_endian) } }
  • Most efficient way to write and read large amounts of u64s?
    1 project | /r/rust | 3 Sep 2021
    // it is undefined behavior to call read_exact on un-initialized, https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read // see also https://github.com/MaikKlein/ash/issues/354#issue-781730580 let mut buffer = vec![0u64, length]; unsafe { // transmute u64 to bytes. let slice = std::slice::from_raw_parts_mut( buffer.as_mut_ptr() as *mut u8, length * std::mem::size_of::(), ); reader.read_exact(slice)?; } if is_native_little_endian() != file_is_little_endian { swap(&mut buffer, file_is_little_endian) }

What are some alternatives?

When comparing glium and ash you can also consider the following projects:

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

learn-wgpu - Guide for using gfx-rs's wgpu library.

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

wgpu-rs - Rust bindings to wgpu native library

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

vulkan-tutorial-rust - Following the vulkan tutorial(https://vulkan-tutorial.com/) using the Rust programming language.

wgpu - Cross-platform, safe, pure-rust graphics api.

rust-gpu-compute-example - Minimal example of using rust-gpu and wgpu to dispatch compute shaders written in rust.

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

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

vulkanalia - Vulkan bindings for Rust.