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;
|
zoom = -35;
|
||||||
rotation = glm::vec3(-35.0, 0.0, 0);
|
rotation = glm::vec3(-35.0, 0.0, 0);
|
||||||
title = "Vulkan Example - Tessellation shader displacement mapping";
|
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()
|
~VulkanExample()
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,11 @@ public:
|
||||||
zoom = -1.5f;
|
zoom = -1.5f;
|
||||||
rotation = glm::vec3(-380.0f, 18.5f, 0.0f);
|
rotation = glm::vec3(-380.0f, 18.5f, 0.0f);
|
||||||
title = "Vulkan Example - Tessellation shader (PN Triangles)";
|
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()
|
~VulkanExample()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue