this post was submitted on 18 Jul 2025
83 points (97.7% liked)

Programming

21650 readers
227 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

I just read "Google Continues Working On "Magma" For Mesa Cross-Platform System Call Interface" on Phoronix and didn't get it. That made me realise my knowledge and understanding of these things is barely existent. I did write an MS paint clone on linux in C++ a really long time ago and the entire thing was with opengl (it looked like crap), but since then... nothing.

So my understanding is that the graphics card (or CPU if there's no graphics card), writes to a component which is connected to a screen and every cycle (every 1/60 seconds if 60Hz) the contents are sent or read by the screen. OpenGL provided a common interface to do so, but has been outdated since... a while and replaced by Vulkan. Then there are libraries either built on top of are parallel to OpenGL. Vulkan can be parallel or use OpenGL if that's the only one supported IIRC.
However, I'm not sure if OpenGL is implemented at the hardware level (on the graphics card), software level, or both.

Furthermore, I don't understand where Magma, Meta, and MESA come in.

Maybe my core understanding is wrong or just outdated. I can't tell. Can anybody eplain?

Anti Commercial-AI license

you are viewing a single comment's thread
view the rest of the comments
[โ€“] pycorax@sh.itjust.works 2 points 2 days ago* (last edited 2 days ago) (1 children)

Since we're talking about Apple, there's an upcoming library and spec called WebGPU that, contrary to it's name, is a higher level cross platform graphics library. It's an interesting idea, write once and depending on your platform, it would use the corresponding platform's preferred backend (e.g. Direct3D on Windows, Metal on Macs, etc). It's supposed to be promising and provide a easy way for any existing dev to hop in until they had to give up on SPIR-V support and come with a Metal-like shading language just to appease Apple so that they would support it due to Apple's existing legal disagreements with Khronos.

And from what I've seen from WGSL, it's nowhere as nice as GLSL and HLSL.

So yea, if you need any more evidence of Apple's shitty attitude in the space.

[โ€“] zurohki@aussie.zone 1 points 1 day ago

They do seem to alternate between making MacOS graphics worse and wondering why nobody's making games for MacOS.

Management seem to think that desktop Mac has the same market share that iPhone does and keep wondering why throwing their weight around isn't working.