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:
parent
5d0edb3a1f
commit
c2f1c9078f
1 changed files with 2 additions and 1 deletions
|
|
@ -70,8 +70,9 @@ impl ImageGpu {
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Upload texture ────────────────────────────────────────────────
|
// ── Upload texture ────────────────────────────────────────────────
|
||||||
|
let tex_label = format!("image.texture:{}", model.file_path);
|
||||||
let texture = device.create_texture(&wgpu::TextureDescriptor {
|
let texture = device.create_texture(&wgpu::TextureDescriptor {
|
||||||
label: Some("image.texture"),
|
label: Some(&tex_label),
|
||||||
size: wgpu::Extent3d {
|
size: wgpu::Extent3d {
|
||||||
width: model.width,
|
width: model.width,
|
||||||
height: model.height,
|
height: model.height,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue