diff --git a/Docs/MoltenVK_Runtime_UserGuide.md b/Docs/MoltenVK_Runtime_UserGuide.md index 2dbd6e89..23c4bf69 100644 --- a/Docs/MoltenVK_Runtime_UserGuide.md +++ b/Docs/MoltenVK_Runtime_UserGuide.md @@ -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_IMG_format_pvrtc` *(requires Apple GPU)* - `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` In order to visibly display your content on *macOS*, *iOS*, or *tvOS*, you must enable the diff --git a/Docs/Whats_New.md b/Docs/Whats_New.md index 5c05fbd8..34e7e5f9 100644 --- a/Docs/Whats_New.md +++ b/Docs/Whats_New.md @@ -25,6 +25,7 @@ Released TBD - `VK_KHR_dynamic_rendering` - `VK_KHR_separate_depth_stencil_layouts` - `VK_EXT_separate_stencil_usage` + - `VK_KHR_fragment_shader_barycentric` - Support attachment clearing when some clearing formats are not specified. - Fix error where previously bound push constants can override a descriptor buffer binding used by a subsequent pipeline that does not use push constants. diff --git a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm index 836bd30e..06936327 100644 --- a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm +++ b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm @@ -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 = [_mtlDevice barycentricCoordsSupported]; + barycentricProperties->fragmentShaderBarycentric = true; break; } default: