2.7 KiB
Executable file
#MoltenVK Vulkan Examples
Copyright (c) 2014-2017 The Brenwill Workshop Ltd. All rights reserved.
This document is written in Markdown format. For best results, use a Markdown reader.
Introduction
The Xcode project in this folder builds and runs the Vulkan examples in this repository on iOS and macOS, using the MoltenVK Vulkan driver.
Installing MoltenVK
The examples in this repository can be run on iOS and macOS by using the MoltenVK Vulkan driver. Follow these instructions to install MoltenVK:
-
Download the Molten free evaluation trial. This free trial includes MoltenVK, is full-featured, and is not time-limited. You must purchase a license if you wish to use MoltenVK for a production application or game, but you can use the evaluation version to run these examples.
-
Unzip the Molten package, and move it to a folder outside this repository.
-
Open a Terminal session and navigate to the directory containing this document, remove the existing
MoltenVKsymbolic link in this directory, and create a new symbolic link pointing to theMoltenVKdirectory in the Molten package:cd path-to-this-directory rm MoltenVK ln -s path-to-Molten-package/MoltenVK
Running the Vulkan Examples
The single examples.xcodeproj Xcode project can be used to run any of the examples
in this repository on either iOS or macOS. To do so, follow these instructions:
-
Open the
examples.xcodeprojXcode project. -
Specify which of the many examples within this respository you wish to run, by opening the
examples.hfile within Xcode, and following the instructions in the comments within that file to indicate which of the examples you wish to run. -
Run either the
examples-iOSorexamples-macOSXcode Scheme to run the example in iOS or macOS, repectively. -
Many of the examples include an option to press keys to control the display of features and scene components:
- On iOS, tap on the scene to display the keyboard. Tap again on the scene to hide the keyboard.
- On both iOS and macOS, use the numeric keys (1, 2, 3...) instead of function keys (F1, F2, F3...).
- On both iOS and macOS, use the delete key instead of the escape key.