Skip to content

Commit

Permalink
examples: fix use of size_of for older rustc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Dec 14, 2024
1 parent d030483 commit 443b017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/wgpu_frame_images/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl TriangleRenderer {
});
let buffer = device.create_buffer(&wgpu::BufferDescriptor {
label: None,
size: size_of::<f32>() as wgpu::BufferAddress,
size: std::mem::size_of::<f32>() as wgpu::BufferAddress,
usage: wgpu::BufferUsages::UNIFORM | wgpu::BufferUsages::COPY_DST,
mapped_at_creation: false,
});
Expand Down

0 comments on commit 443b017

Please sign in to comment.