MCRcortex / nvidium

Fast minecraft rendering backend for sodium (nvidia only)
GNU Lesser General Public License v3.0
712 stars 82 forks source link

Support for M3 Apple Silicon #252

Closed csutora closed 1 month ago

csutora commented 2 months ago

hi!

Apple Silicon supports mesh shaders in hardware since version M3, so it would be nice if the mod could support that platform as well.

some pitfalls could be:

please consider it. have a good one!

AlexanderwithaA commented 2 months ago

This likely won’t be possible, the mesh shader support is in metal, just like nvidia did with its mesh shaders extension to the opengl library apple would have to do the same and considering that apple stopped opengl support at 4.1 that doesn’t seem likely.

csutora commented 2 months ago

as far as i'm aware metal is already being used on macos behind the scenes to translate opengl calls.

Felix14-v2 commented 2 months ago

as far as i'm aware metal is already being used on macos behind the scenes to translate opengl calls.

Only limited set of calls. I don't believe that Apple would work on this. But you can request adding support for OpenGL mesh shaders to the Asahi Linux driver — it already has better OpenGL support (OpenGL 4.6) than Apple (software emulation of OpenGL 4.1). This may work since AMD's new driver with OpenGL Mesh Shaders have almost been released, and this may become a kind of trend.

csutora commented 2 months ago

good idea! in case of them adding support to their drivers, would the mod work on Asahi Linux with minimal changes?

Felix14-v2 commented 2 months ago

I think yes, but I'm not the mod dev, so wait for a word from Cortex

wahfl2 commented 2 months ago

That is, if it supports specifically GL_NV_MESH_SHADER. Other extensions would possibly require significant changes.

CrabbyDisk commented 2 months ago

as far as i'm aware metal is already being used on macos behind the scenes to translate opengl calls.

Only limited set of calls. I don't believe that Apple would work on this. But you can request adding support for OpenGL mesh shaders to the Asahi Linux driver — it already has better OpenGL support (OpenGL 4.6) than Apple (software emulation of OpenGL 4.1). This may work since AMD's new driver with OpenGL Mesh Shaders have almost been released, and this may become a kind of trend.

for real?