Fixes to documentation for extensions and building.

Indicate both vk_KHR_maintenance1 & vk_AMD_negative_viewport_height extensions are available.
This commit is contained in:
Bill Hollings 2018-09-16 14:46:01 -04:00
parent e546b83852
commit 5d8d4d2440
5 changed files with 22 additions and 19 deletions

View File

@ -237,11 +237,16 @@ in your source code files as follows:
In addition to the core *Vulkan* API, **MoltenVK** also supports the following *Vulkan* extensions:
- `VK_MVK_moltenvk`
- `VK_KHR_swapchain`
- `VK_KHR_surface`
- `VK_MVK_ios_surface` (iOS)
- `VK_MVK_macos_surface` (macOS)
- `VK_AMD_negative_viewport_height`
- `VK_MVK_ios_surface` (iOS)
- `VK_KHR_surface`
- `VK_KHR_swapchain`
- `vk_KHR_maintenance1`
- `vk_AMD_negative_viewport_height`
- `vk_KHR_shader_draw_parameters`
- `vk_KHR_get_physical_device_properties2`
- `vk_KHR_push_descriptor`
- `vk_KHR_descriptor_update_template`
- `VK_IMG_format_pvrtc` (iOS)
In order to visibly display your content on *iOS* or *macOS*, you must enable the `VK_MVK_ios_surface`

View File

@ -1551,7 +1551,6 @@ MVKDevice::MVKDevice(MVKPhysicalDevice* physicalDevice, const VkDeviceCreateInfo
_commandResourceFactory = new MVKCommandResourceFactory(this);
// Verify the requested extension names. Should be same as those requested from instance.
MVKExtensionList* pWritableExtns = (MVKExtensionList*)&_enabledExtensions;
setConfigurationResult(pWritableExtns->enable(pCreateInfo->enabledExtensionCount,
pCreateInfo->ppEnabledExtensionNames,

View File

@ -139,8 +139,6 @@ static bool mvkIsSupportedOnPlatform(VkExtensionProperties* pProperties) {
if (pProperties == &kVkExtProps_MVK_MACOS_SURFACE) { return false; }
#endif
if (pProperties == &kVkExtProps_AMD_NEGATIVE_VIEWPORT_HEIGHT) { return false; }
return true;
}

View File

@ -44,8 +44,8 @@ struct MVKExtensionList {
MVKExtension vk_KHR_surface;
MVKExtension vk_KHR_swapchain;
MVKExtension vk_KHR_maintenance1;
MVKExtension vk_IMG_format_pvrtc;
MVKExtension vk_AMD_negative_viewport_height;
MVKExtension vk_IMG_format_pvrtc;
MVKExtension vk_KHR_shader_draw_parameters;
MVKExtension vk_KHR_get_physical_device_properties2;
MVKExtension vk_KHR_push_descriptor;

View File

@ -133,12 +133,16 @@ and package the entire **MoltenVK** runtime distribution package, or to build in
**MoltenVK** or **MoltenVKShaderConverter** components.
To build a **MoltenVK** runtime distribution package, suitable for testing and integrating into an app,
open `MoltenVKPackaging.xcodeproj` in *Xcode*, and use one of the following *Xcode Schemes*:
open `MoltenVKPackaging.xcodeproj` in *Xcode*, and use one of the following *Xcode Schemes*, depending
on whether you want a *Debug* or *Release* configuration, and whether you want to build for both the
*iOS* and *macOS* platforms, or just one platform:
- **MoltenVK (Release)** - build the entire **MoltenVK** runtime distribution package using the
*Release* configuration.
- **MoltenVK (Debug)** - build the entire **MoltenVK** runtime distribution package using the
*Debug* configuration.
- **MoltenVK Package (Debug)**
- **MoltenVK Package (Debug) (iOS only)**
- **MoltenVK Package (Debug) (macOS only)**
- **MoltenVK Package (Release)**
- **MoltenVK Package (Release) (iOS only)**
- **MoltenVK Package (Release) (macOS only)**
Each of these`MoltenVKPackaging.xcodeproj` *Xcode* project *Schemes* puts the resulting packages in the
`Package` directory, creating it if necessary. This directory contains separate `Release` and `Debug`
@ -156,13 +160,10 @@ app with either a **Debug** build, or a higher-performance **Release** build.
### Building from the Command Line
If you prefer to build **MoltenVK** from the command line, or to include the activity in a larger build script,
you can do so using the following command from within the `MoltenVK` repository:
you can do so using the following command within the `MoltenVK` repository, and identifying one of the
*Xcode Schemes* from the list above:
xcodebuild -project MoltenVKPackaging.xcodeproj -scheme "MoltenVK (Release)" build
or
xcodebuild -project MoltenVKPackaging.xcodeproj -scheme "MoltenVK (Debug)" build
xcodebuild -project MoltenVKPackaging.xcodeproj -scheme "MoltenVK Package (Release)" build