@types/webworker 0.0.60 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +126 -70
- package/package.json +1 -1
- package/ts5.5/index.d.ts +56 -0
- package/ts5.6/index.d.ts +56 -0
- package/ts5.9/index.d.ts +56 -0
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.62 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.62.
|
package/index.d.ts
CHANGED
|
@@ -4912,6 +4912,62 @@ declare var FormData: {
|
|
|
4912
4912
|
new(): FormData;
|
|
4913
4913
|
};
|
|
4914
4914
|
|
|
4915
|
+
/**
|
|
4916
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4917
|
+
* Available only in secure contexts.
|
|
4918
|
+
*
|
|
4919
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4920
|
+
*/
|
|
4921
|
+
interface GPUAdapterInfo {
|
|
4922
|
+
/**
|
|
4923
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
4924
|
+
*
|
|
4925
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4926
|
+
*/
|
|
4927
|
+
readonly architecture: string;
|
|
4928
|
+
/**
|
|
4929
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
4930
|
+
*
|
|
4931
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4932
|
+
*/
|
|
4933
|
+
readonly description: string;
|
|
4934
|
+
/**
|
|
4935
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
4936
|
+
*
|
|
4937
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4938
|
+
*/
|
|
4939
|
+
readonly device: string;
|
|
4940
|
+
/**
|
|
4941
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4942
|
+
*
|
|
4943
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4944
|
+
*/
|
|
4945
|
+
readonly isFallbackAdapter: boolean;
|
|
4946
|
+
/**
|
|
4947
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4948
|
+
*
|
|
4949
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4950
|
+
*/
|
|
4951
|
+
readonly subgroupMaxSize: number;
|
|
4952
|
+
/**
|
|
4953
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4954
|
+
*
|
|
4955
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4956
|
+
*/
|
|
4957
|
+
readonly subgroupMinSize: number;
|
|
4958
|
+
/**
|
|
4959
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
4960
|
+
*
|
|
4961
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4962
|
+
*/
|
|
4963
|
+
readonly vendor: string;
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4966
|
+
declare var GPUAdapterInfo: {
|
|
4967
|
+
prototype: GPUAdapterInfo;
|
|
4968
|
+
new(): GPUAdapterInfo;
|
|
4969
|
+
};
|
|
4970
|
+
|
|
4915
4971
|
/**
|
|
4916
4972
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
4917
4973
|
* Available only in secure contexts.
|
|
@@ -14400,17 +14456,17 @@ interface Cache {
|
|
|
14400
14456
|
*
|
|
14401
14457
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
14402
14458
|
*/
|
|
14403
|
-
addAll(requests: RequestInfo
|
|
14459
|
+
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
14404
14460
|
}
|
|
14405
14461
|
|
|
14406
14462
|
interface CanvasPath {
|
|
14407
14463
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
|
|
14408
|
-
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit |
|
|
14464
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
14409
14465
|
}
|
|
14410
14466
|
|
|
14411
14467
|
interface CanvasPathDrawingStyles {
|
|
14412
14468
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
|
|
14413
|
-
setLineDash(segments: number
|
|
14469
|
+
setLineDash(segments: Iterable<number>): void;
|
|
14414
14470
|
}
|
|
14415
14471
|
|
|
14416
14472
|
interface CookieStoreManager {
|
|
@@ -14419,13 +14475,13 @@ interface CookieStoreManager {
|
|
|
14419
14475
|
*
|
|
14420
14476
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
|
14421
14477
|
*/
|
|
14422
|
-
subscribe(subscriptions: CookieStoreGetOptions
|
|
14478
|
+
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
14423
14479
|
/**
|
|
14424
14480
|
* The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
|
14425
14481
|
*
|
|
14426
14482
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
|
14427
14483
|
*/
|
|
14428
|
-
unsubscribe(subscriptions: CookieStoreGetOptions
|
|
14484
|
+
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
14429
14485
|
}
|
|
14430
14486
|
|
|
14431
14487
|
interface DOMStringList {
|
|
@@ -14455,7 +14511,7 @@ interface FormData {
|
|
|
14455
14511
|
|
|
14456
14512
|
interface GPUBindingCommandsMixin {
|
|
14457
14513
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14458
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset
|
|
14514
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
14459
14515
|
}
|
|
14460
14516
|
|
|
14461
14517
|
interface GPURenderPassEncoder {
|
|
@@ -14464,13 +14520,13 @@ interface GPURenderPassEncoder {
|
|
|
14464
14520
|
*
|
|
14465
14521
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
14466
14522
|
*/
|
|
14467
|
-
executeBundles(bundles: GPURenderBundle
|
|
14523
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
14468
14524
|
/**
|
|
14469
14525
|
* The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
|
|
14470
14526
|
*
|
|
14471
14527
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
14472
14528
|
*/
|
|
14473
|
-
setBlendConstant(color: number
|
|
14529
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
14474
14530
|
}
|
|
14475
14531
|
|
|
14476
14532
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
@@ -14496,7 +14552,7 @@ interface IDBDatabase {
|
|
|
14496
14552
|
*
|
|
14497
14553
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
14498
14554
|
*/
|
|
14499
|
-
transaction(storeNames: string | string
|
|
14555
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
14500
14556
|
}
|
|
14501
14557
|
|
|
14502
14558
|
interface IDBObjectStore {
|
|
@@ -14505,7 +14561,7 @@ interface IDBObjectStore {
|
|
|
14505
14561
|
*
|
|
14506
14562
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
14507
14563
|
*/
|
|
14508
|
-
createIndex(name: string, keyPath: string | string
|
|
14564
|
+
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
14509
14565
|
}
|
|
14510
14566
|
|
|
14511
14567
|
interface ImageTrackList {
|
|
@@ -14514,7 +14570,7 @@ interface ImageTrackList {
|
|
|
14514
14570
|
|
|
14515
14571
|
interface MessageEvent<T = any> {
|
|
14516
14572
|
/** @deprecated */
|
|
14517
|
-
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort
|
|
14573
|
+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
14518
14574
|
}
|
|
14519
14575
|
|
|
14520
14576
|
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -14522,10 +14578,10 @@ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinI
|
|
|
14522
14578
|
}
|
|
14523
14579
|
|
|
14524
14580
|
interface StylePropertyMapReadOnly {
|
|
14525
|
-
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
14526
|
-
entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
14581
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
14582
|
+
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
14527
14583
|
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
14528
|
-
values(): StylePropertyMapReadOnlyIterator<CSSStyleValue
|
|
14584
|
+
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
14529
14585
|
}
|
|
14530
14586
|
|
|
14531
14587
|
interface SubtleCrypto {
|
|
@@ -14534,7 +14590,7 @@ interface SubtleCrypto {
|
|
|
14534
14590
|
*
|
|
14535
14591
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
14536
14592
|
*/
|
|
14537
|
-
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
14593
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
14538
14594
|
/**
|
|
14539
14595
|
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
14540
14596
|
*
|
|
@@ -14544,20 +14600,20 @@ interface SubtleCrypto {
|
|
|
14544
14600
|
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
14545
14601
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
14546
14602
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
14547
|
-
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage
|
|
14603
|
+
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
14548
14604
|
/**
|
|
14549
14605
|
* The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
|
|
14550
14606
|
*
|
|
14551
14607
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
14552
14608
|
*/
|
|
14553
14609
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
14554
|
-
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
14610
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
14555
14611
|
/**
|
|
14556
14612
|
* The **`unwrapKey()`** method of the SubtleCrypto interface "unwraps" a key. This means that it takes as its input a key that has been exported and then encrypted (also called "wrapped"). It decrypts the key and then imports it, returning a CryptoKey object that can be used in the Web Crypto API.
|
|
14557
14613
|
*
|
|
14558
14614
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
14559
14615
|
*/
|
|
14560
|
-
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
14616
|
+
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
14561
14617
|
}
|
|
14562
14618
|
|
|
14563
14619
|
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -14580,7 +14636,7 @@ interface WEBGL_draw_buffers {
|
|
|
14580
14636
|
*
|
|
14581
14637
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
14582
14638
|
*/
|
|
14583
|
-
drawBuffersWEBGL(buffers: GLenum
|
|
14639
|
+
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
14584
14640
|
}
|
|
14585
14641
|
|
|
14586
14642
|
interface WEBGL_multi_draw {
|
|
@@ -14589,25 +14645,25 @@ interface WEBGL_multi_draw {
|
|
|
14589
14645
|
*
|
|
14590
14646
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
14591
14647
|
*/
|
|
14592
|
-
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
14648
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
14593
14649
|
/**
|
|
14594
14650
|
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method.
|
|
14595
14651
|
*
|
|
14596
14652
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
14597
14653
|
*/
|
|
14598
|
-
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
14654
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
14599
14655
|
/**
|
|
14600
14656
|
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method.
|
|
14601
14657
|
*
|
|
14602
14658
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
14603
14659
|
*/
|
|
14604
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
14660
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
14605
14661
|
/**
|
|
14606
14662
|
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method.
|
|
14607
14663
|
*
|
|
14608
14664
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
14609
14665
|
*/
|
|
14610
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
14666
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
14611
14667
|
}
|
|
14612
14668
|
|
|
14613
14669
|
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
@@ -14615,108 +14671,108 @@ interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
|
14615
14671
|
|
|
14616
14672
|
interface WebGL2RenderingContextBase {
|
|
14617
14673
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
14618
|
-
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat
|
|
14674
|
+
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
|
14619
14675
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
14620
|
-
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint
|
|
14676
|
+
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
|
14621
14677
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
14622
|
-
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint
|
|
14678
|
+
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
|
14623
14679
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
|
14624
|
-
drawBuffers(buffers: GLenum
|
|
14680
|
+
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
14625
14681
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
14626
|
-
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint
|
|
14682
|
+
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
14627
14683
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
14628
|
-
getUniformIndices(program: WebGLProgram, uniformNames: string
|
|
14684
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
14629
14685
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
14630
|
-
invalidateFramebuffer(target: GLenum, attachments: GLenum
|
|
14686
|
+
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
14631
14687
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
14632
|
-
invalidateSubFramebuffer(target: GLenum, attachments: GLenum
|
|
14688
|
+
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
14633
14689
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
|
14634
|
-
transformFeedbackVaryings(program: WebGLProgram, varyings: string
|
|
14690
|
+
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
14635
14691
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
14636
|
-
uniform1uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
14692
|
+
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14637
14693
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
14638
|
-
uniform2uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
14694
|
+
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14639
14695
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
14640
|
-
uniform3uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
14696
|
+
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14641
14697
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
14642
|
-
uniform4uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
14698
|
+
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14643
14699
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
14644
|
-
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14700
|
+
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14645
14701
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
14646
|
-
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14702
|
+
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14647
14703
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
14648
|
-
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14704
|
+
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14649
14705
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
14650
|
-
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14706
|
+
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14651
14707
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
14652
|
-
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14708
|
+
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14653
14709
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
14654
|
-
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14710
|
+
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14655
14711
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
14656
|
-
vertexAttribI4iv(index: GLuint, values: GLint
|
|
14712
|
+
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
14657
14713
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
14658
|
-
vertexAttribI4uiv(index: GLuint, values: GLuint
|
|
14714
|
+
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
14659
14715
|
}
|
|
14660
14716
|
|
|
14661
14717
|
interface WebGL2RenderingContextOverloads {
|
|
14662
14718
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14663
|
-
uniform1fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
14719
|
+
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14664
14720
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14665
|
-
uniform1iv(location: WebGLUniformLocation | null, data: GLint
|
|
14721
|
+
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14666
14722
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14667
|
-
uniform2fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
14723
|
+
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14668
14724
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14669
|
-
uniform2iv(location: WebGLUniformLocation | null, data: GLint
|
|
14725
|
+
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14670
14726
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14671
|
-
uniform3fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
14727
|
+
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14672
14728
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14673
|
-
uniform3iv(location: WebGLUniformLocation | null, data: GLint
|
|
14729
|
+
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14674
14730
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14675
|
-
uniform4fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
14731
|
+
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14676
14732
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14677
|
-
uniform4iv(location: WebGLUniformLocation | null, data: GLint
|
|
14733
|
+
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14678
14734
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
14679
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14735
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14680
14736
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
14681
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14737
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14682
14738
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
14683
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
14739
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
14684
14740
|
}
|
|
14685
14741
|
|
|
14686
14742
|
interface WebGLRenderingContextBase {
|
|
14687
14743
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
14688
|
-
vertexAttrib1fv(index: GLuint, values: GLfloat
|
|
14744
|
+
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
14689
14745
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
14690
|
-
vertexAttrib2fv(index: GLuint, values: GLfloat
|
|
14746
|
+
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
14691
14747
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
14692
|
-
vertexAttrib3fv(index: GLuint, values: GLfloat
|
|
14748
|
+
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
14693
14749
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
14694
|
-
vertexAttrib4fv(index: GLuint, values: GLfloat
|
|
14750
|
+
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
14695
14751
|
}
|
|
14696
14752
|
|
|
14697
14753
|
interface WebGLRenderingContextOverloads {
|
|
14698
14754
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14699
|
-
uniform1fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
14755
|
+
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
14700
14756
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14701
|
-
uniform1iv(location: WebGLUniformLocation | null, v: GLint
|
|
14757
|
+
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
14702
14758
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14703
|
-
uniform2fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
14759
|
+
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
14704
14760
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14705
|
-
uniform2iv(location: WebGLUniformLocation | null, v: GLint
|
|
14761
|
+
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
14706
14762
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14707
|
-
uniform3fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
14763
|
+
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
14708
14764
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14709
|
-
uniform3iv(location: WebGLUniformLocation | null, v: GLint
|
|
14765
|
+
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
14710
14766
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14711
|
-
uniform4fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
14767
|
+
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
14712
14768
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
14713
|
-
uniform4iv(location: WebGLUniformLocation | null, v: GLint
|
|
14769
|
+
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
14714
14770
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
14715
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
14771
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
14716
14772
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
14717
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
14773
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
14718
14774
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
14719
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
14775
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
14720
14776
|
}
|
|
14721
14777
|
|
|
14722
14778
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -4909,6 +4909,62 @@ declare var FormData: {
|
|
|
4909
4909
|
new(): FormData;
|
|
4910
4910
|
};
|
|
4911
4911
|
|
|
4912
|
+
/**
|
|
4913
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4914
|
+
* Available only in secure contexts.
|
|
4915
|
+
*
|
|
4916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4917
|
+
*/
|
|
4918
|
+
interface GPUAdapterInfo {
|
|
4919
|
+
/**
|
|
4920
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
4921
|
+
*
|
|
4922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4923
|
+
*/
|
|
4924
|
+
readonly architecture: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
4927
|
+
*
|
|
4928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4929
|
+
*/
|
|
4930
|
+
readonly description: string;
|
|
4931
|
+
/**
|
|
4932
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4935
|
+
*/
|
|
4936
|
+
readonly device: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly isFallbackAdapter: boolean;
|
|
4943
|
+
/**
|
|
4944
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly subgroupMaxSize: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly subgroupMinSize: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4959
|
+
*/
|
|
4960
|
+
readonly vendor: string;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
declare var GPUAdapterInfo: {
|
|
4964
|
+
prototype: GPUAdapterInfo;
|
|
4965
|
+
new(): GPUAdapterInfo;
|
|
4966
|
+
};
|
|
4967
|
+
|
|
4912
4968
|
/**
|
|
4913
4969
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
4914
4970
|
* Available only in secure contexts.
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -4909,6 +4909,62 @@ declare var FormData: {
|
|
|
4909
4909
|
new(): FormData;
|
|
4910
4910
|
};
|
|
4911
4911
|
|
|
4912
|
+
/**
|
|
4913
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4914
|
+
* Available only in secure contexts.
|
|
4915
|
+
*
|
|
4916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4917
|
+
*/
|
|
4918
|
+
interface GPUAdapterInfo {
|
|
4919
|
+
/**
|
|
4920
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
4921
|
+
*
|
|
4922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4923
|
+
*/
|
|
4924
|
+
readonly architecture: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
4927
|
+
*
|
|
4928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4929
|
+
*/
|
|
4930
|
+
readonly description: string;
|
|
4931
|
+
/**
|
|
4932
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4935
|
+
*/
|
|
4936
|
+
readonly device: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly isFallbackAdapter: boolean;
|
|
4943
|
+
/**
|
|
4944
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly subgroupMaxSize: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly subgroupMinSize: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4959
|
+
*/
|
|
4960
|
+
readonly vendor: string;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
declare var GPUAdapterInfo: {
|
|
4964
|
+
prototype: GPUAdapterInfo;
|
|
4965
|
+
new(): GPUAdapterInfo;
|
|
4966
|
+
};
|
|
4967
|
+
|
|
4912
4968
|
/**
|
|
4913
4969
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
4914
4970
|
* Available only in secure contexts.
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -4909,6 +4909,62 @@ declare var FormData: {
|
|
|
4909
4909
|
new(): FormData;
|
|
4910
4910
|
};
|
|
4911
4911
|
|
|
4912
|
+
/**
|
|
4913
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4914
|
+
* Available only in secure contexts.
|
|
4915
|
+
*
|
|
4916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4917
|
+
*/
|
|
4918
|
+
interface GPUAdapterInfo {
|
|
4919
|
+
/**
|
|
4920
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
4921
|
+
*
|
|
4922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4923
|
+
*/
|
|
4924
|
+
readonly architecture: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
4927
|
+
*
|
|
4928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4929
|
+
*/
|
|
4930
|
+
readonly description: string;
|
|
4931
|
+
/**
|
|
4932
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4935
|
+
*/
|
|
4936
|
+
readonly device: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly isFallbackAdapter: boolean;
|
|
4943
|
+
/**
|
|
4944
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly subgroupMaxSize: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly subgroupMinSize: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4959
|
+
*/
|
|
4960
|
+
readonly vendor: string;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
declare var GPUAdapterInfo: {
|
|
4964
|
+
prototype: GPUAdapterInfo;
|
|
4965
|
+
new(): GPUAdapterInfo;
|
|
4966
|
+
};
|
|
4967
|
+
|
|
4912
4968
|
/**
|
|
4913
4969
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
4914
4970
|
* Available only in secure contexts.
|