Skip to content

Commit 03b989c

Browse files
crowlKatsvicary
andauthored
Co-authored-by: Vicary A <vicary@yahoo.com>
1 parent c61f61c commit 03b989c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

deno_webgpu/src/01_webgpu.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
Error,
2525
MathMax,
2626
ObjectDefineProperty,
27-
ObjectFreeze,
2827
ObjectPrototypeIsPrototypeOf,
2928
Promise,
3029
PromiseAll,
@@ -346,8 +345,8 @@
346345
const inner = new InnerGPUDevice({
347346
rid,
348347
adapter: this,
349-
features: ObjectFreeze(features),
350-
limits: ObjectFreeze(limits),
348+
features: createGPUSupportedFeatures(features),
349+
limits: createGPUSupportedFeatures(limits),
351350
});
352351
return createGPUDevice(
353352
descriptor.label,
@@ -746,18 +745,18 @@
746745
* @typedef InnerGPUDeviceOptions
747746
* @property {GPUAdapter} adapter
748747
* @property {number | undefined} rid
749-
* @property {GPUFeatureName[]} features
750-
* @property {object} limits
748+
* @property {GPUSupportedFeatures} features
749+
* @property {GPUSupportedLimits} limits
751750
*/
752751

753752
class InnerGPUDevice {
754753
/** @type {GPUAdapter} */
755754
adapter;
756755
/** @type {number | undefined} */
757756
rid;
758-
/** @type {GPUFeatureName[]} */
757+
/** @type {GPUSupportedFeatures} */
759758
features;
760-
/** @type {object} */
759+
/** @type {GPUSupportedLimits} */
761760
limits;
762761
/** @type {WeakRef<any>[]} */
763762
resources;

0 commit comments

Comments
 (0)