Clippy fixes

This commit is contained in:
Lauri Räsänen 2023-11-04 15:22:40 +02:00
parent ebef7fe1c5
commit 2dc20ad12c
6 changed files with 9 additions and 13 deletions

View file

@ -28,9 +28,6 @@ impl Vertex for InstanceRaw {
use std::mem;
wgpu::VertexBufferLayout {
array_stride: mem::size_of::<InstanceRaw>() as wgpu::BufferAddress,
// We need to switch from using a step mode of Vertex to Instance
// This means that our shaders will only change to use the next
// instance when the shader starts processing a new instance
step_mode: wgpu::VertexStepMode::Instance,
attributes: &[
// model matrix