metal-cpp VS wgpu

Compare metal-cpp vs wgpu and see what are their differences.

metal-cpp

Metal-cpp is a low-overhead C++ interface for Metal that helps developers add Metal functionality to graphics apps, games, and game engines that are written in C++. (by bkaradzic)
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
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
metal-cpp wgpu
16 212
317 14,497
2.5% 1.8%
3.3 9.9
7 months ago 6 days ago
C++ 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.

metal-cpp

Posts with mentions or reviews of metal-cpp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-05.

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 metal-cpp and wgpu you can also consider the following projects:

MoltenVK - MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.

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

metal-rs - Deprecated Rust bindings for Metal

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

clspv - Clspv is a compiler for OpenCL C to Vulkan compute shaders

vulkano - Safe and rich Rust wrapper around the Vulkan API

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
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

Did you know that C++ is
the 7th most popular programming language
based on number of references?