Remove warnings in wgpu::image

This commit is contained in:
Héctor Ramón Jiménez 2019-10-23 02:34:30 +02:00
parent 6145140816
commit 2f8e9dbe59

View file

@ -251,8 +251,8 @@ impl Pipeline {
let instance_buffer = device
.create_buffer_mapped(1, wgpu::BufferUsage::COPY_SRC)
.fill_from_slice(&[Instance {
position: image.position,
scale: image.scale,
_position: image.position,
_scale: image.scale,
}]);
encoder.copy_buffer_to_buffer(
@ -433,6 +433,6 @@ const QUAD_VERTS: [Vertex; 4] = [
#[derive(Clone, Copy)]
struct Instance {
position: [f32; 2],
scale: [f32; 2],
_position: [f32; 2],
_scale: [f32; 2],
}