Fix #145667: Nearest interpolation is ignored in Vulkan
Blender compositor ignores nearest interpolation in Vulkan backend. That's because anisotropic interpolation is used based on same left over sampler state. To fix this, we clear anisotropic sampling in the realization shader. Pull Request: https://projects.blender.org/blender/blender/pulls/145905
This commit is contained in:
@@ -98,6 +98,7 @@ void RealizeOnDomainOperation::realize_on_domain_gpu(const float3x3 &inverse_tra
|
||||
const bool use_bilinear = ELEM(
|
||||
realization_options.interpolation, Interpolation::Bilinear, Interpolation::Bicubic);
|
||||
GPU_texture_filter_mode(input, use_bilinear);
|
||||
GPU_texture_anisotropic_filter(input, false);
|
||||
|
||||
GPU_texture_extend_mode_x(input,
|
||||
map_extension_mode_to_extend_mode(realization_options.extension_x));
|
||||
|
||||
Reference in New Issue
Block a user