File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 24
24
Error,
25
25
MathMax,
26
26
ObjectDefineProperty,
27
- ObjectFreeze,
28
27
ObjectPrototypeIsPrototypeOf,
29
28
Promise,
30
29
PromiseAll,
346
345
const inner = new InnerGPUDevice ( {
347
346
rid,
348
347
adapter : this ,
349
- features : ObjectFreeze ( features ) ,
350
- limits : ObjectFreeze ( limits ) ,
348
+ features : createGPUSupportedFeatures ( features ) ,
349
+ limits : createGPUSupportedFeatures ( limits ) ,
351
350
} ) ;
352
351
return createGPUDevice (
353
352
descriptor . label ,
746
745
* @typedef InnerGPUDeviceOptions
747
746
* @property {GPUAdapter } adapter
748
747
* @property {number | undefined } rid
749
- * @property {GPUFeatureName[] } features
750
- * @property {object } limits
748
+ * @property {GPUSupportedFeatures } features
749
+ * @property {GPUSupportedLimits } limits
751
750
*/
752
751
753
752
class InnerGPUDevice {
754
753
/** @type {GPUAdapter } */
755
754
adapter ;
756
755
/** @type {number | undefined } */
757
756
rid ;
758
- /** @type {GPUFeatureName[] } */
757
+ /** @type {GPUSupportedFeatures } */
759
758
features ;
760
- /** @type {object } */
759
+ /** @type {GPUSupportedLimits } */
761
760
limits ;
762
761
/** @type {WeakRef<any>[] } */
763
762
resources ;
You can’t perform that action at this time.
0 commit comments