From 2027f84d452e37a53049be9a891b51c391cb503c Mon Sep 17 00:00:00 2001 From: saschawillems Date: Wed, 14 Jun 2017 23:38:57 +0200 Subject: [PATCH] Store enabled features in device class --- base/VulkanDevice.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/VulkanDevice.hpp b/base/VulkanDevice.hpp index 52d1f27f..a6d3b205 100644 --- a/base/VulkanDevice.hpp +++ b/base/VulkanDevice.hpp @@ -3,7 +3,7 @@ * * Encapsulates a physical Vulkan device and it's logical representation * -* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de +* Copyright (C) 2016-2017 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ @@ -29,6 +29,8 @@ namespace vks VkPhysicalDeviceProperties properties; /** @brief Features of the physical device that an application can use to check if a feature is supported */ VkPhysicalDeviceFeatures features; + /** @brief Features that have been enabled for use on the physical device */ + VkPhysicalDeviceFeatures enabledFeatures; /** @brief Memory types and heaps of the physical device */ VkPhysicalDeviceMemoryProperties memoryProperties; /** @brief Queue family properties of the physical device */ @@ -331,6 +333,8 @@ namespace vks commandPool = createCommandPool(queueFamilyIndices.graphics); } + this->enabledFeatures = enabledFeatures; + return result; }