From 825a2563ae166b2c0809a34454eba55174850c02 Mon Sep 17 00:00:00 2001 From: Greggman Date: Mon, 7 Oct 2024 18:45:50 +0900 Subject: [PATCH] Fix texture-builtin speedup (#3983) I missed a case. This should fix it for now. --- .../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 1d85b2f7eb7e..1f2b38d1e299 100644 --- a/src/webgpu/shader/execution/expression/call/builtin/texture_utils.ts +++ b/src/webgpu/shader/execution/expression/call/builtin/texture_utils.ts @@ -838,7 +838,7 @@ function createRandomTexelView(info: { isEncodableTextureFormat(info.format) && ((info.format.includes('norm') && type !== 'depth') || info.format.includes('16float') || - info.format.includes('32float') || + (info.format.includes('32float') && type !== 'depth') || type === 'sint' || type === 'uint');