Check tessellation support

This commit is contained in:
saschawillems 2016-04-24 10:30:45 +02:00
parent 561cb78720
commit ab8be6731b
2 changed files with 10 additions and 0 deletions

View file

@ -84,6 +84,11 @@ public:
zoom = -35;
rotation = glm::vec3(-35.0, 0.0, 0);
title = "Vulkan Example - Tessellation shader displacement mapping";
// Support for tessellation shaders is optional, so check first
if (!deviceFeatures.tessellationShader)
{
vkTools::exitFatal("Selected GPU does not support tessellation shaders!", "Feature not supported");
}
}
~VulkanExample()

View file

@ -83,6 +83,11 @@ public:
zoom = -1.5f;
rotation = glm::vec3(-380.0f, 18.5f, 0.0f);
title = "Vulkan Example - Tessellation shader (PN Triangles)";
// Support for tessellation shaders is optional, so check first
if (!deviceFeatures.tessellationShader)
{
vkTools::exitFatal("Selected GPU does not support tessellation shaders!", "Feature not supported");
}
}
~VulkanExample()