Top Description Fields Constructors Methods
org.lwjgl.vulkan

public final Class IMGFilterCubic

extends Object
Class Inheritance

VK_IMG_filter_cubic adds an additional, high quality cubic filtering mode to Vulkan, using a Catmull-Rom bicubic filter. Performing this kind of filtering can be done in a shader by using 16 samples and a number of instructions, but this can be inefficient. The cubic filter mode exposes an optimized high quality texture sampling using fixed texture sampling functionality.
Example

Creating a sampler with the new filter for both magnification and minification


    VkSamplerCreateInfo createInfo =
    {
        .sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO,
        // Other members set to application-desired values
    };

    createInfo.magFilter = VK_FILTER_CUBIC_IMG;
    createInfo.minFilter = VK_FILTER_CUBIC_IMG;

    VkSampler sampler;
    VkResult result = vkCreateSampler(
        device,
        &createInfo,
        &sampler);
VK_IMG_filter_cubic
Name String
VK_IMG_filter_cubic
Extension Type
Device extension
Registered Extension Number
16
Revision
1
Contact
Other Extension Metadata
Last Modified Date
2016-02-23
Contributors
  • Tobias Hector, Imagination Technologies

Field Summary

Modifier and TypeField and Description
public static final int
VK_FILTER_CUBIC_IMG

Extends VkFilter.

public static final int
public static final String
public static final int
VK_IMG_FILTER_CUBIC_SPEC_VERSION

The extension specification version.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_FILTER_CUBIC_IMGback to summary
public static final int VK_FILTER_CUBIC_IMG

Extends VkFilter.

VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMGback to summary
public static final int VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG

Extends VkFormatFeatureFlagBits.

VK_IMG_FILTER_CUBIC_EXTENSION_NAMEback to summary
public static final String VK_IMG_FILTER_CUBIC_EXTENSION_NAME

The extension name.

VK_IMG_FILTER_CUBIC_SPEC_VERSIONback to summary
public static final int VK_IMG_FILTER_CUBIC_SPEC_VERSION

The extension specification version.

Constructor Detail

IMGFilterCubicback to summary
private IMGFilterCubic()