2
0
Эх сурвалжийг харах

WebGPURenderer: Setting an explicit size when calling configure() on a GPUCanvasContext has been deprecated (#24098)

sunag 3 жил өмнө
parent
commit
019fa1ad67

+ 1 - 6
examples/jsm/renderers/webgpu/WebGPURenderer.js

@@ -962,12 +962,7 @@ class WebGPURenderer {
 				device: device,
 				format: GPUTextureFormat.BGRA8Unorm,
 				usage: GPUTextureUsage.RENDER_ATTACHMENT,
-				compositingAlphaMode: 'premultiplied',
-				size: {
-					width: Math.floor( this._width * this._pixelRatio ),
-					height: Math.floor( this._height * this._pixelRatio ),
-					depthOrArrayLayers: 1
-				},
+				compositingAlphaMode: 'premultiplied'
 			} );
 
 		}