Skip to content

Commit

Permalink
Add missing feature request. (KhronosGroup#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
asuessenbach authored Jul 15, 2024
1 parent 9d6f197 commit d74fd8b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ ExtendedDynamicState2::ExtendedDynamicState2()
add_instance_extension(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME);
add_device_extension(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME);
add_device_extension(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
add_device_extension(VK_EXT_PRIMITIVE_TOPOLOGY_LIST_RESTART_EXTENSION_NAME);
}

ExtendedDynamicState2::~ExtendedDynamicState2()
Expand Down Expand Up @@ -747,6 +748,10 @@ void ExtendedDynamicState2::request_gpu_features(vkb::PhysicalDevice &gpu)
gpu.request_extension_features<VkPhysicalDeviceExtendedDynamicStateFeaturesEXT>(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT);
requested_extended_dynamic_state_feature.extendedDynamicState = VK_TRUE;

auto &requested_primitive_topology_restart_features =
gpu.request_extension_features<VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT>(VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT);
requested_primitive_topology_restart_features.primitiveTopologyListRestart = VK_TRUE;

// Tessellation shader support is required for this example
auto &requested_features = gpu.get_mutable_requested_features();
if (gpu.get_features().tessellationShader)
Expand Down

0 comments on commit d74fd8b

Please sign in to comment.