Skip to content

Commit

Permalink
WebGPUTextures: Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Sep 20, 2020
1 parent 111a752 commit 551adcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/renderers/webgpu/WebGPUTextures.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class WebGPUTextures {

_getBytesPerTexel( format ) {

if ( format === GPUTextureFormat.RGBA8Unorm || format === GPUTextureFormat.RGBA8Unorm ) return 4;
if ( format === GPUTextureFormat.RGBA8Unorm || format === GPUTextureFormat.RGBA8UnormSRGB ) return 4;
if ( format === GPUTextureFormat.RGBA16Float ) return 8;
if ( format === GPUTextureFormat.RGBA32Float ) return 16;

Expand Down

0 comments on commit 551adcb

Please sign in to comment.