Skip to content

Commit 0e9958f

Browse files
authored
Don't push array of one to features
There's no need to push an array of one here
1 parent ac9519e commit 0e9958f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tfjs-backend-webgpu/src/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (isWebGPUSupported()) {
3838
requiredFeatures.push('timestamp-query');
3939
}
4040
if (adapter.features.has('bgra8unorm-storage')) {
41-
requiredFeatures.push(['bgra8unorm-storage']);
41+
requiredFeatures.push('bgra8unorm-storage');
4242
}
4343
deviceDescriptor.requiredFeatures =
4444
requiredFeatures as Iterable<GPUFeatureName>;

0 commit comments

Comments
 (0)