@types/serviceworker 0.0.181 → 0.0.183
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
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.183 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.183.
|
package/index.d.ts
CHANGED
|
@@ -4210,6 +4210,62 @@ declare var FormData: {
|
|
|
4210
4210
|
new(): FormData;
|
|
4211
4211
|
};
|
|
4212
4212
|
|
|
4213
|
+
/**
|
|
4214
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4215
|
+
* Available only in secure contexts.
|
|
4216
|
+
*
|
|
4217
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4218
|
+
*/
|
|
4219
|
+
interface GPUAdapterInfo {
|
|
4220
|
+
/**
|
|
4221
|
+
* 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.
|
|
4222
|
+
*
|
|
4223
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4224
|
+
*/
|
|
4225
|
+
readonly architecture: string;
|
|
4226
|
+
/**
|
|
4227
|
+
* 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.
|
|
4228
|
+
*
|
|
4229
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4230
|
+
*/
|
|
4231
|
+
readonly description: string;
|
|
4232
|
+
/**
|
|
4233
|
+
* 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.
|
|
4234
|
+
*
|
|
4235
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4236
|
+
*/
|
|
4237
|
+
readonly device: string;
|
|
4238
|
+
/**
|
|
4239
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4240
|
+
*
|
|
4241
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4242
|
+
*/
|
|
4243
|
+
readonly isFallbackAdapter: boolean;
|
|
4244
|
+
/**
|
|
4245
|
+
* 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.
|
|
4246
|
+
*
|
|
4247
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4248
|
+
*/
|
|
4249
|
+
readonly subgroupMaxSize: number;
|
|
4250
|
+
/**
|
|
4251
|
+
* 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.
|
|
4252
|
+
*
|
|
4253
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4254
|
+
*/
|
|
4255
|
+
readonly subgroupMinSize: number;
|
|
4256
|
+
/**
|
|
4257
|
+
* 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.
|
|
4258
|
+
*
|
|
4259
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4260
|
+
*/
|
|
4261
|
+
readonly vendor: string;
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
declare var GPUAdapterInfo: {
|
|
4265
|
+
prototype: GPUAdapterInfo;
|
|
4266
|
+
new(): GPUAdapterInfo;
|
|
4267
|
+
};
|
|
4268
|
+
|
|
4213
4269
|
/**
|
|
4214
4270
|
* 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.
|
|
4215
4271
|
* Available only in secure contexts.
|
|
@@ -12704,17 +12760,17 @@ interface Cache {
|
|
|
12704
12760
|
*
|
|
12705
12761
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
12706
12762
|
*/
|
|
12707
|
-
addAll(requests: RequestInfo
|
|
12763
|
+
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
12708
12764
|
}
|
|
12709
12765
|
|
|
12710
12766
|
interface CanvasPath {
|
|
12711
12767
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
|
|
12712
|
-
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit |
|
|
12768
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
12713
12769
|
}
|
|
12714
12770
|
|
|
12715
12771
|
interface CanvasPathDrawingStyles {
|
|
12716
12772
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
|
|
12717
|
-
setLineDash(segments: number
|
|
12773
|
+
setLineDash(segments: Iterable<number>): void;
|
|
12718
12774
|
}
|
|
12719
12775
|
|
|
12720
12776
|
interface CookieStoreManager {
|
|
@@ -12723,13 +12779,13 @@ interface CookieStoreManager {
|
|
|
12723
12779
|
*
|
|
12724
12780
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
|
12725
12781
|
*/
|
|
12726
|
-
subscribe(subscriptions: CookieStoreGetOptions
|
|
12782
|
+
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
12727
12783
|
/**
|
|
12728
12784
|
* The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
|
12729
12785
|
*
|
|
12730
12786
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
|
12731
12787
|
*/
|
|
12732
|
-
unsubscribe(subscriptions: CookieStoreGetOptions
|
|
12788
|
+
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
12733
12789
|
}
|
|
12734
12790
|
|
|
12735
12791
|
interface DOMStringList {
|
|
@@ -12759,7 +12815,7 @@ interface FormData {
|
|
|
12759
12815
|
|
|
12760
12816
|
interface GPUBindingCommandsMixin {
|
|
12761
12817
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
12762
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset
|
|
12818
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
12763
12819
|
}
|
|
12764
12820
|
|
|
12765
12821
|
interface GPURenderPassEncoder {
|
|
@@ -12768,13 +12824,13 @@ interface GPURenderPassEncoder {
|
|
|
12768
12824
|
*
|
|
12769
12825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
12770
12826
|
*/
|
|
12771
|
-
executeBundles(bundles: GPURenderBundle
|
|
12827
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
12772
12828
|
/**
|
|
12773
12829
|
* 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).
|
|
12774
12830
|
*
|
|
12775
12831
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
12776
12832
|
*/
|
|
12777
|
-
setBlendConstant(color: number
|
|
12833
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
12778
12834
|
}
|
|
12779
12835
|
|
|
12780
12836
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
@@ -12800,7 +12856,7 @@ interface IDBDatabase {
|
|
|
12800
12856
|
*
|
|
12801
12857
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
12802
12858
|
*/
|
|
12803
|
-
transaction(storeNames: string | string
|
|
12859
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
12804
12860
|
}
|
|
12805
12861
|
|
|
12806
12862
|
interface IDBObjectStore {
|
|
@@ -12809,12 +12865,12 @@ interface IDBObjectStore {
|
|
|
12809
12865
|
*
|
|
12810
12866
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
12811
12867
|
*/
|
|
12812
|
-
createIndex(name: string, keyPath: string | string
|
|
12868
|
+
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
12813
12869
|
}
|
|
12814
12870
|
|
|
12815
12871
|
interface MessageEvent<T = any> {
|
|
12816
12872
|
/** @deprecated */
|
|
12817
|
-
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort
|
|
12873
|
+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
12818
12874
|
}
|
|
12819
12875
|
|
|
12820
12876
|
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -12822,10 +12878,10 @@ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinI
|
|
|
12822
12878
|
}
|
|
12823
12879
|
|
|
12824
12880
|
interface StylePropertyMapReadOnly {
|
|
12825
|
-
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
12826
|
-
entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
12881
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
12882
|
+
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
12827
12883
|
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
12828
|
-
values(): StylePropertyMapReadOnlyIterator<CSSStyleValue
|
|
12884
|
+
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
12829
12885
|
}
|
|
12830
12886
|
|
|
12831
12887
|
interface SubtleCrypto {
|
|
@@ -12834,7 +12890,7 @@ interface SubtleCrypto {
|
|
|
12834
12890
|
*
|
|
12835
12891
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
12836
12892
|
*/
|
|
12837
|
-
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
12893
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
12838
12894
|
/**
|
|
12839
12895
|
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
12840
12896
|
*
|
|
@@ -12844,20 +12900,20 @@ interface SubtleCrypto {
|
|
|
12844
12900
|
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
12845
12901
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
12846
12902
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
12847
|
-
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage
|
|
12903
|
+
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
12848
12904
|
/**
|
|
12849
12905
|
* 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.
|
|
12850
12906
|
*
|
|
12851
12907
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
12852
12908
|
*/
|
|
12853
12909
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
12854
|
-
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
12910
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
12855
12911
|
/**
|
|
12856
12912
|
* 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.
|
|
12857
12913
|
*
|
|
12858
12914
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
12859
12915
|
*/
|
|
12860
|
-
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
12916
|
+
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>;
|
|
12861
12917
|
}
|
|
12862
12918
|
|
|
12863
12919
|
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -12880,7 +12936,7 @@ interface WEBGL_draw_buffers {
|
|
|
12880
12936
|
*
|
|
12881
12937
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
12882
12938
|
*/
|
|
12883
|
-
drawBuffersWEBGL(buffers: GLenum
|
|
12939
|
+
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
12884
12940
|
}
|
|
12885
12941
|
|
|
12886
12942
|
interface WEBGL_multi_draw {
|
|
@@ -12889,25 +12945,25 @@ interface WEBGL_multi_draw {
|
|
|
12889
12945
|
*
|
|
12890
12946
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
12891
12947
|
*/
|
|
12892
|
-
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
12948
|
+
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;
|
|
12893
12949
|
/**
|
|
12894
12950
|
* 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.
|
|
12895
12951
|
*
|
|
12896
12952
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
12897
12953
|
*/
|
|
12898
|
-
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
12954
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
12899
12955
|
/**
|
|
12900
12956
|
* 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.
|
|
12901
12957
|
*
|
|
12902
12958
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
12903
12959
|
*/
|
|
12904
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
12960
|
+
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;
|
|
12905
12961
|
/**
|
|
12906
12962
|
* 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.
|
|
12907
12963
|
*
|
|
12908
12964
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
12909
12965
|
*/
|
|
12910
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
12966
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
12911
12967
|
}
|
|
12912
12968
|
|
|
12913
12969
|
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
@@ -12915,108 +12971,108 @@ interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
|
12915
12971
|
|
|
12916
12972
|
interface WebGL2RenderingContextBase {
|
|
12917
12973
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12918
|
-
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat
|
|
12974
|
+
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
|
12919
12975
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12920
|
-
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint
|
|
12976
|
+
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
|
12921
12977
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12922
|
-
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint
|
|
12978
|
+
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
|
12923
12979
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
|
12924
|
-
drawBuffers(buffers: GLenum
|
|
12980
|
+
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
12925
12981
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
12926
|
-
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint
|
|
12982
|
+
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
12927
12983
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
12928
|
-
getUniformIndices(program: WebGLProgram, uniformNames: string
|
|
12984
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
12929
12985
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
12930
|
-
invalidateFramebuffer(target: GLenum, attachments: GLenum
|
|
12986
|
+
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
12931
12987
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
12932
|
-
invalidateSubFramebuffer(target: GLenum, attachments: GLenum
|
|
12988
|
+
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
12933
12989
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
|
12934
|
-
transformFeedbackVaryings(program: WebGLProgram, varyings: string
|
|
12990
|
+
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
12935
12991
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12936
|
-
uniform1uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12992
|
+
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12937
12993
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12938
|
-
uniform2uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12994
|
+
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12939
12995
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12940
|
-
uniform3uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12996
|
+
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12941
12997
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12942
|
-
uniform4uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12998
|
+
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12943
12999
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12944
|
-
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13000
|
+
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12945
13001
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12946
|
-
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13002
|
+
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12947
13003
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12948
|
-
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13004
|
+
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12949
13005
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12950
|
-
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13006
|
+
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12951
13007
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12952
|
-
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13008
|
+
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12953
13009
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12954
|
-
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13010
|
+
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12955
13011
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
12956
|
-
vertexAttribI4iv(index: GLuint, values: GLint
|
|
13012
|
+
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
12957
13013
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
12958
|
-
vertexAttribI4uiv(index: GLuint, values: GLuint
|
|
13014
|
+
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
12959
13015
|
}
|
|
12960
13016
|
|
|
12961
13017
|
interface WebGL2RenderingContextOverloads {
|
|
12962
13018
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12963
|
-
uniform1fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
13019
|
+
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12964
13020
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12965
|
-
uniform1iv(location: WebGLUniformLocation | null, data: GLint
|
|
13021
|
+
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12966
13022
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12967
|
-
uniform2fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
13023
|
+
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12968
13024
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12969
|
-
uniform2iv(location: WebGLUniformLocation | null, data: GLint
|
|
13025
|
+
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12970
13026
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12971
|
-
uniform3fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
13027
|
+
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12972
13028
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12973
|
-
uniform3iv(location: WebGLUniformLocation | null, data: GLint
|
|
13029
|
+
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12974
13030
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12975
|
-
uniform4fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
13031
|
+
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12976
13032
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12977
|
-
uniform4iv(location: WebGLUniformLocation | null, data: GLint
|
|
13033
|
+
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12978
13034
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12979
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13035
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12980
13036
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12981
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13037
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12982
13038
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12983
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
13039
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12984
13040
|
}
|
|
12985
13041
|
|
|
12986
13042
|
interface WebGLRenderingContextBase {
|
|
12987
13043
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12988
|
-
vertexAttrib1fv(index: GLuint, values: GLfloat
|
|
13044
|
+
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12989
13045
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12990
|
-
vertexAttrib2fv(index: GLuint, values: GLfloat
|
|
13046
|
+
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12991
13047
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12992
|
-
vertexAttrib3fv(index: GLuint, values: GLfloat
|
|
13048
|
+
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12993
13049
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12994
|
-
vertexAttrib4fv(index: GLuint, values: GLfloat
|
|
13050
|
+
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12995
13051
|
}
|
|
12996
13052
|
|
|
12997
13053
|
interface WebGLRenderingContextOverloads {
|
|
12998
13054
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12999
|
-
uniform1fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
13055
|
+
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
13000
13056
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
13001
|
-
uniform1iv(location: WebGLUniformLocation | null, v: GLint
|
|
13057
|
+
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
13002
13058
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
13003
|
-
uniform2fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
13059
|
+
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
13004
13060
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
13005
|
-
uniform2iv(location: WebGLUniformLocation | null, v: GLint
|
|
13061
|
+
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
13006
13062
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
13007
|
-
uniform3fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
13063
|
+
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
13008
13064
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
13009
|
-
uniform3iv(location: WebGLUniformLocation | null, v: GLint
|
|
13065
|
+
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
13010
13066
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
13011
|
-
uniform4fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
13067
|
+
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
13012
13068
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
13013
|
-
uniform4iv(location: WebGLUniformLocation | null, v: GLint
|
|
13069
|
+
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
13014
13070
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
13015
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
13071
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
13016
13072
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
13017
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
13073
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
13018
13074
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
13019
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
13075
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
13020
13076
|
}
|
|
13021
13077
|
|
|
13022
13078
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -4207,6 +4207,62 @@ declare var FormData: {
|
|
|
4207
4207
|
new(): FormData;
|
|
4208
4208
|
};
|
|
4209
4209
|
|
|
4210
|
+
/**
|
|
4211
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4212
|
+
* Available only in secure contexts.
|
|
4213
|
+
*
|
|
4214
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4215
|
+
*/
|
|
4216
|
+
interface GPUAdapterInfo {
|
|
4217
|
+
/**
|
|
4218
|
+
* 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.
|
|
4219
|
+
*
|
|
4220
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4221
|
+
*/
|
|
4222
|
+
readonly architecture: string;
|
|
4223
|
+
/**
|
|
4224
|
+
* 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.
|
|
4225
|
+
*
|
|
4226
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4227
|
+
*/
|
|
4228
|
+
readonly description: string;
|
|
4229
|
+
/**
|
|
4230
|
+
* 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.
|
|
4231
|
+
*
|
|
4232
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4233
|
+
*/
|
|
4234
|
+
readonly device: string;
|
|
4235
|
+
/**
|
|
4236
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4237
|
+
*
|
|
4238
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4239
|
+
*/
|
|
4240
|
+
readonly isFallbackAdapter: boolean;
|
|
4241
|
+
/**
|
|
4242
|
+
* 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.
|
|
4243
|
+
*
|
|
4244
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4245
|
+
*/
|
|
4246
|
+
readonly subgroupMaxSize: number;
|
|
4247
|
+
/**
|
|
4248
|
+
* 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.
|
|
4249
|
+
*
|
|
4250
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4251
|
+
*/
|
|
4252
|
+
readonly subgroupMinSize: number;
|
|
4253
|
+
/**
|
|
4254
|
+
* 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.
|
|
4255
|
+
*
|
|
4256
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4257
|
+
*/
|
|
4258
|
+
readonly vendor: string;
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
declare var GPUAdapterInfo: {
|
|
4262
|
+
prototype: GPUAdapterInfo;
|
|
4263
|
+
new(): GPUAdapterInfo;
|
|
4264
|
+
};
|
|
4265
|
+
|
|
4210
4266
|
/**
|
|
4211
4267
|
* 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.
|
|
4212
4268
|
* Available only in secure contexts.
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -4207,6 +4207,62 @@ declare var FormData: {
|
|
|
4207
4207
|
new(): FormData;
|
|
4208
4208
|
};
|
|
4209
4209
|
|
|
4210
|
+
/**
|
|
4211
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4212
|
+
* Available only in secure contexts.
|
|
4213
|
+
*
|
|
4214
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4215
|
+
*/
|
|
4216
|
+
interface GPUAdapterInfo {
|
|
4217
|
+
/**
|
|
4218
|
+
* 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.
|
|
4219
|
+
*
|
|
4220
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4221
|
+
*/
|
|
4222
|
+
readonly architecture: string;
|
|
4223
|
+
/**
|
|
4224
|
+
* 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.
|
|
4225
|
+
*
|
|
4226
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4227
|
+
*/
|
|
4228
|
+
readonly description: string;
|
|
4229
|
+
/**
|
|
4230
|
+
* 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.
|
|
4231
|
+
*
|
|
4232
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4233
|
+
*/
|
|
4234
|
+
readonly device: string;
|
|
4235
|
+
/**
|
|
4236
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4237
|
+
*
|
|
4238
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4239
|
+
*/
|
|
4240
|
+
readonly isFallbackAdapter: boolean;
|
|
4241
|
+
/**
|
|
4242
|
+
* 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.
|
|
4243
|
+
*
|
|
4244
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4245
|
+
*/
|
|
4246
|
+
readonly subgroupMaxSize: number;
|
|
4247
|
+
/**
|
|
4248
|
+
* 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.
|
|
4249
|
+
*
|
|
4250
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4251
|
+
*/
|
|
4252
|
+
readonly subgroupMinSize: number;
|
|
4253
|
+
/**
|
|
4254
|
+
* 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.
|
|
4255
|
+
*
|
|
4256
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4257
|
+
*/
|
|
4258
|
+
readonly vendor: string;
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
declare var GPUAdapterInfo: {
|
|
4262
|
+
prototype: GPUAdapterInfo;
|
|
4263
|
+
new(): GPUAdapterInfo;
|
|
4264
|
+
};
|
|
4265
|
+
|
|
4210
4266
|
/**
|
|
4211
4267
|
* 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.
|
|
4212
4268
|
* Available only in secure contexts.
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -4207,6 +4207,62 @@ declare var FormData: {
|
|
|
4207
4207
|
new(): FormData;
|
|
4208
4208
|
};
|
|
4209
4209
|
|
|
4210
|
+
/**
|
|
4211
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4212
|
+
* Available only in secure contexts.
|
|
4213
|
+
*
|
|
4214
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4215
|
+
*/
|
|
4216
|
+
interface GPUAdapterInfo {
|
|
4217
|
+
/**
|
|
4218
|
+
* 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.
|
|
4219
|
+
*
|
|
4220
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4221
|
+
*/
|
|
4222
|
+
readonly architecture: string;
|
|
4223
|
+
/**
|
|
4224
|
+
* 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.
|
|
4225
|
+
*
|
|
4226
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4227
|
+
*/
|
|
4228
|
+
readonly description: string;
|
|
4229
|
+
/**
|
|
4230
|
+
* 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.
|
|
4231
|
+
*
|
|
4232
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4233
|
+
*/
|
|
4234
|
+
readonly device: string;
|
|
4235
|
+
/**
|
|
4236
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4237
|
+
*
|
|
4238
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4239
|
+
*/
|
|
4240
|
+
readonly isFallbackAdapter: boolean;
|
|
4241
|
+
/**
|
|
4242
|
+
* 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.
|
|
4243
|
+
*
|
|
4244
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4245
|
+
*/
|
|
4246
|
+
readonly subgroupMaxSize: number;
|
|
4247
|
+
/**
|
|
4248
|
+
* 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.
|
|
4249
|
+
*
|
|
4250
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4251
|
+
*/
|
|
4252
|
+
readonly subgroupMinSize: number;
|
|
4253
|
+
/**
|
|
4254
|
+
* 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.
|
|
4255
|
+
*
|
|
4256
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4257
|
+
*/
|
|
4258
|
+
readonly vendor: string;
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
declare var GPUAdapterInfo: {
|
|
4262
|
+
prototype: GPUAdapterInfo;
|
|
4263
|
+
new(): GPUAdapterInfo;
|
|
4264
|
+
};
|
|
4265
|
+
|
|
4210
4266
|
/**
|
|
4211
4267
|
* 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.
|
|
4212
4268
|
* Available only in secure contexts.
|