Bill Hollings 8a675aa3a8 Revert to disabling MVK_HIDE_VULKAN_SYMBOLS by default.
- Statically expose vkGetInstanceProcAddr(), even
  when MVK_HIDE_VULKAN_SYMBOLS is enabled.
- To support Volk, link Cube demo dynamically to libMoltenVK.dylib
  instead of statically to MoltenVK.xcframework.
2024-01-10 17:16:33 -05:00
..

MoltenVK

#MoltenVK Demo Projects

Copyright (c) 2015-2024 The Brenwill Workshop Ltd.

Table of Contents

Cube

The basic canonical Cube sample app from the Vulkan-Tools repository is included in this MoltenVK package.

This demo renders a basic textured cube that spins in place.

The demo can be found in the Cube folder, and in the Cube group in the Xcode Project Navigator in the Demos.xcworkspace Xcode workspace.

To run this demo, run the Cube-macOS, Cube-iOS, or Cube-tvOS Scheme from within Xcode. In addition to devices, this demo will also run on the iOS Simulator or tvOS Simulator destinations.

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.

Khronos Vulkan Samples

Khronos Group provides a repository containing a full suite of standard Vulkan samples that run on MoltenVK on macOS.