Fix compilation issues

This commit is contained in:
sean 2022-05-25 18:23:30 +02:00
parent 9b1194afba
commit 9253d5c212
No known key found for this signature in database
GPG Key ID: 92153B567CA6D7A4
3 changed files with 3 additions and 2 deletions

View File

@ -329,7 +329,7 @@ In addition to core *Vulkan* functionality, **MoltenVK** also supports the foll
- `VK_AMD_shader_trinary_minmax` *(requires Metal 2.1)* - `VK_AMD_shader_trinary_minmax` *(requires Metal 2.1)*
- `VK_IMG_format_pvrtc` *(requires Apple GPU)* - `VK_IMG_format_pvrtc` *(requires Apple GPU)*
- `VK_INTEL_shader_integer_functions2` - `VK_INTEL_shader_integer_functions2`
- `VK_NV_fragment_shader_barycentric` - `VK_NV_fragment_shader_barycentric` *(requires Metal 2.2 on Mac or Metal 2.3 on iOS)*
- `VK_NV_glsl_shader` - `VK_NV_glsl_shader`
In order to visibly display your content on *macOS*, *iOS*, or *tvOS*, you must enable the In order to visibly display your content on *macOS*, *iOS*, or *tvOS*, you must enable the

View File

@ -25,6 +25,7 @@ Released TBD
- `VK_KHR_dynamic_rendering` - `VK_KHR_dynamic_rendering`
- `VK_KHR_separate_depth_stencil_layouts` - `VK_KHR_separate_depth_stencil_layouts`
- `VK_EXT_separate_stencil_usage` - `VK_EXT_separate_stencil_usage`
- `VK_KHR_fragment_shader_barycentric`
- Support attachment clearing when some clearing formats are not specified. - Support attachment clearing when some clearing formats are not specified.
- Fix error where previously bound push constants can override a descriptor buffer binding - Fix error where previously bound push constants can override a descriptor buffer binding
used by a subsequent pipeline that does not use push constants. used by a subsequent pipeline that does not use push constants.

View File

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