Skip to content

Commit 8508a5a

Browse files
committed
Enable samplerAnisotropy if available
1 parent 9f7db42 commit 8508a5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nbl/video/CVulkanPhysicalDevice.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ class CVulkanPhysicalDevice final : public IPhysicalDevice
416416
VkPhysicalDeviceFeatures2 vk_deviceFeatures2 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2 };
417417
vk_deviceFeatures2.pNext = firstFeatureInChain;
418418
vk_deviceFeatures2.features = {};
419+
vk_deviceFeatures2.features.samplerAnisotropy = m_features.samplerAnisotropy;
419420

420421
// Create Device
421422
VkDeviceCreateInfo vk_createInfo = { VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO };

0 commit comments

Comments
 (0)