From eeb3a1ff55154f3e7878ac59e16d3f640c0c4503 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Tue, 15 Oct 2024 14:58:17 +0900 Subject: [PATCH] Fix typescript error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No idea why the pre-sumbit didn't catch this 🤷‍♂️ --- .../shader/execution/expression/call/builtin/texture_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webgpu/shader/execution/expression/call/builtin/texture_utils.ts b/src/webgpu/shader/execution/expression/call/builtin/texture_utils.ts index ea152d5220e..ae8c6622729 100644 --- a/src/webgpu/shader/execution/expression/call/builtin/texture_utils.ts +++ b/src/webgpu/shader/execution/expression/call/builtin/texture_utils.ts @@ -3116,7 +3116,7 @@ async function identifySamplePoints( const weights = layerEntries.get(texelIdx)!; const y = Math.floor(texelIdx / texelsPerRow); const x = texelIdx % texelsPerRow; - const singleWeight = valueIfAllComponentsAreEqual(weights, components); + const singleWeight = valueIfAllComponentsAreEqual(weights, components)!; levelWeight += singleWeight; const w = singleWeight !== undefined