metal-cpp
MGL
metal-cpp | MGL | |
---|---|---|
16 | 22 | |
250 | 732 | |
- | 1.4% | |
3.3 | 4.2 | |
4 months ago | 7 months ago | |
C++ | C++ | |
Apache License 2.0 | GNU Lesser General Public License v3.0 only |
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
-
Nitro: A fast, lightweight 3MB inference server with OpenAI-Compatible API
My understanding is the proliferation of “XYZ-cpp” AI frameworks is due to the c++ support in Apple’s gpu library ‘Metal’, and the popularity of apple silicon for inference (and there are a few technical reasons for this): https://developer.apple.com/metal/cpp/
-
Show HN: C-ocoa, Write iOS/macOS apps in any language, with a generated C API
This is basically also what the "official" C++ API for Metal does (https://developer.apple.com/metal/cpp/), it's an automatically generated bindings wrapper which calls into ObjC runtime functions.
I also dabbled a bit with this idea by parsing clang AST-dumps of macOS system headers:
https://github.com/floooh/objc-ast-experiments
Unfortunately this is very brittle, and also broke on ARM CPUs, I guess the shim code needs some ABI adjustments (famously, objc_msgSend has multiple "ABI shapes": https://www.mikeash.com/pyblog/objc_msgsends-new-prototype.h...).
-
What's the best way to learn Metal?
There's official C++-interface: https://developer.apple.com/metal/cpp/
- What are some alternatives to OpenGL for Mac
- Opinion for graphic api's?
-
A brief interview with Tcl creator John Ousterhout
It doesn't matter if the project driven by Microsoft or not, the cat (of automatically generated language bindings) is out of the bag. E.g. Zig is using the same approach without being an official MS project: https://github.com/marlersoft/zigwin32, and Apple has an automatically generated C++ API for Metal (https://developer.apple.com/metal/cpp/).
In the future, the question won't be "what language do I need to learn to code on this platform", but instead "are there language bindings for my favourite language".
- Cross platform low level graphics API suitable for game development?
-
GCC now includes Modula-2 and Rust. Do they work on OpenBSD?
this? https://developer.apple.com/metal/cpp/
Doesn't it just use objc/runtime.h and if anything is missing you can just add your custom api calls?
-
A learning path for Vulkan that focuses on concepts?
Metal has C++ bindings (which cover a full app lifecycle so you don’t have to touch Objective-C/Swift at all) but they’re based on the Objective-C memory model. There are some helper structs mimicking shared pointers, but you’ll still need to understand the basics of how an autorelease pool is used to avoid memory leaks and/or bad access crashes.
-
CTO of Azure declares C++ "deprecated"
On https://developer.apple.com/metal/cpp/ check Foundation folder and all those nice Object::sendMessage().
MGL
-
Is BC6H (COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB) supported on Silicon Macs?
There's this repo which gives you OpenGL 4.6 thru Metal mappings https://github.com/openglonmetal/MGL
- Zink brings conformant OpenGL on Imagination GPUs
-
macOS OpenGL?
There is this github project that may help as a starting point to develop your code against https://github.com/openglonmetal/MGL but note it does say:
-
What is the best OpenGL version for cross platform application?
MacOS: GL 4.1 or use OpenGL 4.6 on Metal
- I want to talk about WebGPU
-
Opinion for graphic api's?
There is this https://github.com/openglonmetal/MGL which could give you OpenGL 4.6 over metal.
- Can I work on OpenGL with Mac M1 ?
- Mac + opengl
-
Using Metal framework
Are you sure about that? AFAIK OpenGL up to 4.1 is still supported on OSX. For anything higher there is also this project: https://github.com/openglonmetal/MGL
- How is Vulkan supposed to supersede OpenGL in practice?
What are some alternatives?
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.
Cemu - Cemu - Wii U emulator
Cinder - Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
angle - A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
TH - Deep Learning Library for Common Lisp.
objc4
metal-rs - Rust bindings for Metal
cl-cuda - Cl-cuda is a library to use NVIDIA CUDA in Common Lisp programs.
OpenFrameworks - openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
semantic-release - :package::rocket: Fully automated version management and package publishing