mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
tweak
This commit is contained in:
parent
9ece548e32
commit
8f1d20d60e
1 changed files with 9 additions and 1 deletions
|
@ -421,7 +421,7 @@ const GPUPrototype = GPU.prototype;
|
||||||
/**
|
/**
|
||||||
* @param {number} rid
|
* @param {number} rid
|
||||||
* @param {string[]} features
|
* @param {string[]} features
|
||||||
* @param {object} limits
|
* @param {InnerAdapterLimits} limits
|
||||||
* @param {boolean} isFallbackAdapter
|
* @param {boolean} isFallbackAdapter
|
||||||
* @returns {GPUAdapter}
|
* @returns {GPUAdapter}
|
||||||
*/
|
*/
|
||||||
|
@ -639,6 +639,10 @@ class GPUAdapterInfo {
|
||||||
}
|
}
|
||||||
const GPUAdapterInfoPrototype = GPUAdapterInfo.prototype;
|
const GPUAdapterInfoPrototype = GPUAdapterInfo.prototype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {InnerAdapterLimits} limits
|
||||||
|
* @returns {GPUSupportedLimits}
|
||||||
|
*/
|
||||||
function createGPUSupportedLimits(limits) {
|
function createGPUSupportedLimits(limits) {
|
||||||
/** @type {GPUSupportedLimits} */
|
/** @type {GPUSupportedLimits} */
|
||||||
const adapterFeatures = webidl.createBranded(GPUSupportedLimits);
|
const adapterFeatures = webidl.createBranded(GPUSupportedLimits);
|
||||||
|
@ -852,6 +856,10 @@ class GPUSupportedLimits {
|
||||||
}
|
}
|
||||||
const GPUSupportedLimitsPrototype = GPUSupportedLimits.prototype;
|
const GPUSupportedLimitsPrototype = GPUSupportedLimits.prototype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {string[]} features
|
||||||
|
* @returns {GPUSupportedFeatures}
|
||||||
|
*/
|
||||||
function createGPUSupportedFeatures(features) {
|
function createGPUSupportedFeatures(features) {
|
||||||
/** @type {GPUSupportedFeatures} */
|
/** @type {GPUSupportedFeatures} */
|
||||||
const supportedFeatures = webidl.createBranded(GPUSupportedFeatures);
|
const supportedFeatures = webidl.createBranded(GPUSupportedFeatures);
|
||||||
|
|
Loading…
Reference in a new issue