diff --git a/src/texture.rs b/src/texture.rs index 01655d6..71d72a0 100644 --- a/src/texture.rs +++ b/src/texture.rs @@ -117,7 +117,7 @@ impl TextureDescriptorRef { height, depth, } = size; - let count = (width.max(height).max(depth) as f64).log2().ceil() as u64; + let count = (width.max(height).max(depth) as f64).log2().ceil() as _; self.set_mipmap_level_count(count); }