11
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

osx上でMoltenVK動かしてみる

Posted at

やってみること

  • MoltenVKのビルド
  • サンプルコードの実行

環境
macOS: 10.13.3
Xcode: 9.4.1

MoltenVK

macOS/iOS上でVulkanのAPIコールをMetalのAPIコールに変換するOSS
https://github.com/KhronosGroup/MoltenVK

※ OpenGLのAPIコールをMetalのAPIコールに変換するMoltenGLというのもある。OSSではなく、別途ライセンス購入が必要(https://moltengl.com/)

Vulkan

Windows, Linux, Androidなどに対応したマルチプラットフォームな次世代のグラフィックAPI
OpenGLと比べてGPUの性能を最大まで引き出すことができる。
https://jp.khronos.org/vulkan/

MoltenVKのビルド

基本的には下記に書かれている通り
https://github.com/KhronosGroup/MoltenVK#installing-moltenvk

brew install cmake
brew install python
brew install ninja

git clone https://github.com/KhronosGroup/MoltenVK.git
cd MoltenVK
./fetchDependencies

# macOS用のパッケージビルド
make macos
# make ios (iOS用のパッケージビルド)

Demoプロジェクトの実行

Demos/LunarG-VulkanSamples/ 以下にいくつかサンプル用のプロジェクトがあるので実行してみる

open Demos/LunarG-VulkanSamples/Hologram/Hologram.xcodeproj
open Demos/LunarG-VulkanSamples/API-Samples/API-Samples.xcodeproj
open Demos/LunarG-VulkanSamples/Cube/Cube.xcodeproj
スクリーンショット 2019-01-01 2.03.48.png スクリーンショット 2019-01-01 2.05.22.png スクリーンショット 2019-01-01 2.06.09.png
11
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?