浏览代码

WebGPURenderer: Add note about swap chain format.

Mugen87 4 年之前
父节点
当前提交
fbea62b900
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPURenderer.js

+ 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;