From 335b473c82d9417da37a825ab7446ee298333aaa Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Fri, 5 Jan 2024 15:21:25 -0800 Subject: [PATCH] tiny fix --- src/webgpu/format_info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }