VkFilter(3)

# VkFilter(3) Manual Page

## Name

VkFilter - Specify filters used for texture lookups

Loading… please wait.

## C Specification

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

    // Provided by VK_VERSION_1_0
    typedef enum VkFilter {
        VK_FILTER_NEAREST = 0,
        VK_FILTER_LINEAR = 1,
      // Provided by VK_IMG_filter_cubic
        VK_FILTER_CUBIC_IMG = 1000015000,
      // Provided by VK_EXT_filter_cubic
        VK_FILTER_CUBIC_EXT = VK_FILTER_CUBIC_IMG,
    } VkFilter;

## Description

- `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.

## See Also

VkBlitImageInfo2KHR, VkSamplerCreateInfo, VkSamplerYcbcrConversionCreateInfo, vkCmdBlitImage

## Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

## Copyright

Copyright (c) 2014-2020 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0