Translating the OpenGL code to Metal/Vulkan will likely be a lot of work. Have a look at [1] which is something like tutorial 1 in the series. Its super verbose!
OpenGL 4.1 was silently supported up to some version of OSX. Not sure if that is still the case. You could try changing:
import github.com/go-gl/gl/v4.6-core/gl
to
import github.com/go-gl/gl/v4.1-core/gl
and see if it works.
OpenGL 4.1 was silently supported up to some version of OSX. Not sure if that is still the case. You could try changing: import github.com/go-gl/gl/v4.6-core/gl to import github.com/go-gl/gl/v4.1-core/gl and see if it works.
[1] https://github.com/KhronosGroup/Vulkan-Samples/blob/main/sam...