Prechádzať zdrojové kódy

WebGPURenderer: Add note about swap chain format.

Mugen87 4 rokov pred
rodič
commit
fbea62b900

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

@@ -159,7 +159,7 @@ class WebGPURenderer {
 
 		const swapChain = context.configureSwapChain( {
 			device: device,
-			format: GPUTextureFormat.BRGA8Unorm
+			format: GPUTextureFormat.BRGA8Unorm // this is the only valid swap chain format right now (r121)
 		} );
 
 		this._adapter = adapter;