Skip to content

Commit 582267f

Browse files
authored
Update webgpu-externs.js (#23631)
Add type declaration for `GPUAdapter.info` and `GPUDevice.adapterInfo` Dawn is maintaining an forked up-to-date version of library_webgpu.js, but the webgpu-extern.js is not forked.
1 parent a3b9e32 commit 582267f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/closure-externs/webgpu-externs.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ GPUAdapter.prototype.isFallbackAdapter;
199199
GPUAdapter.prototype.requestDevice = function() {};
200200
/** @return {!Promise<!GPUAdapterInfo>} */
201201
GPUAdapter.prototype.requestAdapterInfo = function() {};
202+
/** @type {!GPUAdapterInfo} */
203+
GPUAdapter.prototype.info;
202204

203205
/** @constructor */
204206
function GPUDevice() {}
@@ -250,6 +252,8 @@ GPUDevice.prototype.pushErrorScope = function() {};
250252
GPUDevice.prototype.popErrorScope = function() {};
251253
/** @type {!Function} */
252254
GPUDevice.prototype.onuncapturederror;
255+
/** @type {!GPUAdapterInfo} */
256+
GPUDevice.prototype.adapterInfo;
253257

254258
/** @constructor */
255259
function GPUBuffer() {}

0 commit comments

Comments
 (0)