File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 29
29
"@types/semver" : " ^7.3.9" ,
30
30
"@types/shelljs" : " ^0.8.7" ,
31
31
"@types/dom-webcodecs" : " 0.1.4" ,
32
- "@webgpu/types" : " 0.1.38 " ,
32
+ "@webgpu/types" : " 0.1.48 " ,
33
33
"ajv" : " ~6.12.3" ,
34
34
"argparse" : " ^1.0.10" ,
35
35
"chalk" : " ~2.4.2" ,
Original file line number Diff line number Diff line change @@ -57,7 +57,13 @@ if (isWebGPUSupported()) {
57
57
} ;
58
58
59
59
const device : GPUDevice = await adapter . requestDevice ( deviceDescriptor ) ;
60
- const adapterInfo = await adapter . requestAdapterInfo ( ) ;
60
+ const adapterInfo =
61
+ 'info' in adapter
62
+ ? adapter . info
63
+ : 'requestAdapterInfo' in adapter
64
+ // tslint:disable-next-line:no-any
65
+ ? await ( adapter as any ) . requestAdapterInfo ( )
66
+ : undefined ;
61
67
return new WebGPUBackend ( device , adapterInfo ) ;
62
68
} , 3 /*priority*/ ) ;
63
69
}
Original file line number Diff line number Diff line change 513
513
resolved "https://registry.yarnpkg.com/@verdaccio/ui-theme/-/ui-theme-6.0.0-6-next.23.tgz#268da5091e1e9264fe87b8b94c0ac596e9e54879"
514
514
integrity sha512-GXpEPdZJm6o+2VAxzUsKaiDriS+5enqr7Gjrb2Bttcd+IkOuC8lDsoFHxIv0ib4JudZJ/aKsRYL3TN2AetPFjw==
515
515
516
-
517
- version "0.1.38 "
518
- resolved "https://registry.npmjs.org /@webgpu/types/-/types-0.1.38 .tgz#6fda4b410edc753d3213c648320ebcf319669020 "
519
- integrity sha512-7LrhVKz2PRh+DD7+S+PVaFd5HxaWQvoMqBbsV9fNJO1pjUs1P8bM2vQVNfk+3URTqbuTI7gkXi0rfsN0IadoBA ==
516
+
517
+ version "0.1.48 "
518
+ resolved "https://registry.yarnpkg.com /@webgpu/types/-/types-0.1.48 .tgz#8ab741852283118bd633345c20e218faa7211e9c "
519
+ integrity sha512-e3zmDEPih4Rle+JrP5cT8nCCtDizoUpEaN72OuD1clbhXGERtn0wwuMdxOrBymu3kMLWKDd8hd+ERhSheLuLTg ==
520
520
521
521
" @xmldom/xmldom@^0.7.3 " :
522
522
version "0.7.5"
You can’t perform that action at this time.
0 commit comments