Skip to content

Commit 955946e

Browse files
authored
WebGPUTextureUtils: Fix rgb9e5ufloat usage and rg11b10ufloat constant value. (#31698)
* WebGPUTextureUtils: Fix `RGB9E5UFloat` usage. * Fix `rg11b10ufloat` constant value.
1 parent 18128b8 commit 955946e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/renderers/webgpu/utils/WebGPUConstants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const GPUTextureFormat = {
113113
// Packed 32-bit formats
114114
RGB9E5UFloat: 'rgb9e5ufloat',
115115
RGB10A2Unorm: 'rgb10a2unorm',
116-
RG11B10UFloat: 'rgb10a2unorm',
116+
RG11B10UFloat: 'rg11b10ufloat',
117117

118118
// 64-bit formats
119119

src/renderers/webgpu/utils/WebGPUTextureUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class WebGPUTextureUtils {
231231

232232
}
233233

234-
if ( texture.isCompressedTexture !== true && texture.isCompressedArrayTexture !== true ) {
234+
if ( texture.isCompressedTexture !== true && texture.isCompressedArrayTexture !== true && format !== GPUTextureFormat.RGB9E5UFloat ) {
235235

236236
usage |= GPUTextureUsage.RENDER_ATTACHMENT;
237237

0 commit comments

Comments
 (0)