Description
Is your feature request related to a problem? Please describe.
Min/Max sampler filter modes have widespread support in native APIs and are useful to reduce bandwidth requirements of a set of image processing operations, like building a mipmap chain for the depth buffer.
Describe the solution you'd like
Add an optional feature SAMPLER_FILTER_MINMAX
as well as "Min" and "Max" variants to wgt::FilterMode
. The feature should map to https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VK_EXT_sampler_filter_minmax.html in Vulkan, and to FILTER_MINIMUM_*
/FILTER_MAXIMUM_*
in https://docs.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_filter
Describe alternatives you've considered
Not exposing anything.
Additional context
Min/Max modes are not considering "filtering" modes for the purpose of texture/sampler bindings.