@types/sharedworker 0.0.210 → 0.0.212
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 +124 -68
- 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.212 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.212.
|
package/index.d.ts
CHANGED
|
@@ -3893,6 +3893,62 @@ declare var FormData: {
|
|
|
3893
3893
|
new(): FormData;
|
|
3894
3894
|
};
|
|
3895
3895
|
|
|
3896
|
+
/**
|
|
3897
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3898
|
+
* Available only in secure contexts.
|
|
3899
|
+
*
|
|
3900
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3901
|
+
*/
|
|
3902
|
+
interface GPUAdapterInfo {
|
|
3903
|
+
/**
|
|
3904
|
+
* 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.
|
|
3905
|
+
*
|
|
3906
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3907
|
+
*/
|
|
3908
|
+
readonly architecture: string;
|
|
3909
|
+
/**
|
|
3910
|
+
* 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.
|
|
3911
|
+
*
|
|
3912
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3913
|
+
*/
|
|
3914
|
+
readonly description: string;
|
|
3915
|
+
/**
|
|
3916
|
+
* 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.
|
|
3917
|
+
*
|
|
3918
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3919
|
+
*/
|
|
3920
|
+
readonly device: string;
|
|
3921
|
+
/**
|
|
3922
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3923
|
+
*
|
|
3924
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3925
|
+
*/
|
|
3926
|
+
readonly isFallbackAdapter: boolean;
|
|
3927
|
+
/**
|
|
3928
|
+
* 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.
|
|
3929
|
+
*
|
|
3930
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3931
|
+
*/
|
|
3932
|
+
readonly subgroupMaxSize: number;
|
|
3933
|
+
/**
|
|
3934
|
+
* 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.
|
|
3935
|
+
*
|
|
3936
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3937
|
+
*/
|
|
3938
|
+
readonly subgroupMinSize: number;
|
|
3939
|
+
/**
|
|
3940
|
+
* 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.
|
|
3941
|
+
*
|
|
3942
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3943
|
+
*/
|
|
3944
|
+
readonly vendor: string;
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
declare var GPUAdapterInfo: {
|
|
3948
|
+
prototype: GPUAdapterInfo;
|
|
3949
|
+
new(): GPUAdapterInfo;
|
|
3950
|
+
};
|
|
3951
|
+
|
|
3896
3952
|
/**
|
|
3897
3953
|
* 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.
|
|
3898
3954
|
* Available only in secure contexts.
|
|
@@ -12371,17 +12427,17 @@ interface Cache {
|
|
|
12371
12427
|
*
|
|
12372
12428
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
12373
12429
|
*/
|
|
12374
|
-
addAll(requests: RequestInfo
|
|
12430
|
+
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
12375
12431
|
}
|
|
12376
12432
|
|
|
12377
12433
|
interface CanvasPath {
|
|
12378
12434
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
|
|
12379
|
-
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit |
|
|
12435
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
12380
12436
|
}
|
|
12381
12437
|
|
|
12382
12438
|
interface CanvasPathDrawingStyles {
|
|
12383
12439
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
|
|
12384
|
-
setLineDash(segments: number
|
|
12440
|
+
setLineDash(segments: Iterable<number>): void;
|
|
12385
12441
|
}
|
|
12386
12442
|
|
|
12387
12443
|
interface DOMStringList {
|
|
@@ -12411,7 +12467,7 @@ interface FormData {
|
|
|
12411
12467
|
|
|
12412
12468
|
interface GPUBindingCommandsMixin {
|
|
12413
12469
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
12414
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset
|
|
12470
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
12415
12471
|
}
|
|
12416
12472
|
|
|
12417
12473
|
interface GPURenderPassEncoder {
|
|
@@ -12420,13 +12476,13 @@ interface GPURenderPassEncoder {
|
|
|
12420
12476
|
*
|
|
12421
12477
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
12422
12478
|
*/
|
|
12423
|
-
executeBundles(bundles: GPURenderBundle
|
|
12479
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
12424
12480
|
/**
|
|
12425
12481
|
* 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).
|
|
12426
12482
|
*
|
|
12427
12483
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
12428
12484
|
*/
|
|
12429
|
-
setBlendConstant(color: number
|
|
12485
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
12430
12486
|
}
|
|
12431
12487
|
|
|
12432
12488
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
@@ -12452,7 +12508,7 @@ interface IDBDatabase {
|
|
|
12452
12508
|
*
|
|
12453
12509
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
12454
12510
|
*/
|
|
12455
|
-
transaction(storeNames: string | string
|
|
12511
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
12456
12512
|
}
|
|
12457
12513
|
|
|
12458
12514
|
interface IDBObjectStore {
|
|
@@ -12461,12 +12517,12 @@ interface IDBObjectStore {
|
|
|
12461
12517
|
*
|
|
12462
12518
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
12463
12519
|
*/
|
|
12464
|
-
createIndex(name: string, keyPath: string | string
|
|
12520
|
+
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
12465
12521
|
}
|
|
12466
12522
|
|
|
12467
12523
|
interface MessageEvent<T = any> {
|
|
12468
12524
|
/** @deprecated */
|
|
12469
|
-
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort
|
|
12525
|
+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
12470
12526
|
}
|
|
12471
12527
|
|
|
12472
12528
|
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -12474,10 +12530,10 @@ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinI
|
|
|
12474
12530
|
}
|
|
12475
12531
|
|
|
12476
12532
|
interface StylePropertyMapReadOnly {
|
|
12477
|
-
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
12478
|
-
entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
12533
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
12534
|
+
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
12479
12535
|
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
12480
|
-
values(): StylePropertyMapReadOnlyIterator<CSSStyleValue
|
|
12536
|
+
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
12481
12537
|
}
|
|
12482
12538
|
|
|
12483
12539
|
interface SubtleCrypto {
|
|
@@ -12486,7 +12542,7 @@ interface SubtleCrypto {
|
|
|
12486
12542
|
*
|
|
12487
12543
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
12488
12544
|
*/
|
|
12489
|
-
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
12545
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
12490
12546
|
/**
|
|
12491
12547
|
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
12492
12548
|
*
|
|
@@ -12496,20 +12552,20 @@ interface SubtleCrypto {
|
|
|
12496
12552
|
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
12497
12553
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
12498
12554
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
12499
|
-
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage
|
|
12555
|
+
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
12500
12556
|
/**
|
|
12501
12557
|
* 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.
|
|
12502
12558
|
*
|
|
12503
12559
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
12504
12560
|
*/
|
|
12505
12561
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
12506
|
-
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
12562
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
12507
12563
|
/**
|
|
12508
12564
|
* 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.
|
|
12509
12565
|
*
|
|
12510
12566
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
12511
12567
|
*/
|
|
12512
|
-
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
12568
|
+
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>;
|
|
12513
12569
|
}
|
|
12514
12570
|
|
|
12515
12571
|
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -12532,7 +12588,7 @@ interface WEBGL_draw_buffers {
|
|
|
12532
12588
|
*
|
|
12533
12589
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
12534
12590
|
*/
|
|
12535
|
-
drawBuffersWEBGL(buffers: GLenum
|
|
12591
|
+
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
12536
12592
|
}
|
|
12537
12593
|
|
|
12538
12594
|
interface WEBGL_multi_draw {
|
|
@@ -12541,25 +12597,25 @@ interface WEBGL_multi_draw {
|
|
|
12541
12597
|
*
|
|
12542
12598
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
12543
12599
|
*/
|
|
12544
|
-
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
12600
|
+
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;
|
|
12545
12601
|
/**
|
|
12546
12602
|
* 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.
|
|
12547
12603
|
*
|
|
12548
12604
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
12549
12605
|
*/
|
|
12550
|
-
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
12606
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
12551
12607
|
/**
|
|
12552
12608
|
* 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.
|
|
12553
12609
|
*
|
|
12554
12610
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
12555
12611
|
*/
|
|
12556
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
12612
|
+
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;
|
|
12557
12613
|
/**
|
|
12558
12614
|
* 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.
|
|
12559
12615
|
*
|
|
12560
12616
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
12561
12617
|
*/
|
|
12562
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
12618
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
12563
12619
|
}
|
|
12564
12620
|
|
|
12565
12621
|
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
@@ -12567,108 +12623,108 @@ interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
|
12567
12623
|
|
|
12568
12624
|
interface WebGL2RenderingContextBase {
|
|
12569
12625
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12570
|
-
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat
|
|
12626
|
+
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
|
12571
12627
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12572
|
-
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint
|
|
12628
|
+
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
|
12573
12629
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12574
|
-
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint
|
|
12630
|
+
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
|
12575
12631
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
|
12576
|
-
drawBuffers(buffers: GLenum
|
|
12632
|
+
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
12577
12633
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
12578
|
-
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint
|
|
12634
|
+
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
12579
12635
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
12580
|
-
getUniformIndices(program: WebGLProgram, uniformNames: string
|
|
12636
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
12581
12637
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
12582
|
-
invalidateFramebuffer(target: GLenum, attachments: GLenum
|
|
12638
|
+
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
12583
12639
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
12584
|
-
invalidateSubFramebuffer(target: GLenum, attachments: GLenum
|
|
12640
|
+
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
12585
12641
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
|
12586
|
-
transformFeedbackVaryings(program: WebGLProgram, varyings: string
|
|
12642
|
+
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
12587
12643
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12588
|
-
uniform1uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12644
|
+
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12589
12645
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12590
|
-
uniform2uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12646
|
+
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12591
12647
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12592
|
-
uniform3uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12648
|
+
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12593
12649
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12594
|
-
uniform4uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12650
|
+
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12595
12651
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12596
|
-
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12652
|
+
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12597
12653
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12598
|
-
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12654
|
+
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12599
12655
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12600
|
-
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12656
|
+
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12601
12657
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12602
|
-
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12658
|
+
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12603
12659
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12604
|
-
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12660
|
+
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12605
12661
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12606
|
-
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12662
|
+
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12607
12663
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
12608
|
-
vertexAttribI4iv(index: GLuint, values: GLint
|
|
12664
|
+
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
12609
12665
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
12610
|
-
vertexAttribI4uiv(index: GLuint, values: GLuint
|
|
12666
|
+
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
12611
12667
|
}
|
|
12612
12668
|
|
|
12613
12669
|
interface WebGL2RenderingContextOverloads {
|
|
12614
12670
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12615
|
-
uniform1fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12671
|
+
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12616
12672
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12617
|
-
uniform1iv(location: WebGLUniformLocation | null, data: GLint
|
|
12673
|
+
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12618
12674
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12619
|
-
uniform2fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12675
|
+
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12620
12676
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12621
|
-
uniform2iv(location: WebGLUniformLocation | null, data: GLint
|
|
12677
|
+
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12622
12678
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12623
|
-
uniform3fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12679
|
+
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12624
12680
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12625
|
-
uniform3iv(location: WebGLUniformLocation | null, data: GLint
|
|
12681
|
+
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12626
12682
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12627
|
-
uniform4fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12683
|
+
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12628
12684
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12629
|
-
uniform4iv(location: WebGLUniformLocation | null, data: GLint
|
|
12685
|
+
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12630
12686
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12631
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12687
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12632
12688
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12633
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12689
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12634
12690
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12635
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12691
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12636
12692
|
}
|
|
12637
12693
|
|
|
12638
12694
|
interface WebGLRenderingContextBase {
|
|
12639
12695
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12640
|
-
vertexAttrib1fv(index: GLuint, values: GLfloat
|
|
12696
|
+
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12641
12697
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12642
|
-
vertexAttrib2fv(index: GLuint, values: GLfloat
|
|
12698
|
+
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12643
12699
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12644
|
-
vertexAttrib3fv(index: GLuint, values: GLfloat
|
|
12700
|
+
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12645
12701
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12646
|
-
vertexAttrib4fv(index: GLuint, values: GLfloat
|
|
12702
|
+
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12647
12703
|
}
|
|
12648
12704
|
|
|
12649
12705
|
interface WebGLRenderingContextOverloads {
|
|
12650
12706
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12651
|
-
uniform1fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12707
|
+
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12652
12708
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12653
|
-
uniform1iv(location: WebGLUniformLocation | null, v: GLint
|
|
12709
|
+
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12654
12710
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12655
|
-
uniform2fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12711
|
+
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12656
12712
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12657
|
-
uniform2iv(location: WebGLUniformLocation | null, v: GLint
|
|
12713
|
+
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12658
12714
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12659
|
-
uniform3fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12715
|
+
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12660
12716
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12661
|
-
uniform3iv(location: WebGLUniformLocation | null, v: GLint
|
|
12717
|
+
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12662
12718
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12663
|
-
uniform4fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12719
|
+
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12664
12720
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12665
|
-
uniform4iv(location: WebGLUniformLocation | null, v: GLint
|
|
12721
|
+
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12666
12722
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12667
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
12723
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
12668
12724
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12669
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
12725
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
12670
12726
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12671
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
12727
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
12672
12728
|
}
|
|
12673
12729
|
|
|
12674
12730
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -3890,6 +3890,62 @@ declare var FormData: {
|
|
|
3890
3890
|
new(): FormData;
|
|
3891
3891
|
};
|
|
3892
3892
|
|
|
3893
|
+
/**
|
|
3894
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3895
|
+
* Available only in secure contexts.
|
|
3896
|
+
*
|
|
3897
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3898
|
+
*/
|
|
3899
|
+
interface GPUAdapterInfo {
|
|
3900
|
+
/**
|
|
3901
|
+
* 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.
|
|
3902
|
+
*
|
|
3903
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3904
|
+
*/
|
|
3905
|
+
readonly architecture: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* 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.
|
|
3908
|
+
*
|
|
3909
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3910
|
+
*/
|
|
3911
|
+
readonly description: string;
|
|
3912
|
+
/**
|
|
3913
|
+
* 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.
|
|
3914
|
+
*
|
|
3915
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3916
|
+
*/
|
|
3917
|
+
readonly device: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3920
|
+
*
|
|
3921
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3922
|
+
*/
|
|
3923
|
+
readonly isFallbackAdapter: boolean;
|
|
3924
|
+
/**
|
|
3925
|
+
* 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.
|
|
3926
|
+
*
|
|
3927
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3928
|
+
*/
|
|
3929
|
+
readonly subgroupMaxSize: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* 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.
|
|
3932
|
+
*
|
|
3933
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3934
|
+
*/
|
|
3935
|
+
readonly subgroupMinSize: number;
|
|
3936
|
+
/**
|
|
3937
|
+
* 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.
|
|
3938
|
+
*
|
|
3939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3940
|
+
*/
|
|
3941
|
+
readonly vendor: string;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
declare var GPUAdapterInfo: {
|
|
3945
|
+
prototype: GPUAdapterInfo;
|
|
3946
|
+
new(): GPUAdapterInfo;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3893
3949
|
/**
|
|
3894
3950
|
* 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.
|
|
3895
3951
|
* Available only in secure contexts.
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -3890,6 +3890,62 @@ declare var FormData: {
|
|
|
3890
3890
|
new(): FormData;
|
|
3891
3891
|
};
|
|
3892
3892
|
|
|
3893
|
+
/**
|
|
3894
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3895
|
+
* Available only in secure contexts.
|
|
3896
|
+
*
|
|
3897
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3898
|
+
*/
|
|
3899
|
+
interface GPUAdapterInfo {
|
|
3900
|
+
/**
|
|
3901
|
+
* 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.
|
|
3902
|
+
*
|
|
3903
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3904
|
+
*/
|
|
3905
|
+
readonly architecture: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* 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.
|
|
3908
|
+
*
|
|
3909
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3910
|
+
*/
|
|
3911
|
+
readonly description: string;
|
|
3912
|
+
/**
|
|
3913
|
+
* 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.
|
|
3914
|
+
*
|
|
3915
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3916
|
+
*/
|
|
3917
|
+
readonly device: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3920
|
+
*
|
|
3921
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3922
|
+
*/
|
|
3923
|
+
readonly isFallbackAdapter: boolean;
|
|
3924
|
+
/**
|
|
3925
|
+
* 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.
|
|
3926
|
+
*
|
|
3927
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3928
|
+
*/
|
|
3929
|
+
readonly subgroupMaxSize: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* 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.
|
|
3932
|
+
*
|
|
3933
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3934
|
+
*/
|
|
3935
|
+
readonly subgroupMinSize: number;
|
|
3936
|
+
/**
|
|
3937
|
+
* 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.
|
|
3938
|
+
*
|
|
3939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3940
|
+
*/
|
|
3941
|
+
readonly vendor: string;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
declare var GPUAdapterInfo: {
|
|
3945
|
+
prototype: GPUAdapterInfo;
|
|
3946
|
+
new(): GPUAdapterInfo;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3893
3949
|
/**
|
|
3894
3950
|
* 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.
|
|
3895
3951
|
* Available only in secure contexts.
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -3890,6 +3890,62 @@ declare var FormData: {
|
|
|
3890
3890
|
new(): FormData;
|
|
3891
3891
|
};
|
|
3892
3892
|
|
|
3893
|
+
/**
|
|
3894
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3895
|
+
* Available only in secure contexts.
|
|
3896
|
+
*
|
|
3897
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3898
|
+
*/
|
|
3899
|
+
interface GPUAdapterInfo {
|
|
3900
|
+
/**
|
|
3901
|
+
* 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.
|
|
3902
|
+
*
|
|
3903
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3904
|
+
*/
|
|
3905
|
+
readonly architecture: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* 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.
|
|
3908
|
+
*
|
|
3909
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3910
|
+
*/
|
|
3911
|
+
readonly description: string;
|
|
3912
|
+
/**
|
|
3913
|
+
* 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.
|
|
3914
|
+
*
|
|
3915
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3916
|
+
*/
|
|
3917
|
+
readonly device: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3920
|
+
*
|
|
3921
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3922
|
+
*/
|
|
3923
|
+
readonly isFallbackAdapter: boolean;
|
|
3924
|
+
/**
|
|
3925
|
+
* 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.
|
|
3926
|
+
*
|
|
3927
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3928
|
+
*/
|
|
3929
|
+
readonly subgroupMaxSize: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* 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.
|
|
3932
|
+
*
|
|
3933
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3934
|
+
*/
|
|
3935
|
+
readonly subgroupMinSize: number;
|
|
3936
|
+
/**
|
|
3937
|
+
* 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.
|
|
3938
|
+
*
|
|
3939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3940
|
+
*/
|
|
3941
|
+
readonly vendor: string;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
declare var GPUAdapterInfo: {
|
|
3945
|
+
prototype: GPUAdapterInfo;
|
|
3946
|
+
new(): GPUAdapterInfo;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3893
3949
|
/**
|
|
3894
3950
|
* 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.
|
|
3895
3951
|
* Available only in secure contexts.
|