OSX/Metal people: do you know of any guide how to create a simple window with a metal layer from code? I have a MTKView but it seems I cannot do things like while(running) { repaint(); } on it. Do I need it to event based? Can I fake it?(OSX noob here)
Depends how “native” you are. If you’re comfortable with platform conventions (runloops, dispatch, CVDisplayLink, Cocoa event delegation), it’s fairly simple to be clean. If you try to hammer everything into a while(1) loop, poll input devices, and draw “on-demand,” not so simple