How to check that device support anisotropics for Vulkan Graphics APi. For example for checking it on OPENGL used
String extension = GLES10.glGetString(GLES10.GL_EXTENSIONS);
and then check contains string "GL_EXT_texture_filter_anisotropic". How do it if used Vulkan Graphics api?
CodePudding user response:
Anisotropic filtering is an optional device feature. You can query it with
VkPhysicalDeviceFeatures supportedFeatures;
vkGetPhysicalDeviceFeatures(device, &supportedFeatures);
supportedFeatures.samplerAnisotropy
will contain a boolean stating if the feature is available.
If you actually wanted to check for MSAA, then you can check supportedFeatures.limits.framebufferColorSampleCount
and supportedFeatures.limits.framebufferDepthSampleCounts