rt(mtl): use f32::MAX for lodMaxClamp

This commit is contained in:
chyyran 2024-09-17 01:20:48 -04:00
parent 6cdd9247de
commit d55d0e4839

View file

@ -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);