Package org.lwjgl.vulkan
Class IMGFilterCubic
- java.lang.Object
-
- org.lwjgl.vulkan.IMGFilterCubic
-
public final class IMGFilterCubic extends java.lang.Object
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 = { VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO // sType // 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);
- Name String
VK_IMG_filter_cubic
- Extension Type
- Device extension
- Registered Extension Number
- 16
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Contact
- Tobias Hector tobski
- Last Modified Date
- 2016-02-23
- Contributors
- Tobias Hector, Imagination Technologies
-
-
Field Summary
Fields Modifier and Type Field Description static int
VK_FILTER_CUBIC_IMG
ExtendsVkFilter
.static int
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG
ExtendsVkFormatFeatureFlagBits
.static java.lang.String
VK_IMG_FILTER_CUBIC_EXTENSION_NAME
The extension name.static int
VK_IMG_FILTER_CUBIC_SPEC_VERSION
The extension specification version.
-
-
-
Field Detail
-
VK_IMG_FILTER_CUBIC_SPEC_VERSION
public static final int VK_IMG_FILTER_CUBIC_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_IMG_FILTER_CUBIC_EXTENSION_NAME
public static final java.lang.String VK_IMG_FILTER_CUBIC_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_FILTER_CUBIC_IMG
public static final int VK_FILTER_CUBIC_IMG
ExtendsVkFilter
.- See Also:
- Constant Field Values
-
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG
public static final int VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG
ExtendsVkFormatFeatureFlagBits
.- See Also:
- Constant Field Values
-
-