Reuse last buffer in Frame if mesh_style matches
This commit is contained in:
parent
d53e262425
commit
20a0577034
4 changed files with 53 additions and 42 deletions
|
|
@ -54,11 +54,8 @@ impl Pipeline {
|
|||
}],
|
||||
});
|
||||
|
||||
let bind_group = Pipeline::bind_group(
|
||||
device,
|
||||
&buffer.raw(),
|
||||
&bind_group_layout,
|
||||
);
|
||||
let bind_group =
|
||||
Pipeline::bind_group(device, &buffer.raw(), &bind_group_layout);
|
||||
|
||||
let layout =
|
||||
device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue