Hacker News new | ask | show | jobs
by joanniso 234 days ago
Metal cannot be used on Android. Your business logic can be ported - if it's separated as a library. If you don't want to separate it, Skip can handle bridging a lot of Apple libraries including SwiftUI.
1 comments

Thanks - I see, so swift packages for everything.

What would be the equivalent shader / GPU language on Android? OpenGL?

OpenGL or Vulkan, you might be able to have some luck transpiling metal shaders to spirv-cross at a cursory look
Sometimes it is easiest to have an agent like Codex rewrite the shader instead...
Vulkan with glsl to spirv compiler would be equivalent