Pārlūkot izejas kodu

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

sunag 3 gadi atpakaļ
vecāks
revīzija
019fa1ad67
1 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  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'
 			} );
 
 		}