Enabled required features for tessellation example, recompiled tessellation shaders with recent glslang compiler

This commit is contained in:
saschawillems 2016-12-14 20:35:03 +01:00
parent a872fafe4e
commit a6a6702bd2
5 changed files with 9 additions and 0 deletions

View file

@ -78,6 +78,15 @@ public:
VkDescriptorSet descriptorSet; VkDescriptorSet descriptorSet;
VkDescriptorSetLayout descriptorSetLayout; VkDescriptorSetLayout descriptorSetLayout;
// Device features to be enabled for this example
virtual VkPhysicalDeviceFeatures getEnabledFeatures()
{
VkPhysicalDeviceFeatures enabledFeatures{};
enabledFeatures.tessellationShader = VK_TRUE;
enabledFeatures.fillModeNonSolid = VK_TRUE;
return enabledFeatures;
}
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
{ {
zoom = -6.5f; zoom = -6.5f;