mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-02 00:30:55 +00:00
GPU: working textures are labelled with their size (refs #1319)
This commit is contained in:
1 parent
549e9d8251
commit
ec29d78ca2
1 file changed
+2
-1
@@ -850,8 +850,9 @@ impl GpuContext {
|
||||
}
|
||||
|
||||
fn texture(&self, w: u32, h: u32) -> wgpu::Texture {
|
||||
// Named with its size, so a GPU error about it says which texture failed (#1319).
|
||||
self.device.create_texture(&wgpu::TextureDescriptor {
|
||||
label: None,
|
||||
label: Some(&format!("working image {w}×{h}")),
|
||||
size: wgpu::Extent3d { width: w.max(1), height: h.max(1), depth_or_array_layers: 1 },
|
||||
mip_level_count: 1,
|
||||
sample_count: 1,
|
||||
|
||||
Reference in new issue
Block a user