From 8f1d20d60eb1d9b0da91c82714a8a394feb5f5ed Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Wed, 13 Nov 2024 23:12:33 +0900 Subject: [PATCH] tweak --- ext/webgpu/01_webgpu.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js index 901f59a2ae..b1748a8402 100644 --- a/ext/webgpu/01_webgpu.js +++ b/ext/webgpu/01_webgpu.js @@ -421,7 +421,7 @@ const GPUPrototype = GPU.prototype; /** * @param {number} rid * @param {string[]} features - * @param {object} limits + * @param {InnerAdapterLimits} limits * @param {boolean} isFallbackAdapter * @returns {GPUAdapter} */ @@ -639,6 +639,10 @@ class GPUAdapterInfo { } const GPUAdapterInfoPrototype = GPUAdapterInfo.prototype; +/** + * @param {InnerAdapterLimits} limits + * @returns {GPUSupportedLimits} + */ function createGPUSupportedLimits(limits) { /** @type {GPUSupportedLimits} */ const adapterFeatures = webidl.createBranded(GPUSupportedLimits); @@ -852,6 +856,10 @@ class GPUSupportedLimits { } const GPUSupportedLimitsPrototype = GPUSupportedLimits.prototype; +/** + * @param {string[]} features + * @returns {GPUSupportedFeatures} + */ function createGPUSupportedFeatures(features) { /** @type {GPUSupportedFeatures} */ const supportedFeatures = webidl.createBranded(GPUSupportedFeatures);