@types/sharedworker 0.0.211 → 0.0.213
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 +178 -68
- package/package.json +1 -1
- package/ts5.5/index.d.ts +89 -0
- package/ts5.5/iterable.d.ts +21 -0
- package/ts5.6/index.d.ts +89 -0
- package/ts5.6/iterable.d.ts +21 -0
- package/ts5.9/index.d.ts +89 -0
- package/ts5.9/iterable.d.ts +21 -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.213 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.213.
|
package/index.d.ts
CHANGED
|
@@ -226,10 +226,38 @@ interface GPUColorDict {
|
|
|
226
226
|
r: number;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
+
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
230
|
+
colorSpace?: PredefinedColorSpace;
|
|
231
|
+
premultipliedAlpha?: boolean;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
interface GPUCopyExternalImageSourceInfo {
|
|
235
|
+
flipY?: boolean;
|
|
236
|
+
origin?: GPUOrigin2D;
|
|
237
|
+
source: GPUCopyExternalImageSource;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
interface GPUExtent3DDict {
|
|
241
|
+
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
242
|
+
height?: GPUIntegerCoordinate;
|
|
243
|
+
width: GPUIntegerCoordinate;
|
|
244
|
+
}
|
|
245
|
+
|
|
229
246
|
interface GPUObjectDescriptorBase {
|
|
230
247
|
label?: string;
|
|
231
248
|
}
|
|
232
249
|
|
|
250
|
+
interface GPUOrigin2DDict {
|
|
251
|
+
x?: GPUIntegerCoordinate;
|
|
252
|
+
y?: GPUIntegerCoordinate;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
interface GPUOrigin3DDict {
|
|
256
|
+
x?: GPUIntegerCoordinate;
|
|
257
|
+
y?: GPUIntegerCoordinate;
|
|
258
|
+
z?: GPUIntegerCoordinate;
|
|
259
|
+
}
|
|
260
|
+
|
|
233
261
|
interface GPUPipelineErrorInit {
|
|
234
262
|
reason: GPUPipelineErrorReason;
|
|
235
263
|
}
|
|
@@ -237,6 +265,19 @@ interface GPUPipelineErrorInit {
|
|
|
237
265
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
238
266
|
}
|
|
239
267
|
|
|
268
|
+
interface GPUTexelCopyBufferLayout {
|
|
269
|
+
bytesPerRow?: GPUSize32;
|
|
270
|
+
offset?: GPUSize64;
|
|
271
|
+
rowsPerImage?: GPUSize32;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface GPUTexelCopyTextureInfo {
|
|
275
|
+
aspect?: GPUTextureAspect;
|
|
276
|
+
mipLevel?: GPUIntegerCoordinate;
|
|
277
|
+
origin?: GPUOrigin3D;
|
|
278
|
+
texture: GPUTexture;
|
|
279
|
+
}
|
|
280
|
+
|
|
240
281
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
241
282
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
242
283
|
aspect?: GPUTextureAspect;
|
|
@@ -4348,6 +4389,50 @@ declare var GPUQuerySet: {
|
|
|
4348
4389
|
new(): GPUQuerySet;
|
|
4349
4390
|
};
|
|
4350
4391
|
|
|
4392
|
+
/**
|
|
4393
|
+
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
|
|
4394
|
+
* Available only in secure contexts.
|
|
4395
|
+
*
|
|
4396
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
4397
|
+
*/
|
|
4398
|
+
interface GPUQueue extends GPUObjectBase {
|
|
4399
|
+
/**
|
|
4400
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
4401
|
+
*
|
|
4402
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
4403
|
+
*/
|
|
4404
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
4405
|
+
/**
|
|
4406
|
+
* The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
|
|
4407
|
+
*
|
|
4408
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
|
|
4409
|
+
*/
|
|
4410
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
4411
|
+
/**
|
|
4412
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
4413
|
+
*
|
|
4414
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
4415
|
+
*/
|
|
4416
|
+
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
4417
|
+
/**
|
|
4418
|
+
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
|
|
4419
|
+
*
|
|
4420
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
|
|
4421
|
+
*/
|
|
4422
|
+
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
4423
|
+
/**
|
|
4424
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
4425
|
+
*
|
|
4426
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
4427
|
+
*/
|
|
4428
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
declare var GPUQueue: {
|
|
4432
|
+
prototype: GPUQueue;
|
|
4433
|
+
new(): GPUQueue;
|
|
4434
|
+
};
|
|
4435
|
+
|
|
4351
4436
|
/**
|
|
4352
4437
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4353
4438
|
* Available only in secure contexts.
|
|
@@ -12282,11 +12367,15 @@ type GLuint = number;
|
|
|
12282
12367
|
type GLuint64 = number;
|
|
12283
12368
|
type GPUBufferDynamicOffset = number;
|
|
12284
12369
|
type GPUColor = number[] | GPUColorDict;
|
|
12370
|
+
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12371
|
+
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
12285
12372
|
type GPUFlagsConstant = number;
|
|
12286
12373
|
type GPUIndex32 = number;
|
|
12287
12374
|
type GPUIntegerCoordinate = number;
|
|
12288
12375
|
type GPUIntegerCoordinateOut = number;
|
|
12289
12376
|
type GPUMapModeFlags = number;
|
|
12377
|
+
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12378
|
+
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
12290
12379
|
type GPUSignedOffset32 = number;
|
|
12291
12380
|
type GPUSize32 = number;
|
|
12292
12381
|
type GPUSize32Out = number;
|
|
@@ -12427,17 +12516,17 @@ interface Cache {
|
|
|
12427
12516
|
*
|
|
12428
12517
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
12429
12518
|
*/
|
|
12430
|
-
addAll(requests: RequestInfo
|
|
12519
|
+
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
12431
12520
|
}
|
|
12432
12521
|
|
|
12433
12522
|
interface CanvasPath {
|
|
12434
12523
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
|
|
12435
|
-
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit |
|
|
12524
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
12436
12525
|
}
|
|
12437
12526
|
|
|
12438
12527
|
interface CanvasPathDrawingStyles {
|
|
12439
12528
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
|
|
12440
|
-
setLineDash(segments: number
|
|
12529
|
+
setLineDash(segments: Iterable<number>): void;
|
|
12441
12530
|
}
|
|
12442
12531
|
|
|
12443
12532
|
interface DOMStringList {
|
|
@@ -12467,7 +12556,28 @@ interface FormData {
|
|
|
12467
12556
|
|
|
12468
12557
|
interface GPUBindingCommandsMixin {
|
|
12469
12558
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
12470
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset
|
|
12559
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
12560
|
+
}
|
|
12561
|
+
|
|
12562
|
+
interface GPUQueue {
|
|
12563
|
+
/**
|
|
12564
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
12565
|
+
*
|
|
12566
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
12567
|
+
*/
|
|
12568
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
12569
|
+
/**
|
|
12570
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
12571
|
+
*
|
|
12572
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
12573
|
+
*/
|
|
12574
|
+
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
|
|
12575
|
+
/**
|
|
12576
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
12577
|
+
*
|
|
12578
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
12579
|
+
*/
|
|
12580
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
|
|
12471
12581
|
}
|
|
12472
12582
|
|
|
12473
12583
|
interface GPURenderPassEncoder {
|
|
@@ -12476,13 +12586,13 @@ interface GPURenderPassEncoder {
|
|
|
12476
12586
|
*
|
|
12477
12587
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
12478
12588
|
*/
|
|
12479
|
-
executeBundles(bundles: GPURenderBundle
|
|
12589
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
12480
12590
|
/**
|
|
12481
12591
|
* 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).
|
|
12482
12592
|
*
|
|
12483
12593
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
12484
12594
|
*/
|
|
12485
|
-
setBlendConstant(color: number
|
|
12595
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
12486
12596
|
}
|
|
12487
12597
|
|
|
12488
12598
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
@@ -12508,7 +12618,7 @@ interface IDBDatabase {
|
|
|
12508
12618
|
*
|
|
12509
12619
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
12510
12620
|
*/
|
|
12511
|
-
transaction(storeNames: string | string
|
|
12621
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
12512
12622
|
}
|
|
12513
12623
|
|
|
12514
12624
|
interface IDBObjectStore {
|
|
@@ -12517,12 +12627,12 @@ interface IDBObjectStore {
|
|
|
12517
12627
|
*
|
|
12518
12628
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
12519
12629
|
*/
|
|
12520
|
-
createIndex(name: string, keyPath: string | string
|
|
12630
|
+
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
12521
12631
|
}
|
|
12522
12632
|
|
|
12523
12633
|
interface MessageEvent<T = any> {
|
|
12524
12634
|
/** @deprecated */
|
|
12525
|
-
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort
|
|
12635
|
+
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
12526
12636
|
}
|
|
12527
12637
|
|
|
12528
12638
|
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -12530,10 +12640,10 @@ interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinI
|
|
|
12530
12640
|
}
|
|
12531
12641
|
|
|
12532
12642
|
interface StylePropertyMapReadOnly {
|
|
12533
|
-
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
12534
|
-
entries(): StylePropertyMapReadOnlyIterator<[string, CSSStyleValue
|
|
12643
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
12644
|
+
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
12535
12645
|
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
12536
|
-
values(): StylePropertyMapReadOnlyIterator<CSSStyleValue
|
|
12646
|
+
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
12537
12647
|
}
|
|
12538
12648
|
|
|
12539
12649
|
interface SubtleCrypto {
|
|
@@ -12542,7 +12652,7 @@ interface SubtleCrypto {
|
|
|
12542
12652
|
*
|
|
12543
12653
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
12544
12654
|
*/
|
|
12545
|
-
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
12655
|
+
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
12546
12656
|
/**
|
|
12547
12657
|
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
12548
12658
|
*
|
|
@@ -12552,20 +12662,20 @@ interface SubtleCrypto {
|
|
|
12552
12662
|
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
12553
12663
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
12554
12664
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
12555
|
-
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage
|
|
12665
|
+
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
12556
12666
|
/**
|
|
12557
12667
|
* 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.
|
|
12558
12668
|
*
|
|
12559
12669
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
12560
12670
|
*/
|
|
12561
12671
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
12562
|
-
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
12672
|
+
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
12563
12673
|
/**
|
|
12564
12674
|
* 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.
|
|
12565
12675
|
*
|
|
12566
12676
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
12567
12677
|
*/
|
|
12568
|
-
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
12678
|
+
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>;
|
|
12569
12679
|
}
|
|
12570
12680
|
|
|
12571
12681
|
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
@@ -12588,7 +12698,7 @@ interface WEBGL_draw_buffers {
|
|
|
12588
12698
|
*
|
|
12589
12699
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
12590
12700
|
*/
|
|
12591
|
-
drawBuffersWEBGL(buffers: GLenum
|
|
12701
|
+
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
12592
12702
|
}
|
|
12593
12703
|
|
|
12594
12704
|
interface WEBGL_multi_draw {
|
|
@@ -12597,25 +12707,25 @@ interface WEBGL_multi_draw {
|
|
|
12597
12707
|
*
|
|
12598
12708
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
12599
12709
|
*/
|
|
12600
|
-
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
12710
|
+
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;
|
|
12601
12711
|
/**
|
|
12602
12712
|
* 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.
|
|
12603
12713
|
*
|
|
12604
12714
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
12605
12715
|
*/
|
|
12606
|
-
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint
|
|
12716
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
12607
12717
|
/**
|
|
12608
12718
|
* 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.
|
|
12609
12719
|
*
|
|
12610
12720
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
12611
12721
|
*/
|
|
12612
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
12722
|
+
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;
|
|
12613
12723
|
/**
|
|
12614
12724
|
* 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.
|
|
12615
12725
|
*
|
|
12616
12726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
12617
12727
|
*/
|
|
12618
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei
|
|
12728
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
12619
12729
|
}
|
|
12620
12730
|
|
|
12621
12731
|
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
@@ -12623,108 +12733,108 @@ interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
|
12623
12733
|
|
|
12624
12734
|
interface WebGL2RenderingContextBase {
|
|
12625
12735
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12626
|
-
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat
|
|
12736
|
+
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|
|
12627
12737
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12628
|
-
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: GLint
|
|
12738
|
+
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
|
|
12629
12739
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12630
|
-
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: GLuint
|
|
12740
|
+
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
|
|
12631
12741
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
|
|
12632
|
-
drawBuffers(buffers: GLenum
|
|
12742
|
+
drawBuffers(buffers: Iterable<GLenum>): void;
|
|
12633
12743
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
12634
|
-
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint
|
|
12744
|
+
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
12635
12745
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
12636
|
-
getUniformIndices(program: WebGLProgram, uniformNames: string
|
|
12746
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
12637
12747
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
12638
|
-
invalidateFramebuffer(target: GLenum, attachments: GLenum
|
|
12748
|
+
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
12639
12749
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
12640
|
-
invalidateSubFramebuffer(target: GLenum, attachments: GLenum
|
|
12750
|
+
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
|
|
12641
12751
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
|
|
12642
|
-
transformFeedbackVaryings(program: WebGLProgram, varyings: string
|
|
12752
|
+
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
|
|
12643
12753
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12644
|
-
uniform1uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12754
|
+
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12645
12755
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12646
|
-
uniform2uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12756
|
+
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12647
12757
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12648
|
-
uniform3uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12758
|
+
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12649
12759
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
|
|
12650
|
-
uniform4uiv(location: WebGLUniformLocation | null, data: GLuint
|
|
12760
|
+
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12651
12761
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12652
|
-
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12762
|
+
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12653
12763
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12654
|
-
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12764
|
+
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12655
12765
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12656
|
-
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12766
|
+
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12657
12767
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12658
|
-
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12768
|
+
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12659
12769
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12660
|
-
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12770
|
+
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12661
12771
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12662
|
-
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12772
|
+
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12663
12773
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
12664
|
-
vertexAttribI4iv(index: GLuint, values: GLint
|
|
12774
|
+
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
|
|
12665
12775
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
|
|
12666
|
-
vertexAttribI4uiv(index: GLuint, values: GLuint
|
|
12776
|
+
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
|
|
12667
12777
|
}
|
|
12668
12778
|
|
|
12669
12779
|
interface WebGL2RenderingContextOverloads {
|
|
12670
12780
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12671
|
-
uniform1fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12781
|
+
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12672
12782
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12673
|
-
uniform1iv(location: WebGLUniformLocation | null, data: GLint
|
|
12783
|
+
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12674
12784
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12675
|
-
uniform2fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12785
|
+
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12676
12786
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12677
|
-
uniform2iv(location: WebGLUniformLocation | null, data: GLint
|
|
12787
|
+
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12678
12788
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12679
|
-
uniform3fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12789
|
+
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12680
12790
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12681
|
-
uniform3iv(location: WebGLUniformLocation | null, data: GLint
|
|
12791
|
+
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12682
12792
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12683
|
-
uniform4fv(location: WebGLUniformLocation | null, data: GLfloat
|
|
12793
|
+
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12684
12794
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12685
|
-
uniform4iv(location: WebGLUniformLocation | null, data: GLint
|
|
12795
|
+
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12686
12796
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
12687
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12797
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12688
12798
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12689
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12799
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12690
12800
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12691
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: GLfloat
|
|
12801
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
12692
12802
|
}
|
|
12693
12803
|
|
|
12694
12804
|
interface WebGLRenderingContextBase {
|
|
12695
12805
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12696
|
-
vertexAttrib1fv(index: GLuint, values: GLfloat
|
|
12806
|
+
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12697
12807
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12698
|
-
vertexAttrib2fv(index: GLuint, values: GLfloat
|
|
12808
|
+
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12699
12809
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12700
|
-
vertexAttrib3fv(index: GLuint, values: GLfloat
|
|
12810
|
+
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12701
12811
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
|
|
12702
|
-
vertexAttrib4fv(index: GLuint, values: GLfloat
|
|
12812
|
+
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
|
|
12703
12813
|
}
|
|
12704
12814
|
|
|
12705
12815
|
interface WebGLRenderingContextOverloads {
|
|
12706
12816
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12707
|
-
uniform1fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12817
|
+
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12708
12818
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12709
|
-
uniform1iv(location: WebGLUniformLocation | null, v: GLint
|
|
12819
|
+
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12710
12820
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12711
|
-
uniform2fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12821
|
+
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12712
12822
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12713
|
-
uniform2iv(location: WebGLUniformLocation | null, v: GLint
|
|
12823
|
+
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12714
12824
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12715
|
-
uniform3fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12825
|
+
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12716
12826
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12717
|
-
uniform3iv(location: WebGLUniformLocation | null, v: GLint
|
|
12827
|
+
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12718
12828
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12719
|
-
uniform4fv(location: WebGLUniformLocation | null, v: GLfloat
|
|
12829
|
+
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
|
|
12720
12830
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
12721
|
-
uniform4iv(location: WebGLUniformLocation | null, v: GLint
|
|
12831
|
+
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
|
|
12722
12832
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12723
|
-
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
12833
|
+
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
12724
12834
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12725
|
-
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
12835
|
+
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
12726
12836
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
12727
|
-
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: GLfloat
|
|
12837
|
+
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
|
|
12728
12838
|
}
|
|
12729
12839
|
|
|
12730
12840
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -223,10 +223,38 @@ interface GPUColorDict {
|
|
|
223
223
|
r: number;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
227
|
+
colorSpace?: PredefinedColorSpace;
|
|
228
|
+
premultipliedAlpha?: boolean;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface GPUCopyExternalImageSourceInfo {
|
|
232
|
+
flipY?: boolean;
|
|
233
|
+
origin?: GPUOrigin2D;
|
|
234
|
+
source: GPUCopyExternalImageSource;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
interface GPUExtent3DDict {
|
|
238
|
+
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
239
|
+
height?: GPUIntegerCoordinate;
|
|
240
|
+
width: GPUIntegerCoordinate;
|
|
241
|
+
}
|
|
242
|
+
|
|
226
243
|
interface GPUObjectDescriptorBase {
|
|
227
244
|
label?: string;
|
|
228
245
|
}
|
|
229
246
|
|
|
247
|
+
interface GPUOrigin2DDict {
|
|
248
|
+
x?: GPUIntegerCoordinate;
|
|
249
|
+
y?: GPUIntegerCoordinate;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface GPUOrigin3DDict {
|
|
253
|
+
x?: GPUIntegerCoordinate;
|
|
254
|
+
y?: GPUIntegerCoordinate;
|
|
255
|
+
z?: GPUIntegerCoordinate;
|
|
256
|
+
}
|
|
257
|
+
|
|
230
258
|
interface GPUPipelineErrorInit {
|
|
231
259
|
reason: GPUPipelineErrorReason;
|
|
232
260
|
}
|
|
@@ -234,6 +262,19 @@ interface GPUPipelineErrorInit {
|
|
|
234
262
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
235
263
|
}
|
|
236
264
|
|
|
265
|
+
interface GPUTexelCopyBufferLayout {
|
|
266
|
+
bytesPerRow?: GPUSize32;
|
|
267
|
+
offset?: GPUSize64;
|
|
268
|
+
rowsPerImage?: GPUSize32;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface GPUTexelCopyTextureInfo {
|
|
272
|
+
aspect?: GPUTextureAspect;
|
|
273
|
+
mipLevel?: GPUIntegerCoordinate;
|
|
274
|
+
origin?: GPUOrigin3D;
|
|
275
|
+
texture: GPUTexture;
|
|
276
|
+
}
|
|
277
|
+
|
|
237
278
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
238
279
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
239
280
|
aspect?: GPUTextureAspect;
|
|
@@ -4345,6 +4386,50 @@ declare var GPUQuerySet: {
|
|
|
4345
4386
|
new(): GPUQuerySet;
|
|
4346
4387
|
};
|
|
4347
4388
|
|
|
4389
|
+
/**
|
|
4390
|
+
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
|
|
4391
|
+
* Available only in secure contexts.
|
|
4392
|
+
*
|
|
4393
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
4394
|
+
*/
|
|
4395
|
+
interface GPUQueue extends GPUObjectBase {
|
|
4396
|
+
/**
|
|
4397
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
4398
|
+
*
|
|
4399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
4400
|
+
*/
|
|
4401
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
4402
|
+
/**
|
|
4403
|
+
* The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
|
|
4404
|
+
*
|
|
4405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
|
|
4406
|
+
*/
|
|
4407
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
4408
|
+
/**
|
|
4409
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
4410
|
+
*
|
|
4411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
4412
|
+
*/
|
|
4413
|
+
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
4414
|
+
/**
|
|
4415
|
+
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
|
|
4416
|
+
*
|
|
4417
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
|
|
4418
|
+
*/
|
|
4419
|
+
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
4420
|
+
/**
|
|
4421
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
4422
|
+
*
|
|
4423
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
4424
|
+
*/
|
|
4425
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
declare var GPUQueue: {
|
|
4429
|
+
prototype: GPUQueue;
|
|
4430
|
+
new(): GPUQueue;
|
|
4431
|
+
};
|
|
4432
|
+
|
|
4348
4433
|
/**
|
|
4349
4434
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4350
4435
|
* Available only in secure contexts.
|
|
@@ -12279,11 +12364,15 @@ type GLuint = number;
|
|
|
12279
12364
|
type GLuint64 = number;
|
|
12280
12365
|
type GPUBufferDynamicOffset = number;
|
|
12281
12366
|
type GPUColor = number[] | GPUColorDict;
|
|
12367
|
+
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12368
|
+
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
12282
12369
|
type GPUFlagsConstant = number;
|
|
12283
12370
|
type GPUIndex32 = number;
|
|
12284
12371
|
type GPUIntegerCoordinate = number;
|
|
12285
12372
|
type GPUIntegerCoordinateOut = number;
|
|
12286
12373
|
type GPUMapModeFlags = number;
|
|
12374
|
+
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12375
|
+
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
12287
12376
|
type GPUSignedOffset32 = number;
|
|
12288
12377
|
type GPUSize32 = number;
|
|
12289
12378
|
type GPUSize32Out = number;
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -68,6 +68,27 @@ interface GPUBindingCommandsMixin {
|
|
|
68
68
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
interface GPUQueue {
|
|
72
|
+
/**
|
|
73
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
74
|
+
*
|
|
75
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
76
|
+
*/
|
|
77
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
78
|
+
/**
|
|
79
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
80
|
+
*
|
|
81
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
82
|
+
*/
|
|
83
|
+
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
|
|
84
|
+
/**
|
|
85
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
86
|
+
*
|
|
87
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
88
|
+
*/
|
|
89
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
71
92
|
interface GPURenderPassEncoder {
|
|
72
93
|
/**
|
|
73
94
|
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -223,10 +223,38 @@ interface GPUColorDict {
|
|
|
223
223
|
r: number;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
227
|
+
colorSpace?: PredefinedColorSpace;
|
|
228
|
+
premultipliedAlpha?: boolean;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface GPUCopyExternalImageSourceInfo {
|
|
232
|
+
flipY?: boolean;
|
|
233
|
+
origin?: GPUOrigin2D;
|
|
234
|
+
source: GPUCopyExternalImageSource;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
interface GPUExtent3DDict {
|
|
238
|
+
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
239
|
+
height?: GPUIntegerCoordinate;
|
|
240
|
+
width: GPUIntegerCoordinate;
|
|
241
|
+
}
|
|
242
|
+
|
|
226
243
|
interface GPUObjectDescriptorBase {
|
|
227
244
|
label?: string;
|
|
228
245
|
}
|
|
229
246
|
|
|
247
|
+
interface GPUOrigin2DDict {
|
|
248
|
+
x?: GPUIntegerCoordinate;
|
|
249
|
+
y?: GPUIntegerCoordinate;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface GPUOrigin3DDict {
|
|
253
|
+
x?: GPUIntegerCoordinate;
|
|
254
|
+
y?: GPUIntegerCoordinate;
|
|
255
|
+
z?: GPUIntegerCoordinate;
|
|
256
|
+
}
|
|
257
|
+
|
|
230
258
|
interface GPUPipelineErrorInit {
|
|
231
259
|
reason: GPUPipelineErrorReason;
|
|
232
260
|
}
|
|
@@ -234,6 +262,19 @@ interface GPUPipelineErrorInit {
|
|
|
234
262
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
235
263
|
}
|
|
236
264
|
|
|
265
|
+
interface GPUTexelCopyBufferLayout {
|
|
266
|
+
bytesPerRow?: GPUSize32;
|
|
267
|
+
offset?: GPUSize64;
|
|
268
|
+
rowsPerImage?: GPUSize32;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface GPUTexelCopyTextureInfo {
|
|
272
|
+
aspect?: GPUTextureAspect;
|
|
273
|
+
mipLevel?: GPUIntegerCoordinate;
|
|
274
|
+
origin?: GPUOrigin3D;
|
|
275
|
+
texture: GPUTexture;
|
|
276
|
+
}
|
|
277
|
+
|
|
237
278
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
238
279
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
239
280
|
aspect?: GPUTextureAspect;
|
|
@@ -4345,6 +4386,50 @@ declare var GPUQuerySet: {
|
|
|
4345
4386
|
new(): GPUQuerySet;
|
|
4346
4387
|
};
|
|
4347
4388
|
|
|
4389
|
+
/**
|
|
4390
|
+
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
|
|
4391
|
+
* Available only in secure contexts.
|
|
4392
|
+
*
|
|
4393
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
4394
|
+
*/
|
|
4395
|
+
interface GPUQueue extends GPUObjectBase {
|
|
4396
|
+
/**
|
|
4397
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
4398
|
+
*
|
|
4399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
4400
|
+
*/
|
|
4401
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
4402
|
+
/**
|
|
4403
|
+
* The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
|
|
4404
|
+
*
|
|
4405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
|
|
4406
|
+
*/
|
|
4407
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
4408
|
+
/**
|
|
4409
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
4410
|
+
*
|
|
4411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
4412
|
+
*/
|
|
4413
|
+
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
4414
|
+
/**
|
|
4415
|
+
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
|
|
4416
|
+
*
|
|
4417
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
|
|
4418
|
+
*/
|
|
4419
|
+
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
4420
|
+
/**
|
|
4421
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
4422
|
+
*
|
|
4423
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
4424
|
+
*/
|
|
4425
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
declare var GPUQueue: {
|
|
4429
|
+
prototype: GPUQueue;
|
|
4430
|
+
new(): GPUQueue;
|
|
4431
|
+
};
|
|
4432
|
+
|
|
4348
4433
|
/**
|
|
4349
4434
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4350
4435
|
* Available only in secure contexts.
|
|
@@ -12279,11 +12364,15 @@ type GLuint = number;
|
|
|
12279
12364
|
type GLuint64 = number;
|
|
12280
12365
|
type GPUBufferDynamicOffset = number;
|
|
12281
12366
|
type GPUColor = number[] | GPUColorDict;
|
|
12367
|
+
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12368
|
+
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
12282
12369
|
type GPUFlagsConstant = number;
|
|
12283
12370
|
type GPUIndex32 = number;
|
|
12284
12371
|
type GPUIntegerCoordinate = number;
|
|
12285
12372
|
type GPUIntegerCoordinateOut = number;
|
|
12286
12373
|
type GPUMapModeFlags = number;
|
|
12374
|
+
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12375
|
+
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
12287
12376
|
type GPUSignedOffset32 = number;
|
|
12288
12377
|
type GPUSize32 = number;
|
|
12289
12378
|
type GPUSize32Out = number;
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -72,6 +72,27 @@ interface GPUBindingCommandsMixin {
|
|
|
72
72
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
interface GPUQueue {
|
|
76
|
+
/**
|
|
77
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
78
|
+
*
|
|
79
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
80
|
+
*/
|
|
81
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
82
|
+
/**
|
|
83
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
84
|
+
*
|
|
85
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
86
|
+
*/
|
|
87
|
+
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
|
|
88
|
+
/**
|
|
89
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
90
|
+
*
|
|
91
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
92
|
+
*/
|
|
93
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
|
|
94
|
+
}
|
|
95
|
+
|
|
75
96
|
interface GPURenderPassEncoder {
|
|
76
97
|
/**
|
|
77
98
|
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -223,10 +223,38 @@ interface GPUColorDict {
|
|
|
223
223
|
r: number;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
227
|
+
colorSpace?: PredefinedColorSpace;
|
|
228
|
+
premultipliedAlpha?: boolean;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface GPUCopyExternalImageSourceInfo {
|
|
232
|
+
flipY?: boolean;
|
|
233
|
+
origin?: GPUOrigin2D;
|
|
234
|
+
source: GPUCopyExternalImageSource;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
interface GPUExtent3DDict {
|
|
238
|
+
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
239
|
+
height?: GPUIntegerCoordinate;
|
|
240
|
+
width: GPUIntegerCoordinate;
|
|
241
|
+
}
|
|
242
|
+
|
|
226
243
|
interface GPUObjectDescriptorBase {
|
|
227
244
|
label?: string;
|
|
228
245
|
}
|
|
229
246
|
|
|
247
|
+
interface GPUOrigin2DDict {
|
|
248
|
+
x?: GPUIntegerCoordinate;
|
|
249
|
+
y?: GPUIntegerCoordinate;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface GPUOrigin3DDict {
|
|
253
|
+
x?: GPUIntegerCoordinate;
|
|
254
|
+
y?: GPUIntegerCoordinate;
|
|
255
|
+
z?: GPUIntegerCoordinate;
|
|
256
|
+
}
|
|
257
|
+
|
|
230
258
|
interface GPUPipelineErrorInit {
|
|
231
259
|
reason: GPUPipelineErrorReason;
|
|
232
260
|
}
|
|
@@ -234,6 +262,19 @@ interface GPUPipelineErrorInit {
|
|
|
234
262
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
235
263
|
}
|
|
236
264
|
|
|
265
|
+
interface GPUTexelCopyBufferLayout {
|
|
266
|
+
bytesPerRow?: GPUSize32;
|
|
267
|
+
offset?: GPUSize64;
|
|
268
|
+
rowsPerImage?: GPUSize32;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface GPUTexelCopyTextureInfo {
|
|
272
|
+
aspect?: GPUTextureAspect;
|
|
273
|
+
mipLevel?: GPUIntegerCoordinate;
|
|
274
|
+
origin?: GPUOrigin3D;
|
|
275
|
+
texture: GPUTexture;
|
|
276
|
+
}
|
|
277
|
+
|
|
237
278
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
238
279
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
239
280
|
aspect?: GPUTextureAspect;
|
|
@@ -4345,6 +4386,50 @@ declare var GPUQuerySet: {
|
|
|
4345
4386
|
new(): GPUQuerySet;
|
|
4346
4387
|
};
|
|
4347
4388
|
|
|
4389
|
+
/**
|
|
4390
|
+
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
|
|
4391
|
+
* Available only in secure contexts.
|
|
4392
|
+
*
|
|
4393
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
4394
|
+
*/
|
|
4395
|
+
interface GPUQueue extends GPUObjectBase {
|
|
4396
|
+
/**
|
|
4397
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
4398
|
+
*
|
|
4399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
4400
|
+
*/
|
|
4401
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
4402
|
+
/**
|
|
4403
|
+
* The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
|
|
4404
|
+
*
|
|
4405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
|
|
4406
|
+
*/
|
|
4407
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
4408
|
+
/**
|
|
4409
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
4410
|
+
*
|
|
4411
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
4412
|
+
*/
|
|
4413
|
+
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
4414
|
+
/**
|
|
4415
|
+
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
|
|
4416
|
+
*
|
|
4417
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
|
|
4418
|
+
*/
|
|
4419
|
+
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
4420
|
+
/**
|
|
4421
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
4422
|
+
*
|
|
4423
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
4424
|
+
*/
|
|
4425
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
declare var GPUQueue: {
|
|
4429
|
+
prototype: GPUQueue;
|
|
4430
|
+
new(): GPUQueue;
|
|
4431
|
+
};
|
|
4432
|
+
|
|
4348
4433
|
/**
|
|
4349
4434
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4350
4435
|
* Available only in secure contexts.
|
|
@@ -12279,11 +12364,15 @@ type GLuint = number;
|
|
|
12279
12364
|
type GLuint64 = number;
|
|
12280
12365
|
type GPUBufferDynamicOffset = number;
|
|
12281
12366
|
type GPUColor = number[] | GPUColorDict;
|
|
12367
|
+
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12368
|
+
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
12282
12369
|
type GPUFlagsConstant = number;
|
|
12283
12370
|
type GPUIndex32 = number;
|
|
12284
12371
|
type GPUIntegerCoordinate = number;
|
|
12285
12372
|
type GPUIntegerCoordinateOut = number;
|
|
12286
12373
|
type GPUMapModeFlags = number;
|
|
12374
|
+
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12375
|
+
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
12287
12376
|
type GPUSignedOffset32 = number;
|
|
12288
12377
|
type GPUSize32 = number;
|
|
12289
12378
|
type GPUSize32Out = number;
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -72,6 +72,27 @@ interface GPUBindingCommandsMixin {
|
|
|
72
72
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
interface GPUQueue {
|
|
76
|
+
/**
|
|
77
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
78
|
+
*
|
|
79
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
80
|
+
*/
|
|
81
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
82
|
+
/**
|
|
83
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
84
|
+
*
|
|
85
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
86
|
+
*/
|
|
87
|
+
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
|
|
88
|
+
/**
|
|
89
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
90
|
+
*
|
|
91
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
92
|
+
*/
|
|
93
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
|
|
94
|
+
}
|
|
95
|
+
|
|
75
96
|
interface GPURenderPassEncoder {
|
|
76
97
|
/**
|
|
77
98
|
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|