fix: use file_path as GPU texture debug label to eliminate dead_code warning

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Sonnet 4.6 committed 2026-04-06 23:35:13 +03:00
1 parent 5d0edb3a1f
commit c2f1c9078f
1 file changed
+2 -1
+2 -1
View File
@@ -70,8 +70,9 @@ impl ImageGpu {
}
// ── Upload texture ────────────────────────────────────────────────
let tex_label = format!("image.texture:{}", model.file_path);
let texture = device.create_texture(&wgpu::TextureDescriptor {
label: Some("image.texture"),
label: Some(&tex_label),
size: wgpu::Extent3d {
width: model.width,
height: model.height,