From ed8bf637a923e85b90c04e74a18d238548b2a9a6 Mon Sep 17 00:00:00 2001 From: chyyran Date: Sun, 6 Oct 2024 13:13:19 -0400 Subject: [PATCH] cli: size_of not in prelude --- librashader-cli/src/render/wgpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librashader-cli/src/render/wgpu.rs b/librashader-cli/src/render/wgpu.rs index f818d84..e76d12f 100644 --- a/librashader-cli/src/render/wgpu.rs +++ b/librashader-cli/src/render/wgpu.rs @@ -35,7 +35,7 @@ struct BufferDimensions { impl BufferDimensions { fn new(width: usize, height: usize) -> Self { - let bytes_per_pixel = size_of::(); + let bytes_per_pixel = std::mem::size_of::(); let unpadded_bytes_per_row = width * bytes_per_pixel; let align = wgpu::COPY_BYTES_PER_ROW_ALIGNMENT as usize; let padded_bytes_per_row_padding = (align - unpadded_bytes_per_row % align) % align;