From d55d0e4839db8197c19f46936e4e9263d92cbd23 Mon Sep 17 00:00:00 2001 From: chyyran Date: Tue, 17 Sep 2024 01:20:48 -0400 Subject: [PATCH] rt(mtl): use f32::MAX for lodMaxClamp --- librashader-runtime-mtl/src/samplers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librashader-runtime-mtl/src/samplers.rs b/librashader-runtime-mtl/src/samplers.rs index 2d494e9..5bd4ebb 100644 --- a/librashader-runtime-mtl/src/samplers.rs +++ b/librashader-runtime-mtl/src/samplers.rs @@ -54,11 +54,11 @@ impl SamplerSet { descriptor.setTAddressMode(MTLSamplerAddressMode::from(*wrap_mode)); descriptor.setMagFilter(MTLSamplerMinMagFilter::from(*filter_mode)); - descriptor.setMinFilter(MTLSamplerMinMagFilter::from(*filter_mode)); descriptor.setMipFilter(filter_mode.mtl_mip(*mipmap_filter)); + descriptor.setLodMinClamp(0.0); - descriptor.setLodMaxClamp(1000.0); + descriptor.setLodMaxClamp(f32::MAX); descriptor.setCompareFunction(MTLCompareFunction::Never); descriptor.setMaxAnisotropy(1); descriptor.setBorderColor(MTLSamplerBorderColor::TransparentBlack);