Skip to content

Commit

Permalink
Add KHR_fragment_shader_barycentric.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Dec 14, 2023
1 parent c6fb8e8 commit 378f54e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vulkan/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,12 @@ bool Context::create_device(VkPhysicalDevice gpu_, VkSurfaceKHR surface,
enabled_extensions.push_back(VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME);
}

if (has_extension(VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME))
{
enabled_extensions.push_back(VK_KHR_FRAGMENT_SHADER_BARYCENTRIC_EXTENSION_NAME);
ADD_CHAIN(ext.barycentric_features, FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR);
}

if ((flags & CONTEXT_CREATION_ENABLE_ADVANCED_WSI_BIT) != 0 && requires_swapchain)
{
if (has_extension(VK_KHR_PRESENT_ID_EXTENSION_NAME))
Expand Down
1 change: 1 addition & 0 deletions vulkan/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ struct DeviceFeatures
VkPhysicalDevicePerformanceQueryFeaturesKHR performance_query_features = {};
VkPhysicalDevicePresentIdFeaturesKHR present_id_features = {};
VkPhysicalDevicePresentWaitFeaturesKHR present_wait_features = {};
VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR barycentric_features = {};

// EXT
VkPhysicalDeviceExternalMemoryHostPropertiesEXT host_memory_properties = {};
Expand Down

0 comments on commit 378f54e

Please sign in to comment.