ash VS wgpu

Compare ash vs wgpu and see what are their differences.

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
ash wgpu
13 212
2,035 14,362
1.9% 2.3%
7.2 9.9
about 1 month ago 4 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.

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) }

wgpu

Posts with mentions or reviews of wgpu. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-25.
  • Ask HN: Resources for General Purpose GPU development on Apple's M* chips?
    7 projects | news.ycombinator.com | 25 Dec 2024
    People have already mentioned Metal, but if you want cross platform, https://github.com/gfx-rs/wgpu has a vulkan-like API and cross compiles to all the various GPU frameworks. I believe it uses https://github.com/KhronosGroup/MoltenVK to run on Macs. You can also see the metal shader transpilation results for debugging.
  • What's Next for WebGPU
    7 projects | news.ycombinator.com | 21 Nov 2024
    This is in reference to [1].

    [1] https://github.com/gfx-rs/wgpu/issues/6434

  • Repeatability: As Difficult as it is Important
    1 project | news.ycombinator.com | 4 Nov 2024
    > Did they actually write that somewhere?

    wgpu.rs for comments about "general purpose", "modern" is my own interjection, and [1] about the difference in priorities between the WGPU maintainers and (funnily enough) you.

    I do believe a cross-platform and modern interface is difficult to square with high performance. I don't think either side is wrong to choose the priorities it has, but someone will be underserved. They probably need far more manpower/talent than they have to improve performance proportionately.

    [1] https://github.com/gfx-rs/wgpu/discussions/5525

  • Pygfx
    10 projects | news.ycombinator.com | 25 Oct 2024
    Sorry, I'll try to be clearer. QRhi docs[1] say "The Qt Rendering Hardware Interface is an abstraction for hardware accelerated graphics APIs, such as, OpenGL, OpenGL ES, Direct3D, Metal, and Vulkan." And PySide6 includes a (python) wrapper for QRhi[2]. Meanwhile, pygfx builds on wgpu-py[3] which builds on wgpu[4] which is a "is a cross-platform, safe, pure-rust graphics API. It runs natively on Vulkan, Metal, D3D12, and OpenGL".

    So, from the standpoint of someone using PySide6, QRhi and pygfx seem to be alternative paths to the exact same underlying graphics APIs.

    Thus my question: How do they compare? How should I make an informed comparison between them?

    [1] https://doc.qt.io/qt-6/qrhi.html

    [2] https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QRhiWidget...

    [3] https://github.com/pygfx/wgpu-py/

    [4] https://github.com/gfx-rs/wgpu

  • Q3 dev update for Graphite, a Blender-inspired 2D procedural design Rust app
    6 projects | news.ycombinator.com | 15 Oct 2024
    Everything will be using compute shaders for the foreseeable future. [WGPU](https://wgpu.rs/) abstracts that to work with WebGPU on browsers, DirectX/Vulkan on Windows, Metal on Mac, and Vulkan on Linux and Android. There may be opportunities to explore vendor-specific options like CUDA in the far future to leverage a further increase in performance, but compute shaders are portable and nearly as good.
  • How to get started in Graphics Programming in 2024?
    1 project | news.ycombinator.com | 8 Oct 2024
  • A high-performance, zero-overhead, extensible Python compiler using LLVM
    6 projects | news.ycombinator.com | 18 Sep 2024
    Instead of building their GPU support atop CUDA/NVIDIA [0], I’m wondering why they didn’t instead go with WebGPU [1] via something like wgpu [2]. Using wgpu, they could offer cross-platform compatibility across several graphics API’s, covering a wide range of hardware including NVIDIA GeForce and Quadro, AMD Radeon, Intel Iris and Arc, ARM Mali, and Apple’s integrated GPU’s.

    They note the following [0]:

    > The GPU module is under active development. APIs and semantics might change between Codon releases.

    The thing is, based on the current syntax and semantics I see, it’ll almost certainly need to change to support non-NVIDIA devices, so I think it might be a better idea to just go with WebGPU compute pipelines sooner rather than later.

    Just my two pennies…

    [0]: https://docs.exaloop.io/codon/advanced/gpu

    [1]: https://www.w3.org/TR/webgpu

    [2]: https://wgpu.rs

  • SDL3 new GPU API merged
    25 projects | news.ycombinator.com | 29 Aug 2024
    wgpu supports WebGPU: https://github.com/gfx-rs/wgpu :

    > While WebGPU does not support any shading language other than WGSL, we will automatically convert your non-WGSL shaders if you're running on WebGPU.

  • First major release of gfx-rs/wgpu
    1 project | news.ycombinator.com | 18 Jul 2024
  • I learned Vulkan and wrote a small game engine with it (in 3 months)
    17 projects | news.ycombinator.com | 6 Jun 2024
    https://github.com/gfx-rs/wgpu?tab=readme-ov-file#tracking-t...

What are some alternatives?

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

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

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.

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

wgpu-rs - Rust bindings to wgpu native library

vulkano - Safe and rich Rust wrapper around the Vulkan API

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured

Did you know that Rust is
the 5th most popular programming language
based on number of references?