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

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-04-06 23:35:13 +03:00
commit c2f1c9078f

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,