Check tessellation support
This commit is contained in:
parent
561cb78720
commit
ab8be6731b
2 changed files with 10 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue