Browse Source

WebGPUTextures: Clean up.

Mugen87 5 năm trước cách đây
mục cha
commit
da64654179
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUTextures.js

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

@@ -291,8 +291,8 @@ class WebGPUTextures {
 	_getBytesPerTexel( format ) {
 
 		if ( format === GPUTextureFormat.RGBA8Unorm ) return 4;
-		if ( format === GPUTextureFormat.RGBA32Float ) return 16;
 		if ( format === GPUTextureFormat.RGBA16Float ) return 8;
+		if ( format === GPUTextureFormat.RGBA32Float ) return 16;
 
 	}