Check device support for geometry shaders
This commit is contained in:
parent
627718f97f
commit
5f5f0994bb
1 changed files with 12 additions and 3 deletions
|
|
@ -76,9 +76,6 @@ public:
|
||||||
rotation = glm::vec3(0.0f, -25.0f, 0.0f);
|
rotation = glm::vec3(0.0f, -25.0f, 0.0f);
|
||||||
enableTextOverlay = true;
|
enableTextOverlay = true;
|
||||||
title = "Vulkan Example - Geometry shader";
|
title = "Vulkan Example - Geometry shader";
|
||||||
// Enable physical device features required for this example
|
|
||||||
// Tell the driver that we are going to use geometry shaders
|
|
||||||
enabledFeatures.geometryShader = VK_TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~VulkanExample()
|
~VulkanExample()
|
||||||
|
|
@ -97,6 +94,18 @@ public:
|
||||||
uniformBuffers.VS.destroy();
|
uniformBuffers.VS.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable physical device features required for this example
|
||||||
|
virtual void getEnabledFeatures()
|
||||||
|
{
|
||||||
|
// Geometry shader support is required for this example
|
||||||
|
if (deviceFeatures.fillModeNonSolid) {
|
||||||
|
enabledFeatures.geometryShader = VK_TRUE;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
vks::tools::exitFatal("Selected GPU does not support geometry shaders!", "Feature not supported");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void reBuildCommandBuffers()
|
void reBuildCommandBuffers()
|
||||||
{
|
{
|
||||||
if (!checkCommandBuffers())
|
if (!checkCommandBuffers())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue