Remove warnings in wgpu::image
This commit is contained in:
parent
6145140816
commit
2f8e9dbe59
1 changed files with 4 additions and 4 deletions
|
|
@ -251,8 +251,8 @@ impl Pipeline {
|
||||||
let instance_buffer = device
|
let instance_buffer = device
|
||||||
.create_buffer_mapped(1, wgpu::BufferUsage::COPY_SRC)
|
.create_buffer_mapped(1, wgpu::BufferUsage::COPY_SRC)
|
||||||
.fill_from_slice(&[Instance {
|
.fill_from_slice(&[Instance {
|
||||||
position: image.position,
|
_position: image.position,
|
||||||
scale: image.scale,
|
_scale: image.scale,
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
encoder.copy_buffer_to_buffer(
|
encoder.copy_buffer_to_buffer(
|
||||||
|
|
@ -433,6 +433,6 @@ const QUAD_VERTS: [Vertex; 4] = [
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
struct Instance {
|
struct Instance {
|
||||||
position: [f32; 2],
|
_position: [f32; 2],
|
||||||
scale: [f32; 2],
|
_scale: [f32; 2],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue