Open hajimehoshi opened 7 years ago
Am sure you have seen the golang / Vulkan implementation at xlab repo ?
It's very extensive with 3 examples.
It's really clean code but lots of it since its Vulcan. But I don't see an issue because you are hiding all the code behind the framework.
I've not seen that. I'll take a look.
BTW, I was wondering which platforms support Vulkan.
Here is he repo: https://github.com/vulkan-go/demos
Support: android, ios, all desktops. But ios only supports Metal and so there is a company that make a vulkan <--> Metal ayer called Molten, but you have to pay for it.
Now writing using Vulkan means lots more code to write. I dont think this is bad because for a GUI you wrap allot of that in controls too. xlab wrote this as a wrapper also. https://github.com/vulkan-go/asche
Personally, i think that Vulkan is still a little too early, and that the Molten issue is a huge issue. There has been talk that kronos will write an adapter so that Molten is not needed for IOS, but i think its a fair way of and not certain at all. Its a pity Apple went their own way, when everyone else agreed on a standard.
Thats about all i can help with for now.
Thank you for the info. I agree Vulkan is too early. Probably wrapping Vulkan and Metal (and DirectX?) is the best in the current situation to utilize GPU power, but the implementation cost would be too huge. Thus, I'll wait and see, and might revisit this when I find a great benefit with Vulkan or Vulkan supports most of all platforms (hopefully including browsers).
will be along time before browsers get vulkan. SO yes wait..
Does Vulkan has a notion of 'context lost'? (Metal and Direct11 don't). If not, we might be able to eliminate 'restorable' logic.
Note to myself: Vulkan is available as of Android API level 24. https://developer.android.com/ndk/guides/graphics/getting-started
Related: #804
Vulkan is nice also for Stadia https://stadia.dev/about/
Vulkan is supported from Android 7.0. Currentlly 90%> Android machines can be covered
(from https://gs.statcounter.com/os-version-market-share/android)
https://gs.statcounter.com/os-version-market-share/android
The current market share of M is 1.67%, and the others is about 3%.
As we have removed the restorable
package, the priority got lower.
Expected benefits:
There is no concrete plan so far.