- add features reported by validation layer

This commit is contained in:
Magnus Norddahl 2019-03-02 17:17:33 +01:00
parent 09ea775b40
commit 1bdaf24fa8

View file

@ -372,6 +372,8 @@ void VulkanDevice::createDevice()
VkPhysicalDeviceFeatures usedDeviceFeatures = {}; VkPhysicalDeviceFeatures usedDeviceFeatures = {};
usedDeviceFeatures.samplerAnisotropy = VK_TRUE; usedDeviceFeatures.samplerAnisotropy = VK_TRUE;
usedDeviceFeatures.shaderClipDistance = VK_TRUE;
usedDeviceFeatures.fragmentStoresAndAtomics = VK_TRUE;
VkDeviceCreateInfo deviceCreateInfo = {}; VkDeviceCreateInfo deviceCreateInfo = {};
deviceCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; deviceCreateInfo.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;