This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch unity
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/unity by this push:
new 4b072e05f6 [Unity][WebGPU] Fix WebGPU adapter requiring features
(#14933)
4b072e05f6 is described below
commit 4b072e05f622c09ee5c7cd0b1a917ce21393dd51
Author: jzm-intel <[email protected]>
AuthorDate: Wed May 24 21:16:14 2023 +0800
[Unity][WebGPU] Fix WebGPU adapter requiring features (#14933)
This PR fix a type error of adapter requiredFeature.
---
web/src/webgpu.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/src/webgpu.ts b/web/src/webgpu.ts
index 0d7de70655..585dfecab6 100644
--- a/web/src/webgpu.ts
+++ b/web/src/webgpu.ts
@@ -74,7 +74,7 @@ export async function detectGPUDevice():
Promise<GPUDeviceDetectOutput | undefin
);
}
- let requiredFeatures = [] as string[];
+ let requiredFeatures : GPUFeatureName[] = [];
// Always require f16 if available
if (adapter.features.has("shader-f16")) {
requiredFeatures.push("shader-f16");