From 01704c2fda51aac23984154ad7b53914d113ee4a 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; } }