16 ms·
Vulkan is coming to macOS and iOS, but no thanks to Apple
- efnx 9y agoThis is great news! Anyone have a recommended Vulkan intro?
- fulafel 9y agoHere's a 1192 line example that draws a colored triangle: https://github.com/SaschaWillems/Vulkan/blob/master/examples/triangle/triangle.cpp https://github.com/SaschaWillems/Vulkan/blob/master/examples...
- thealfreds 9y ago> Contrary to the other examples, this one won't make use of helper functions or initializers Wondering what the code would look like with the helpers. Is this a bit of a "recoding of the wheel" example/exercise by Sascha?
- dogma1138 9y agoHelpers and initializers aren’t necessarily platform agnostic in Vulkan same goes for non-mandatory / base extensions. Say what you want about D3D at least it follows a strict take or leave it regime.
- deleted 9y ago[deleted]
- TomK32 9y agoProbably 20 lines.
- fulafel 9y agoYep. It almost seems like Vulkan is designed to be used through a library or framework of helper functions ;)
- ramy_d 9y agoThis is actually really well commented and instructional
- fstephany 9y agoStephanie Hurlburt has a good list: http://stephaniehurlburt.com/blog/2017/7/14/beginner-friendly-vulkan-tutorials http://stephaniehurlburt.com/blog/2017/7/14/beginner-friendl...
- MBCook 9y agoThere’s a little bit at the end of the article saying Khronos is doing the same thing to put Vulkan on top of DX12.
- dralley 9y agoWhat is the use case for that? Running Vulkan within UWP apps?
- moolcool 9y agoPorting Vulkan applications to the Xbox One maybe?
- ovao 9y agoYes, as explained in the article: > While Windows, unlike macOS, does have Vulkan drivers from GPU companies, applications sold through the Microsoft Store are only permitted to use DirectX.
- braderhart 9y agoSimple solution = installing operating systems that support open standards.
- mort96 9y agoPeople making games need to make those games for platforms people play on. You as a user can move to Linux, and game developers should support Linux, but a game which can only be played on Linux and *BSD will be incredibly unsuccessful.
- braderhart 9y agoIt's called Vulkan.
- sametmax 9y agoYou're not a gamer, are you ?
- deleted 9y ago[deleted]
- haxiomic 9y agoCan anyone who has experience with MoltenVK discuss any potential pitfalls? (It's existed in a closed-source form for 2 years). Is it a case of loading the library and forgetting it, or will you likely need some MoltenVK-specific codepaths to use it?
- kvark 9y agoVulkan Portability subset is excluding the following features (at the moment!) from core Vulkan: - triangle fans - separate stencil reference values - events There are also extra limitations to things like the maximum buffer size, which are exposed via Molten-specific API.
- twtw 9y agoThis is great. I've seen MoltenVK before, but did have any reason to justify getting it. I am a really big fan of Vulkan. While it takes a bit more work to get going and does less for you, I find the increased transparency very valuable and more enjoyable than trying to guess what the driver is doing.
- ryandrake 9y agoThese guys also have an implementation[1] of OpenGL that’s optimized for Metal, and supports more modern OpenGL than Apple’s pathetic “frozen in time” implementation. Sadly it’s not open source, but I suppose a company’s gotta make money somehow. Such a shame that such essential support for hardware that comes with every Mac apparently needs to be provided by a third party. 1: https://moltengl.com/moltengl/ https://moltengl.com/moltengl/
- saagarjha 9y agoWell, it's obvious why Apple doesn't care about OpenGL: they want people to move to Metal.
- bringtheaction 9y agoBut why do they want that? That’s just making life harder for all the devs. It’s absolutely not realistic to expect devs to want to lock themselves into the macOS and iOS ecosystem by using only Metal, so then they must duplicate their own efforts in Metal that they are already making in OpenGL or in Vulkan or in DX12. Having to maybe care about DX12 even though you don’t want to is bad enough on its own.
- richdougherty 9y ago> not realistic to expect devs to want to lock themselves into the macOS and iOS ecosystem From Apple's perspective it's probably worth a try to get lock-in! Their real leverage is iOS, which lots of games want to target.
- ken 9y agoIt's how Apple has been operating for 10 years with dozens of other frameworks. Plenty of people have been writing programs against Foundation, CoreAudio, MapKit, EventKit, etc, for their {mac,i,tv,watch}OS apps, and obviously different libraries for any other platforms they wish to target. I do agree that this time it might be different. There's no great cross-platform open-spec solution for, say, EventKit, so when Apple offers up their own API, we've just gone with it. Game Developers are a huge existing community, in a way that Calendar Developers are not. Metal and Vulkan are an unstoppable force meeting an immovable object. As someone who learned to program in the 1980's, it's pretty amazing that it's getting feasible to target high-performance graphics on every major platform from a single code base. Targeting every user in the world using only 2 graphics libraries doesn't seem so terrible to me. Consider how different the "Lemmings" source code must have been for Commodore Amiga versus the Commodore C=64, for example, not to mention the other 25 platforms it was ported to.
- evolve2k 9y agoSilly question. Would installing this likely have any affect on Media Design tools like Adobe After Effects, Adobe Premier or Cinema 4D?
- teilo 9y agoNo. This would be included in the app itself, and would no more interfere with Metal than one Metal app would interfere with another.
- movedx 9y agoI have a Windows 10 based PC at home. I use it because I like to play games, but I'm also a YouTube creator and a programmer. In Australian dollars, the build cost me about $3,000. it's an i5 6600K, 16GB of 2333MHz RAM, a 256GB Samsung 950 Pro NVMe M.2 SSD, and an nVidia GTX 1070. I would drop this system in a heart beat if I could play all my AAA games on macOS, and I would replace it with a high end iMac Pro. Sadly two problems remain: - I can't play my AAA games on macOS because things like Vulkan aren't fully adopted and in place yet - You can't swap out the GPU in the iMac Pro This is why my next build is going to be a Hackintosh.
- logiclion 9y agoI've thought the same, have you considered the possible options of external graphics cards and bootcamping?
- movedx 9y agoI think external GPUs are an awesome idea. I've not looked into hem recently, actually. They would be awesome for making a 15" MBP from 2014 more useful going forward.
- logiclion 9y agounfortunately to my knowledge they work only with thunderbolt 2+ (ideally 3), not quite sure about 2014 models and their ports.
- zanny 9y agoBarely any AAA games support OSX anyway anymore. Both OSX and Linux are second class citizens for AAA publishers because all their studios drink the DX koolaid hard, even in an age where almost every game is made on Unreal / Unity / Cryengine / etc and all those engines are OS portable they still only see Windows releases.
- ryandrake 9y agoThat’s never made much sense to me. I could see if you’re not using one of the major (portable) game engines—you might not want to spend the time developing Windows, Mac, and Linux ports. But if your underlying engine is already portable, would it kill you to hit build a few extra times to produce an “unsupported” Linux or Mac release? Unless you’re deliberately using Windows specific stuff in you non-platform-specific areas like game logic. In which case facepalm. EDIT: I know it’s not THAT simple but in general why not have a policy to be portable by default, platform dependent only when necessary?
- DLudwig 9y agoIt looks like the next version of LibSDL, 2.0.8, will support it to some degree, as of a commit from a few days ago: https://hg.libsdl.org/SDL/rev/d97ab6d12404 https://hg.libsdl.org/SDL/rev/d97ab6d12404 For reference, LibSDL recently added the ability to help initialize Vulkan, in a cross-platform manner. A bit of further info on this is available at https://discourse.libsdl.org/t/sdl-2-0-6-released/23109 https://discourse.libsdl.org/t/sdl-2-0-6-released/23109
- BinaryIdiot 9y agoA little off topic but how is SDL nowadays? I used it for a quick and dirty game back in my college days (13-ish years ago?) and I really, really enjoyed using it. It was very approachable and I could build it on my Windows and Linux PCs.
- pjmlp 9y agoBasically the same, a nice API to do accelerated 2D rendering, audio, file and io access in a portable way. The API changed a bit with 2.0 release, the biggest change was support for multiple rendering windows.
- DLudwig 9y ago... and LibSDL 2.0.8 is now released (with the aforementioned Vulkan improvements)! Further details at https://discourse.libsdl.org/t/sdl-2-0-8-released/23957 https://discourse.libsdl.org/t/sdl-2-0-8-released/23957
- mathnode 9y agoI am always bitterly disappointed in HN's views and understanding of graphic API's. HN, what I largely assume is a community of programmers. Not Khronos idealists. The OpenGL dream died long ago. I think we can thank CAD and GPU vendors for that. Yet here we are again. If Valve had to port software to Nintendo or Sony; they would be using the native, supported API's. Not porting over Vulkan or OpenGL. Just use Metal. It really is, very good.
- errantspark 9y agoVulkan is also very good, and not vendor locked. Vulkan is the sole ray of hope that one day we may have a sane graphics stack that works properly across different platforms. If I'm reading the trend right I might even be able to get rid of my Windows partition during my lifetime. It won't be because Apple decided to make it's own competing standard.
- mathnode 9y agoIt's not just Apple. This is what everyone forgets. It's Microsoft, Apple, Sony and Nintendo. Every big vendor and platform for 3D games and software, has their own graphics API which work better and faster than OpenGL and Vulkan. It is only CAD still stuck on OpenGL (and the proprietary extensions). Idealism is not the answer to positive end user experience.
- zem 9y agoand proprietary apis are not the answer to positive developer experience. time will show whether insisting on your own world-incompatible graphics apis will lead to developers writing custom apps for your platform, or whether they will use whatever lets them release on many platforms at once.
- pjmlp 9y agoProfessional game developers have been choosing proprietary APIs since ever. They were the ones telling Sony that their efforts for having OpenGL ES 1.0 on the PS3 were not worthwhile pursuing. OpenGL ES on the PS3 was barely used beyond prototypes and simple demos.
- emh68 9y agoIt’ll be interesting to see if this helps the lack of games on Mac in the long run.
- codeflo 9y agoThis is really great news. I wonder how this deal went down, businesswise. MoltenVK used to be a commercial offering by Brenwill Workshop. The way the press release[1] mentions how Khronos "worked" with Valve and Brenwill Workshop to "enable" this release makes it sound like there might have been money involved. If so, great for both Brenwill Workshop and the community. 1: https://www.khronos.org/news/press/vulkan-applications-enabled-on-apple-platforms https://www.khronos.org/news/press/vulkan-applications-enabl...
- chris_wot 9y agoI suspect this is going to help LibreOffice, as we extensively use OpenGL now: https://wiki.documentfoundation.org/OpenGL https://wiki.documentfoundation.org/OpenGL
- jheriko 9y agoGraphics programming is so painful because of these anachronisms :( the Apple gles implementation is buggy as hell. produces gpu crashes from compliant code etc... I have low expectations. they have made a new annoyance in our lives ... nothing more
- Ericson2314 9y agoThis is the best way to fight back against the rent seekers. Good luck!!