From ed35ba7b7162201a2723b0a4c2c708602332d6bb Mon Sep 17 00:00:00 2001 From: saschawillems Date: Sun, 25 Dec 2016 13:05:35 +0100 Subject: [PATCH] Code cleanup --- displacement/displacement.cpp | 7 ------- multithreading/multithreading.cpp | 2 -- pipelines/pipelines.cpp | 10 ---------- 3 files changed, 19 deletions(-) diff --git a/displacement/displacement.cpp b/displacement/displacement.cpp index 3ab2d156..6af6e95f 100644 --- a/displacement/displacement.cpp +++ b/displacement/displacement.cpp @@ -77,13 +77,6 @@ public: VkDescriptorSet descriptorSet; VkDescriptorSetLayout descriptorSetLayout; - // Device features to be enabled for this example - virtual VkPhysicalDeviceFeatures getEnabledFeatures() - { - VkPhysicalDeviceFeatures enabledFeatures{}; - return enabledFeatures; - } - VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) { zoom = -1.25f; diff --git a/multithreading/multithreading.cpp b/multithreading/multithreading.cpp index 5e1adc68..e26371a9 100644 --- a/multithreading/multithreading.cpp +++ b/multithreading/multithreading.cpp @@ -189,8 +189,6 @@ public: threadData.resize(numThreads); - createSetupCommandBuffer(); - float maxX = std::floor(std::sqrt(numThreads * numObjectsPerThread)); uint32_t posX = 0; uint32_t posZ = 0; diff --git a/pipelines/pipelines.cpp b/pipelines/pipelines.cpp index c7531d55..faad0170 100644 --- a/pipelines/pipelines.cpp +++ b/pipelines/pipelines.cpp @@ -65,16 +65,6 @@ public: VkPipeline toon; } pipelines; - // Device features to be enabled for this example - virtual VkPhysicalDeviceFeatures getEnabledFeatures() - { - //todo... - VkPhysicalDeviceFeatures enabledFeatures{}; - enabledFeatures.fillModeNonSolid = VK_TRUE; - enabledFeatures.wideLines = VK_TRUE; - return enabledFeatures; - } - VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION) { zoom = -10.5f;