Enable anisotropic filtering if supported by the devices, fixes validation layer message

This commit is contained in:
Sascha Willems 2020-07-30 21:10:51 +02:00
parent 011109020b
commit 9c029b36fa

View file

@ -101,6 +101,10 @@ public:
if (deviceFeatures.sampleRateShading) { if (deviceFeatures.sampleRateShading) {
enabledFeatures.sampleRateShading = VK_TRUE; enabledFeatures.sampleRateShading = VK_TRUE;
} }
// Enable anisotropic filtering if supported
if (deviceFeatures.samplerAnisotropy) {
enabledFeatures.samplerAnisotropy = VK_TRUE;
}
} }
// Creates a multi sample render target (image and view) that is used to resolve // Creates a multi sample render target (image and view) that is used to resolve