Enum

VkFilter

Specify filters used for texture lookups

Possible values of the VkSamplerCreateInfo::magFilter and minFilter parameters, specifying filters used for texture lookups, are:

typedef enum VkFilter {
    VK_FILTER_NEAREST = 0,
    VK_FILTER_LINEAR = 1,
} VkFilter;
  • VK_FILTER_NEAREST specifies nearest filtering.
  • VK_FILTER_LINEAR specifies linear filtering.
  • VK_FILTER_CUBIC_EXT specifies cubic filtering.

These filters are described in detail in Texel Filtering.