vulkan-go / vulkan

Vulkan API bindings for Go programming language
MIT License
744 stars 56 forks source link

Conditional compilation to target Apple Metal API #6

Closed joeblew99 closed 7 years ago

joeblew99 commented 7 years ago

As I understand it, to work on osx and iOS, we need to by "Molten" that is code that maps Vulkan calls to Aple's Metal API ?

I have not looked too deeply into this but historically Metal was a fork of Vulkan. Apple Just can't help itself :)

So, it maybe possible to use some conditional compilation to bypass Molten and target Metal direct ?

I am guessing you have also thought about this too but am raising it here to gather ideas / approaches .

This is super awesome project btw. Thank you so much for this work.

xlab commented 7 years ago

compilation to bypass Molten and target Metal direct ?

Vulkan != Metal This makes no sense.

https://moltengl.com/moltenvk/

MoltenVK is an implementation of Vulkan that runs on Apple's Metal graphics framework.

You can't use Vulkan without driver or implementation

xlab commented 7 years ago

but historically Metal was a fork of Vulkan.

Maybe some ideas were stolen, I don't know, but currently there is no relation whatsoever. And they are incompatible.

ghost commented 7 years ago

http://www.tomshardware.com/news/khronos-meta-api-vulkan-metal-directx12,33962.html

have to wait to see what its like maybe