Note Metal requirement in UserGuide.md

This commit is contained in:
sean 2022-05-25 15:56:07 +02:00
parent 5e03632d69
commit 9b1194afba
No known key found for this signature in database
GPG Key ID: 92153B567CA6D7A4
2 changed files with 2 additions and 2 deletions

View File

@ -271,7 +271,7 @@ In addition to core *Vulkan* functionality, **MoltenVK** also supports the foll
- `VK_KHR_device_group_creation`
- `VK_KHR_driver_properties`
- `VK_KHR_dynamic_rendering`
- `VK_KHR_fragment_shader_barycentric`
- `VK_KHR_fragment_shader_barycentric` *(requires Metal 2.2 on Mac or Metal 2.3 on iOS)*
- `VK_KHR_get_memory_requirements2`
- `VK_KHR_get_physical_device_properties2`
- `VK_KHR_get_surface_capabilities2`

View File

@ -289,7 +289,7 @@ void MVKPhysicalDevice::getFeatures(VkPhysicalDeviceFeatures2* features) {
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR: {
auto* barycentricProperties = (VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR*)next;
barycentricProperties->fragmentShaderBarycentric = true;
barycentricProperties->fragmentShaderBarycentric = [_mtlDevice barycentricCoordsSupported];
break;
}
default: