summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-08-31 14:41:41 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-08-31 14:41:41 +0200
commit44118263b5de7bc32f6280ee3d1dc170a9b034d3 (patch)
tree6f302a41a469b7bb9209ac591ddf2519ab9e6595 /wgpu/src/image
parent07880c392c865d700cbaff7601c1fffd3354dd4f (diff)
downloadiced-44118263b5de7bc32f6280ee3d1dc170a9b034d3.tar.gz
iced-44118263b5de7bc32f6280ee3d1dc170a9b034d3.tar.bz2
iced-44118263b5de7bc32f6280ee3d1dc170a9b034d3.zip
Add labels to `iced_wgpu` internals
Diffstat (limited to 'wgpu/src/image')
-rw-r--r--wgpu/src/image/atlas.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/image/atlas.rs b/wgpu/src/image/atlas.rs
index 69f872e8..660ebe44 100644
--- a/wgpu/src/image/atlas.rs
+++ b/wgpu/src/image/atlas.rs
@@ -28,7 +28,7 @@ impl Atlas {
};
let texture = device.create_texture(&wgpu::TextureDescriptor {
- label: None,
+ label: Some("iced_wgpu::image texture atlas"),
size: extent,
mip_level_count: 1,
sample_count: 1,
@@ -103,7 +103,7 @@ impl Atlas {
let buffer =
device.create_buffer_init(&wgpu::util::BufferInitDescriptor {
- label: None,
+ label: Some("iced_wgpu::image staging buffer"),
contents: &padded_data,
usage: wgpu::BufferUsage::COPY_SRC,
});
@@ -330,7 +330,7 @@ impl Atlas {
}
let new_texture = device.create_texture(&wgpu::TextureDescriptor {
- label: None,
+ label: Some("iced_wgpu::image texture atlas"),
size: wgpu::Extent3d {
width: SIZE,
height: SIZE,