Upstream denoland/deno#15853
Error,
MathMax,
ObjectDefineProperty,
- ObjectFreeze,
ObjectPrototypeIsPrototypeOf,
Promise,
PromiseAll,
const inner = new InnerGPUDevice({
rid,
adapter: this,
- features: ObjectFreeze(features),
- limits: ObjectFreeze(limits),
+ features: createGPUSupportedFeatures(features),
+ limits: createGPUSupportedFeatures(limits),
});
return createGPUDevice(
descriptor.label,
* @typedef InnerGPUDeviceOptions
* @property {GPUAdapter} adapter
* @property {number | undefined} rid
- * @property {GPUFeatureName[]} features
- * @property {object} limits
+ * @property {GPUSupportedFeatures} features
+ * @property {GPUSupportedLimits} limits
*/
class InnerGPUDevice {
adapter;
/** @type {number | undefined} */
rid;
- /** @type {GPUFeatureName[]} */
+ /** @type {GPUSupportedFeatures} */
features;
- /** @type {object} */
+ /** @type {GPUSupportedLimits} */
limits;
/** @type {WeakRef<any>[]} */
resources;
