Vulkan Apps Now Compatible With macOS and iOS

Discussion in 'Mac Blog Discussion' started by MacRumors, Feb 26, 2018.

  1. MacRumors macrumors bot

    MacRumors

    Joined:
    Apr 12, 2001
    #1
    [​IMG]


    Popular cross-platform 3D graphics and compute API Vulkan is gaining support for the Apple ecosystem, which means Mac and iOS developers will be able to build and run Vulkan apps on Apple devices.

    Valve, LunarG, and The Brenwill Workshop, members of The Khronos Group consortium that developed Vulkan, have worked together with the Khronos Group Portability Initiative to allow Vulkan apps to be ported to Apple platforms.

    [​IMG]

    The aim of Khronos Group's Vulkan Portability Initiative is a universal subset of Vulkan 1.0 that is designed to run at native performance levels over Metal and DirectX 12 drivers. Metal and DirectX 12 are able to support almost all of Vulkan, with the exception of elements like triangle fans, separate stencil reference masks, Vulkan Event functionality, and a few other features.

    Valve used Vulkan tools on macOS with Dota 2 and was able to achieve "significantly higher performance" than native OpenGL drivers.

    [​IMG]

    An open source collection of tools, SDKs, and runtime libraries that enable Vulkan development and deployment on macOS and iOS is now available on the Portability Landing Page on the Khronos Group website. With Vulkan support for Mac and iOS devices, developers will be able to support multiple platforms while cutting down on porting and development costs.
    Starting today, a MoltenVK library from The Brenwill Workshop that translates Vulkan calls into Metal calls on macOS and iOS is being open sourced.

    The open source LunarG Vulkan SDK for macOS is also available today on LunarXchange, enabling developers to build, run, and debug Vulkan applications on Mac. Going forward, LunarG plans to continue to evolve its Mac SDK to add additional tools and features.

    More information on Vulkan support for Apple devices can be found on The Khronos Group website.

    Article Link: Vulkan Apps Now Compatible With macOS and iOS
     
  2. Xardas220 macrumors member

    Xardas220

    Joined:
    Mar 12, 2017
    #2
    Finaly, games are coming to the mac with good performance. :)
     
  3. Sublime macrumors member

    Joined:
    Jun 4, 2002
    Location:
    LBC
    #3
    Happy happy, joy joy. Make Apple Great Again.
     
  4. Ritsuka macrumors 6502a

    Joined:
    Sep 3, 2006
    #4
    Maybe, or maybe not in the short term. There are still more Metal games than Vulkan games out there.
     
  5. Avieshek Suspended

    Avieshek

    Joined:
    Dec 7, 2013
    Location:
    India
  6. Sublime macrumors member

    Joined:
    Jun 4, 2002
    Location:
    LBC
    #6
    Starting today, a MoltenVK library from The Brenwill Workshop that translates Vulkan calls into Metal calls on macOS and iOS...
     
  7. Xavier macrumors 68030

    Joined:
    Mar 23, 2006
    Location:
    Columbus
    #7
    Vulkan, Khronos.. am I seeing a pattern here?

    Does seem like Metal was a step in the right direction, but could be overshadowed by a better standard?
     
  8. Janichsan macrumors 68000

    Janichsan

    Joined:
    Oct 23, 2006
    #8
    Better? Maybe not, but cross-platform instead of proprietary.
     
  9. leman macrumors G3

    Joined:
    Oct 14, 2008
    #9
    That’s very nice! Although, I’d prefer someone making a Metal to SPIR-V compiler, Vulkan is very cumbersome to work with (although obviously much more powerful).
     
  10. MacsRgr8 macrumors 604

    MacsRgr8

    Joined:
    Sep 8, 2002
    Location:
    The Netherlands
    #10
    This is brilliant!
    So, it's more or less Vulkan running on Metal..?
     
  11. Janichsan macrumors 68000

    Janichsan

    Joined:
    Oct 23, 2006
    #11
    Exactly. So, you probably won't be able to squeeze out as much performance as a truly native Vulkan implementation, but it at least makes porting Vulkan based applications much easier than having to rewrite them completely for Metal.
     
  12. Rudy69 macrumors 6502a

    Rudy69

    Joined:
    Mar 30, 2009
    #12
    Not sure how it's being over shadowed. This is more or less just a tool to take existing Vulkan games and convert the Vulkan calls to Metal calls.
     
  13. ikir macrumors 65816

    ikir

    Joined:
    Sep 26, 2007
    #13
    Probably Metal si faster but it is nice to have this tool for easier porting
     
  14. Xavier macrumors 68030

    Joined:
    Mar 23, 2006
    Location:
    Columbus
    #14
    Thanks for the clarification, I understand it better now
     
  15. ikir macrumors 65816

    ikir

    Joined:
    Sep 26, 2007
    #15
    Metal already showed great performance compared even to Windows.
     
  16. moo083 macrumors member

    moo083

    Joined:
    Oct 29, 2002
    Location:
    Los Angeles, CA
    #16
    Well yes, but the idea would be that in the future when deciding what 3D Library to use, a developer might say, well forget writing this in Metal, I'll just write it in Vulkan and use MoltenVK and eventually no one is using Metal anymore. At least that's their plan. I wish everyone would just stop using DirectX and Metal and just use Vulkan. That way, there's only one 3D library and in the future, porting games to different platforms is a lot easier.
     
  17. MrUNIMOG macrumors 6502

    MrUNIMOG

    Joined:
    Sep 23, 2014
    Location:
    Hamburg, Germany
    #17
    However, Vulkan is not macOS native. Performance with MoltenVK-ported games won't be on par with pure Metal.
    Feral, Aspyr or any company that develops their game with macOS support from the start will rely on Metal because of superior performance.
     
  18. shadowbird423 macrumors 6502

    shadowbird423

    Joined:
    Sep 8, 2009
    Location:
    Chapel Hill
    #18
    They might. Or they might chose to write it in Vulcan and launch their games much sooner, allowing them to make more money from a near perfectly synchronized launch schedule.

    I know which option I'd pick.
     
  19. star-affinity macrumors 6502a

    star-affinity

    Joined:
    Nov 14, 2007
    #19
    Did it? Can you give an example?
     
  20. WAM2 macrumors 6502a

    WAM2

    Joined:
    Jan 6, 2011
    Location:
    United States
    #20
    Pretty sure you can't use 3rd party APIs for apps in the iOS App Store. Am I wrong?
     
  21. BornAgainMac macrumors 603

    BornAgainMac

    Joined:
    Feb 4, 2004
    Location:
    Florida Resident
  22. MikhailT macrumors 601

    Joined:
    Nov 12, 2007
    #22
    Here's one: https://egpu.io/forums/mac-setup/me...fps-on-macos-10-12-4-fhd-ultra-high-settings/
    --- Post Merged, Feb 26, 2018 ---
    They're not using third party APIs, they're using an SDK to translate Vulkan code into Metal-based apps. In other words, these are treated as first-party metal apps that was converted from Vulkan codebase.
     
  23. leman macrumors G3

    Joined:
    Oct 14, 2008
    #23
    Of course you can. You just package any third-party dependency inside your app.
     
  24. T'hain Esh Kelch macrumors 601

    T'hain Esh Kelch

    Joined:
    Aug 5, 2001
    Location:
    Denmark
    #24
    This is awesome! Especially given that Valve appear to take it seriously, so it may really take of quickly!

    Now we just need easy wrappers for game developers to apply, to make porting of Vulcan games easy. *sniff* Just like good "old" times!
     
  25. pier macrumors 6502a

    pier

    Joined:
    Feb 7, 2009
    #25
    There are already a number of metal games for macOS with great performance.

    https://forums.macrumors.com/threads/list-of-mac-metal-games.2045606/

    Obviously the mac is not, and probably will never be, as good as Windows for gaming. If only because the market share is so small.
     

Share This Page