Set max mipmapping level

This commit is contained in:
Timothy Warren 2023-04-24 10:17:28 -04:00
parent bd370e1bf9
commit 2e9cdf2bd1

View File

@ -1136,7 +1136,7 @@ impl AppData {
.mipmap_mode(vk::SamplerMipmapMode::LINEAR)
.mip_lod_bias(0.0)
.min_lod(0.0)
.max_lod(0.0);
.max_lod(self.mip_levels as f32);
self.texture_sampler = device.create_sampler(&info, None)?;