Skip to content

Commit 210027d

Browse files
committed
Fix comment on GPUTexture.textureBindingViewDimension
1 parent 51f0423 commit 210027d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dist/index.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3307,7 +3307,10 @@ interface GPUTexture
33073307
* no such restriction.
33083308
*
33093309
* @todo Temporarily optional until all browsers have implemented it.
3310-
* Check support before using. (Use the non-null assertion operator `!` where needed.)
3310+
* It is safe to access on any browser, as it will just (correctly) return
3311+
* `undefined` if not implemented. Note, depending on the device, `undefined`
3312+
* is a valid value even in browsers that implement this attribute. (So be
3313+
* careful if using the non-null assertion operator `!` on this.)
33113314
*/
33123315
readonly textureBindingViewDimension?:
33133316
| GPUTextureViewDimension

0 commit comments

Comments
 (0)