瀏覽代碼

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

sunag 3 年之前
父節點
當前提交
019fa1ad67
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      examples/jsm/renderers/webgpu/WebGPURenderer.js

+ 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'
 			} );
 
 		}