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;