diff --git a/src/webgpu/format_info.ts b/src/webgpu/format_info.ts index 9b6fd713de70..64ef2cd8956d 100644 --- a/src/webgpu/format_info.ts +++ b/src/webgpu/format_info.ts @@ -1942,7 +1942,7 @@ export function isTextureFormatUsableAsStorageFormat( isCompatibilityMode: boolean ) { if (isCompatibilityMode) { - if (kCompatModeUnsupportedStorageTextureFormats.indexOf(format)) { + if (kCompatModeUnsupportedStorageTextureFormats.indexOf(format) >= 0) { return false; } }