Add labels to iced_wgpu internals

This commit is contained in:
Héctor Ramón Jiménez 2020-08-31 14:41:41 +02:00
parent 07880c392c
commit 44118263b5
6 changed files with 46 additions and 38 deletions

View file

@ -131,7 +131,9 @@ impl iced_graphics::window::Compositor for Compositor {
let frame = swap_chain.get_current_frame().expect("Next frame");
let mut encoder = self.device.create_command_encoder(
&wgpu::CommandEncoderDescriptor { label: None },
&wgpu::CommandEncoderDescriptor {
label: Some("iced_wgpu encoder"),
},
);
let _ = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {