2018-03-06 14:07:06 -05:00
|
|
|
<a class="site-logo" href="https://github.com/KhronosGroup/MoltenVK" title="MoltenVK">
|
|
|
|
<img src="../Docs/images/MoltenVK-Logo-Banner.png" alt="MoltenVK" style="width:256px;height:auto">
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#MoltenVK Demo Projects
|
|
|
|
|
2024-01-04 14:51:53 -05:00
|
|
|
Copyright (c) 2015-2024 [The Brenwill Workshop Ltd.](http://www.brenwill.com)
|
2018-03-06 14:07:06 -05:00
|
|
|
|
2021-01-21 14:49:24 -05:00
|
|
|
[comment]: # "This document is written in Markdown (http://en.wikipedia.org/wiki/Markdown) format."
|
|
|
|
[comment]: # "For best results, use a Markdown reader."
|
2018-03-06 14:07:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table of Contents
|
|
|
|
-----------------
|
|
|
|
|
2021-03-03 16:43:11 -05:00
|
|
|
- [*Cube*](#vulkan-tools-cube)
|
|
|
|
- [Khronos Vulkan-Samples](#khronos-vulkan-samples)
|
2018-03-06 14:07:06 -05:00
|
|
|
|
|
|
|
|
2021-03-03 16:43:11 -05:00
|
|
|
<a name="vulkan-tools-cube"></a>
|
|
|
|
*Cube*
|
|
|
|
------
|
2018-03-06 14:07:06 -05:00
|
|
|
|
2023-12-18 11:00:35 -05:00
|
|
|
The basic canonical *Cube* sample app from the
|
|
|
|
[*Vulkan-Tools* repository](https://github.com/KhronosGroup/Vulkan-Tools)
|
2021-03-03 16:43:11 -05:00
|
|
|
is included in this **MoltenVK** package.
|
2018-03-06 14:07:06 -05:00
|
|
|
|
2021-03-03 16:43:11 -05:00
|
|
|
This demo renders a basic textured cube that spins in place.
|
2018-03-06 14:07:06 -05:00
|
|
|
|
2023-12-18 11:00:35 -05:00
|
|
|
The demo can be found in the `Cube` folder, and in the `Cube` group in the
|
2021-03-03 16:43:11 -05:00
|
|
|
*Xcode Project Navigator* in the `Demos.xcworkspace` *Xcode* workspace.
|
2018-03-06 14:07:06 -05:00
|
|
|
|
2024-01-08 21:35:21 -05:00
|
|
|
To run this demo, run the `Cube-macOS`, `Cube-iOS`, or `Cube-tvOS` *Scheme* from within *Xcode*.
|
2024-01-23 12:24:36 -05:00
|
|
|
In addition to devices, this demo will also run on an `iOS Simulator` destination.
|
|
|
|
This demo is not supported on a `tvOS Simulator` destination.
|
2018-03-06 14:07:06 -05:00
|
|
|
|
2024-01-10 17:16:33 -05:00
|
|
|
The `Cube` demo is a simple example of installing **MoltenVK** as a `libMoltenVK.dylib` library that
|
|
|
|
is dynamically linked to the application, and the _Vulkan_ calls all use _Volk_ to dynamically access
|
|
|
|
function pointers, retrieved from **MoltenVK** using `vkGetInstanceProcAddr()` and `vkGetDeviceProcAddr()`.
|
|
|
|
It supports all platforms, including _Mac Catalyst_, _iOSSimulator_ and _tvOS Simulator_.
|
2018-03-06 14:07:06 -05:00
|
|
|
|
|
|
|
|
2021-03-03 16:43:11 -05:00
|
|
|
<a name="khronos-vulkan-samples"></a>
|
|
|
|
*Khronos Vulkan Samples*
|
|
|
|
----------------------
|
2018-03-06 14:07:06 -05:00
|
|
|
|
2023-12-18 11:00:35 -05:00
|
|
|
*Khronos Group* provides a [repository](https://github.com/KhronosGroup/Vulkan-Samples)
|
2021-03-03 16:43:11 -05:00
|
|
|
containing a full suite of standard *Vulkan* samples that run on **MoltenVK** on *macOS*.
|