Bonzomatic icon indicating copy to clipboard operation
Bonzomatic copied to clipboard

Metal

Open sacredbanana opened this issue 6 years ago • 6 comments

With macOS officially deprecating OpenGL with macOS Mojave because they only want to support Metal, it made me think perhaps I could create a Metal version of Bonzomatic. Do you think Metal shader live coding could be popular enough to warrant developing this version? The only experience I have so far with Metal is porting the Bonzomatic default shader to a Metal fragment shader. It's almost the same as GLSL so the transition is quite smooth.

sacredbanana avatar Jul 24 '18 07:07 sacredbanana

¯\_(ツ)_/¯

Doesn't seem like Apple is leaving us much of a choice here.

Gargaj avatar Jul 24 '18 07:07 Gargaj

I wasted ~30 seconds in a shader showdown last year adding shit like "#define float4 vec4" because after writing metal for a few years, going back to GLSL results in constant bugs due to wrong types :D So put me down as yes, would use Metal if it was available in the compo.

There's a bigger issue here tho. The competition machines usually aren't macs. And the chances of their being a mac at the party with an equivalent GPU are low. So, in practice, I can't see it being useful outside of home use.

For home use we're going to need it (or lose mac support) at some point but while GL is depreciated, it still exists in 10.15. So we're OK for another year.

psonice avatar Jun 16 '19 16:06 psonice

I believe @alkama has been working on a Metal backend for a while now.

Gargaj avatar Jun 16 '19 16:06 Gargaj

Oh, excellent! If any info / advice is needed let me know. Don't mind helping with code too, but the build system and tools here are not anything I'm familiar with.

psonice avatar Jun 16 '19 16:06 psonice

I made a live shader editor for metal, it's really early, but it works. https://github.com/catilac/psychout

catilac avatar Nov 08 '19 03:11 catilac

I'm happy to create a metal version if @alkama isnt already in the middle of making one

sacredbanana avatar Dec 06 '20 23:12 sacredbanana