Reuse last buffer in Frame if mesh_style matches

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 04:33:54 +01:00
parent d53e262425
commit 20a0577034
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 53 additions and 42 deletions

View file

@ -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 {