Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
petamoriken committed Nov 14, 2024
1 parent 9ece548 commit 8f1d20d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ext/webgpu/01_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8f1d20d

Please sign in to comment.