Removed duplicate device feature support checks
This commit is contained in:
parent
f252284fa5
commit
6a60e5d60e
2 changed files with 0 additions and 12 deletions
|
|
@ -503,12 +503,6 @@ public:
|
||||||
|
|
||||||
void prepare()
|
void prepare()
|
||||||
{
|
{
|
||||||
// Check if device supports tessellation shaders
|
|
||||||
if (!deviceFeatures.tessellationShader)
|
|
||||||
{
|
|
||||||
vks::tools::exitFatal("Selected GPU does not support tessellation shaders!", "Feature not supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
VulkanExampleBase::prepare();
|
VulkanExampleBase::prepare();
|
||||||
loadAssets();
|
loadAssets();
|
||||||
setupVertexDescriptions();
|
setupVertexDescriptions();
|
||||||
|
|
|
||||||
|
|
@ -906,12 +906,6 @@ public:
|
||||||
|
|
||||||
void prepare()
|
void prepare()
|
||||||
{
|
{
|
||||||
// Check if device supports tessellation shaders
|
|
||||||
if (!deviceFeatures.tessellationShader)
|
|
||||||
{
|
|
||||||
vks::tools::exitFatal("Selected GPU does not support tessellation shaders!", "Feature not supported");
|
|
||||||
}
|
|
||||||
|
|
||||||
VulkanExampleBase::prepare();
|
VulkanExampleBase::prepare();
|
||||||
loadAssets();
|
loadAssets();
|
||||||
generateTerrain();
|
generateTerrain();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue