ソースを参照

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,
 				device: device,
 				format: GPUTextureFormat.BGRA8Unorm,
 				format: GPUTextureFormat.BGRA8Unorm,
 				usage: GPUTextureUsage.RENDER_ATTACHMENT,
 				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'
 			} );
 			} );
 
 
 		}
 		}