forked from 1b-agent/opencadstudio-upstream
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:
1 parent
5d0edb3a1f
commit
c2f1c9078f
1 file changed
+2
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user