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

This commit is contained in:
saschawillems 2016-12-14 20:49:30 +01:00
parent a6a6702bd2
commit ca27585ee6
4 changed files with 9 additions and 0 deletions

View file

@ -75,6 +75,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 = -1.25f; zoom = -1.25f;