Skip to content

Commit

Permalink
cli: size_of not in prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyran committed Oct 6, 2024
1 parent 7555bb9 commit ed8bf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librashader-cli/src/render/wgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct BufferDimensions {

impl BufferDimensions {
fn new(width: usize, height: usize) -> Self {
let bytes_per_pixel = size_of::<u32>();
let bytes_per_pixel = std::mem::size_of::<u32>();
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;
Expand Down

0 comments on commit ed8bf63

Please sign in to comment.