temporary up
This commit is contained in:
parent
ae484429d3
commit
d91422e345
|
@ -28,7 +28,7 @@ impl Pipeline {
|
||||||
ty: wgpu::BufferBindingType::Uniform,
|
ty: wgpu::BufferBindingType::Uniform,
|
||||||
has_dynamic_offset: false,
|
has_dynamic_offset: false,
|
||||||
min_binding_size: wgpu::BufferSize::new(
|
min_binding_size: wgpu::BufferSize::new(
|
||||||
mem::size_of::<Uniforms>() as u64,
|
mem::size_of::<Uniforms>() as wgpu::BufferAddress,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
count: None,
|
count: None,
|
||||||
|
@ -37,7 +37,7 @@ impl Pipeline {
|
||||||
|
|
||||||
let constants_buffer = device.create_buffer(&wgpu::BufferDescriptor {
|
let constants_buffer = device.create_buffer(&wgpu::BufferDescriptor {
|
||||||
label: Some("iced_wgpu::quad uniforms buffer"),
|
label: Some("iced_wgpu::quad uniforms buffer"),
|
||||||
size: mem::size_of::<Uniforms>() as u64,
|
size: mem::size_of::<Uniforms>() as wgpu::BufferAddress,
|
||||||
usage: wgpu::BufferUsage::UNIFORM | wgpu::BufferUsage::COPY_DST,
|
usage: wgpu::BufferUsage::UNIFORM | wgpu::BufferUsage::COPY_DST,
|
||||||
mapped_at_creation: false,
|
mapped_at_creation: false,
|
||||||
});
|
});
|
||||||
|
@ -47,11 +47,7 @@ impl Pipeline {
|
||||||
layout: &constant_layout,
|
layout: &constant_layout,
|
||||||
entries: &[wgpu::BindGroupEntry {
|
entries: &[wgpu::BindGroupEntry {
|
||||||
binding: 0,
|
binding: 0,
|
||||||
resource: wgpu::BindingResource::Buffer(wgpu::BufferBinding {
|
resource: constants_buffer.as_entire_binding(),
|
||||||
buffer: &constants_buffer,
|
|
||||||
offset: 0,
|
|
||||||
size: None,
|
|
||||||
}),
|
|
||||||
}],
|
}],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue