You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug.warnOnce(`Texture '${texture.name}' is being recreated due to dimension change from ${this.desc.size.width}x${this.desc.size.height} to ${texture.width}x${texture.height}. Consider creating the texture with correct dimensions to avoid recreation.`);
305
+
306
+
this.gpuTexture.destroy();
307
+
this.create(device);
308
+
309
+
// Notify bind groups that this texture has changed and needs rebinding
310
+
texture.renderVersionDirty=device.renderVersion;
311
+
}
312
+
300
313
if(texture._levels){
301
314
302
315
// upload texture data if any
@@ -421,7 +434,8 @@ class WebgpuTexture {
421
434
texture: this.gpuTexture,
422
435
mipLevel: mipLevel,
423
436
origin: [0,0,index],
424
-
aspect: 'all'// can be: "all", "stencil-only", "depth-only"
437
+
aspect: 'all',// can be: "all", "stencil-only", "depth-only"
0 commit comments