@types/serviceworker 0.0.178 → 0.0.180
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 +96 -2
- package/package.json +1 -1
- package/ts5.5/index.d.ts +91 -2
- package/ts5.5/iterable.d.ts +5 -0
- package/ts5.6/index.d.ts +91 -2
- package/ts5.6/iterable.d.ts +5 -0
- package/ts5.9/index.d.ts +91 -2
- package/ts5.9/iterable.d.ts +5 -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.180 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.180.
|
package/index.d.ts
CHANGED
|
@@ -4228,6 +4228,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4228
4228
|
new(): GPUBindGroupLayout;
|
|
4229
4229
|
};
|
|
4230
4230
|
|
|
4231
|
+
interface GPUBindingCommandsMixin {
|
|
4232
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4233
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4234
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4231
4237
|
/**
|
|
4232
4238
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
4233
4239
|
* Available only in secure contexts.
|
|
@@ -4368,6 +4374,44 @@ declare var GPUCompilationMessage: {
|
|
|
4368
4374
|
new(): GPUCompilationMessage;
|
|
4369
4375
|
};
|
|
4370
4376
|
|
|
4377
|
+
/**
|
|
4378
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
4379
|
+
* Available only in secure contexts.
|
|
4380
|
+
*
|
|
4381
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
4382
|
+
*/
|
|
4383
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
4384
|
+
/**
|
|
4385
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4386
|
+
*
|
|
4387
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
4388
|
+
*/
|
|
4389
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
4390
|
+
/**
|
|
4391
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4392
|
+
*
|
|
4393
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
4394
|
+
*/
|
|
4395
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4396
|
+
/**
|
|
4397
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
4398
|
+
*
|
|
4399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
4400
|
+
*/
|
|
4401
|
+
end(): void;
|
|
4402
|
+
/**
|
|
4403
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
4404
|
+
*
|
|
4405
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
4406
|
+
*/
|
|
4407
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
declare var GPUComputePassEncoder: {
|
|
4411
|
+
prototype: GPUComputePassEncoder;
|
|
4412
|
+
new(): GPUComputePassEncoder;
|
|
4413
|
+
};
|
|
4414
|
+
|
|
4371
4415
|
/**
|
|
4372
4416
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4373
4417
|
* Available only in secure contexts.
|
|
@@ -4382,6 +4426,15 @@ declare var GPUComputePipeline: {
|
|
|
4382
4426
|
new(): GPUComputePipeline;
|
|
4383
4427
|
};
|
|
4384
4428
|
|
|
4429
|
+
interface GPUDebugCommandsMixin {
|
|
4430
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
4431
|
+
insertDebugMarker(markerLabel: string): void;
|
|
4432
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
4433
|
+
popDebugGroup(): void;
|
|
4434
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
4435
|
+
pushDebugGroup(groupLabel: string): void;
|
|
4436
|
+
}
|
|
4437
|
+
|
|
4385
4438
|
/**
|
|
4386
4439
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
4387
4440
|
* Available only in secure contexts.
|
|
@@ -4514,6 +4567,38 @@ declare var GPUPipelineLayout: {
|
|
|
4514
4567
|
new(): GPUPipelineLayout;
|
|
4515
4568
|
};
|
|
4516
4569
|
|
|
4570
|
+
/**
|
|
4571
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4572
|
+
* Available only in secure contexts.
|
|
4573
|
+
*
|
|
4574
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
4575
|
+
*/
|
|
4576
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
4577
|
+
/**
|
|
4578
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
4579
|
+
*
|
|
4580
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
4581
|
+
*/
|
|
4582
|
+
readonly count: GPUSize32Out;
|
|
4583
|
+
/**
|
|
4584
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
4585
|
+
*
|
|
4586
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
4587
|
+
*/
|
|
4588
|
+
readonly type: GPUQueryType;
|
|
4589
|
+
/**
|
|
4590
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
4591
|
+
*
|
|
4592
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
4593
|
+
*/
|
|
4594
|
+
destroy(): void;
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
declare var GPUQuerySet: {
|
|
4598
|
+
prototype: GPUQuerySet;
|
|
4599
|
+
new(): GPUQuerySet;
|
|
4600
|
+
};
|
|
4601
|
+
|
|
4517
4602
|
/**
|
|
4518
4603
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4519
4604
|
* Available only in secure contexts.
|
|
@@ -11469,7 +11554,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
11469
11554
|
*/
|
|
11470
11555
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
11471
11556
|
/**
|
|
11472
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
11557
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
11473
11558
|
*
|
|
11474
11559
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
11475
11560
|
*/
|
|
@@ -12270,7 +12355,7 @@ declare var onunhandledrejection: ((this: ServiceWorkerGlobalScope, ev: PromiseR
|
|
|
12270
12355
|
*/
|
|
12271
12356
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
12272
12357
|
/**
|
|
12273
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
12358
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
12274
12359
|
*
|
|
12275
12360
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12276
12361
|
*/
|
|
@@ -12360,10 +12445,13 @@ type GLsizei = number;
|
|
|
12360
12445
|
type GLsizeiptr = number;
|
|
12361
12446
|
type GLuint = number;
|
|
12362
12447
|
type GLuint64 = number;
|
|
12448
|
+
type GPUBufferDynamicOffset = number;
|
|
12363
12449
|
type GPUFlagsConstant = number;
|
|
12450
|
+
type GPUIndex32 = number;
|
|
12364
12451
|
type GPUIntegerCoordinate = number;
|
|
12365
12452
|
type GPUIntegerCoordinateOut = number;
|
|
12366
12453
|
type GPUMapModeFlags = number;
|
|
12454
|
+
type GPUSize32 = number;
|
|
12367
12455
|
type GPUSize32Out = number;
|
|
12368
12456
|
type GPUSize64 = number;
|
|
12369
12457
|
type GPUSize64Out = number;
|
|
@@ -12420,6 +12508,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
12420
12508
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12421
12509
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12422
12510
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12511
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
12423
12512
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12424
12513
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12425
12514
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
@@ -12555,6 +12644,11 @@ interface FormData {
|
|
|
12555
12644
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
12556
12645
|
}
|
|
12557
12646
|
|
|
12647
|
+
interface GPUBindingCommandsMixin {
|
|
12648
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
12649
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
12650
|
+
}
|
|
12651
|
+
|
|
12558
12652
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
12559
12653
|
}
|
|
12560
12654
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -4225,6 +4225,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4225
4225
|
new(): GPUBindGroupLayout;
|
|
4226
4226
|
};
|
|
4227
4227
|
|
|
4228
|
+
interface GPUBindingCommandsMixin {
|
|
4229
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4230
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4231
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4228
4234
|
/**
|
|
4229
4235
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
4230
4236
|
* Available only in secure contexts.
|
|
@@ -4365,6 +4371,44 @@ declare var GPUCompilationMessage: {
|
|
|
4365
4371
|
new(): GPUCompilationMessage;
|
|
4366
4372
|
};
|
|
4367
4373
|
|
|
4374
|
+
/**
|
|
4375
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
4376
|
+
* Available only in secure contexts.
|
|
4377
|
+
*
|
|
4378
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
4379
|
+
*/
|
|
4380
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
4381
|
+
/**
|
|
4382
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4383
|
+
*
|
|
4384
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
4385
|
+
*/
|
|
4386
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
4387
|
+
/**
|
|
4388
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4389
|
+
*
|
|
4390
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
4391
|
+
*/
|
|
4392
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4393
|
+
/**
|
|
4394
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
4395
|
+
*
|
|
4396
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
4397
|
+
*/
|
|
4398
|
+
end(): void;
|
|
4399
|
+
/**
|
|
4400
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
4401
|
+
*
|
|
4402
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
4403
|
+
*/
|
|
4404
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4407
|
+
declare var GPUComputePassEncoder: {
|
|
4408
|
+
prototype: GPUComputePassEncoder;
|
|
4409
|
+
new(): GPUComputePassEncoder;
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4368
4412
|
/**
|
|
4369
4413
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4370
4414
|
* Available only in secure contexts.
|
|
@@ -4379,6 +4423,15 @@ declare var GPUComputePipeline: {
|
|
|
4379
4423
|
new(): GPUComputePipeline;
|
|
4380
4424
|
};
|
|
4381
4425
|
|
|
4426
|
+
interface GPUDebugCommandsMixin {
|
|
4427
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
4428
|
+
insertDebugMarker(markerLabel: string): void;
|
|
4429
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
4430
|
+
popDebugGroup(): void;
|
|
4431
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
4432
|
+
pushDebugGroup(groupLabel: string): void;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4382
4435
|
/**
|
|
4383
4436
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
4384
4437
|
* Available only in secure contexts.
|
|
@@ -4511,6 +4564,38 @@ declare var GPUPipelineLayout: {
|
|
|
4511
4564
|
new(): GPUPipelineLayout;
|
|
4512
4565
|
};
|
|
4513
4566
|
|
|
4567
|
+
/**
|
|
4568
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4569
|
+
* Available only in secure contexts.
|
|
4570
|
+
*
|
|
4571
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
4572
|
+
*/
|
|
4573
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
4574
|
+
/**
|
|
4575
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
4576
|
+
*
|
|
4577
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
4578
|
+
*/
|
|
4579
|
+
readonly count: GPUSize32Out;
|
|
4580
|
+
/**
|
|
4581
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
4582
|
+
*
|
|
4583
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
4584
|
+
*/
|
|
4585
|
+
readonly type: GPUQueryType;
|
|
4586
|
+
/**
|
|
4587
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
4588
|
+
*
|
|
4589
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
4590
|
+
*/
|
|
4591
|
+
destroy(): void;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
declare var GPUQuerySet: {
|
|
4595
|
+
prototype: GPUQuerySet;
|
|
4596
|
+
new(): GPUQuerySet;
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4514
4599
|
/**
|
|
4515
4600
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4516
4601
|
* Available only in secure contexts.
|
|
@@ -11466,7 +11551,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
11466
11551
|
*/
|
|
11467
11552
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
11468
11553
|
/**
|
|
11469
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
11554
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
11470
11555
|
*
|
|
11471
11556
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
11472
11557
|
*/
|
|
@@ -12267,7 +12352,7 @@ declare var onunhandledrejection: ((this: ServiceWorkerGlobalScope, ev: PromiseR
|
|
|
12267
12352
|
*/
|
|
12268
12353
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
12269
12354
|
/**
|
|
12270
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
12355
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
12271
12356
|
*
|
|
12272
12357
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12273
12358
|
*/
|
|
@@ -12357,10 +12442,13 @@ type GLsizei = number;
|
|
|
12357
12442
|
type GLsizeiptr = number;
|
|
12358
12443
|
type GLuint = number;
|
|
12359
12444
|
type GLuint64 = number;
|
|
12445
|
+
type GPUBufferDynamicOffset = number;
|
|
12360
12446
|
type GPUFlagsConstant = number;
|
|
12447
|
+
type GPUIndex32 = number;
|
|
12361
12448
|
type GPUIntegerCoordinate = number;
|
|
12362
12449
|
type GPUIntegerCoordinateOut = number;
|
|
12363
12450
|
type GPUMapModeFlags = number;
|
|
12451
|
+
type GPUSize32 = number;
|
|
12364
12452
|
type GPUSize32Out = number;
|
|
12365
12453
|
type GPUSize64 = number;
|
|
12366
12454
|
type GPUSize64Out = number;
|
|
@@ -12417,6 +12505,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
12417
12505
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12418
12506
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12419
12507
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12508
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
12420
12509
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12421
12510
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12422
12511
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -78,6 +78,11 @@ interface FormData {
|
|
|
78
78
|
values(): IterableIterator<FormDataEntryValue>;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
interface GPUBindingCommandsMixin {
|
|
82
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
83
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
84
|
+
}
|
|
85
|
+
|
|
81
86
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
82
87
|
}
|
|
83
88
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -4225,6 +4225,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4225
4225
|
new(): GPUBindGroupLayout;
|
|
4226
4226
|
};
|
|
4227
4227
|
|
|
4228
|
+
interface GPUBindingCommandsMixin {
|
|
4229
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4230
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4231
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4228
4234
|
/**
|
|
4229
4235
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
4230
4236
|
* Available only in secure contexts.
|
|
@@ -4365,6 +4371,44 @@ declare var GPUCompilationMessage: {
|
|
|
4365
4371
|
new(): GPUCompilationMessage;
|
|
4366
4372
|
};
|
|
4367
4373
|
|
|
4374
|
+
/**
|
|
4375
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
4376
|
+
* Available only in secure contexts.
|
|
4377
|
+
*
|
|
4378
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
4379
|
+
*/
|
|
4380
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
4381
|
+
/**
|
|
4382
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4383
|
+
*
|
|
4384
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
4385
|
+
*/
|
|
4386
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
4387
|
+
/**
|
|
4388
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4389
|
+
*
|
|
4390
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
4391
|
+
*/
|
|
4392
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4393
|
+
/**
|
|
4394
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
4395
|
+
*
|
|
4396
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
4397
|
+
*/
|
|
4398
|
+
end(): void;
|
|
4399
|
+
/**
|
|
4400
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
4401
|
+
*
|
|
4402
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
4403
|
+
*/
|
|
4404
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4407
|
+
declare var GPUComputePassEncoder: {
|
|
4408
|
+
prototype: GPUComputePassEncoder;
|
|
4409
|
+
new(): GPUComputePassEncoder;
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4368
4412
|
/**
|
|
4369
4413
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4370
4414
|
* Available only in secure contexts.
|
|
@@ -4379,6 +4423,15 @@ declare var GPUComputePipeline: {
|
|
|
4379
4423
|
new(): GPUComputePipeline;
|
|
4380
4424
|
};
|
|
4381
4425
|
|
|
4426
|
+
interface GPUDebugCommandsMixin {
|
|
4427
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
4428
|
+
insertDebugMarker(markerLabel: string): void;
|
|
4429
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
4430
|
+
popDebugGroup(): void;
|
|
4431
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
4432
|
+
pushDebugGroup(groupLabel: string): void;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4382
4435
|
/**
|
|
4383
4436
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
4384
4437
|
* Available only in secure contexts.
|
|
@@ -4511,6 +4564,38 @@ declare var GPUPipelineLayout: {
|
|
|
4511
4564
|
new(): GPUPipelineLayout;
|
|
4512
4565
|
};
|
|
4513
4566
|
|
|
4567
|
+
/**
|
|
4568
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4569
|
+
* Available only in secure contexts.
|
|
4570
|
+
*
|
|
4571
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
4572
|
+
*/
|
|
4573
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
4574
|
+
/**
|
|
4575
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
4576
|
+
*
|
|
4577
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
4578
|
+
*/
|
|
4579
|
+
readonly count: GPUSize32Out;
|
|
4580
|
+
/**
|
|
4581
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
4582
|
+
*
|
|
4583
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
4584
|
+
*/
|
|
4585
|
+
readonly type: GPUQueryType;
|
|
4586
|
+
/**
|
|
4587
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
4588
|
+
*
|
|
4589
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
4590
|
+
*/
|
|
4591
|
+
destroy(): void;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
declare var GPUQuerySet: {
|
|
4595
|
+
prototype: GPUQuerySet;
|
|
4596
|
+
new(): GPUQuerySet;
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4514
4599
|
/**
|
|
4515
4600
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4516
4601
|
* Available only in secure contexts.
|
|
@@ -11466,7 +11551,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
11466
11551
|
*/
|
|
11467
11552
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
11468
11553
|
/**
|
|
11469
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
11554
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
11470
11555
|
*
|
|
11471
11556
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
11472
11557
|
*/
|
|
@@ -12267,7 +12352,7 @@ declare var onunhandledrejection: ((this: ServiceWorkerGlobalScope, ev: PromiseR
|
|
|
12267
12352
|
*/
|
|
12268
12353
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
12269
12354
|
/**
|
|
12270
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
12355
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
12271
12356
|
*
|
|
12272
12357
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12273
12358
|
*/
|
|
@@ -12357,10 +12442,13 @@ type GLsizei = number;
|
|
|
12357
12442
|
type GLsizeiptr = number;
|
|
12358
12443
|
type GLuint = number;
|
|
12359
12444
|
type GLuint64 = number;
|
|
12445
|
+
type GPUBufferDynamicOffset = number;
|
|
12360
12446
|
type GPUFlagsConstant = number;
|
|
12447
|
+
type GPUIndex32 = number;
|
|
12361
12448
|
type GPUIntegerCoordinate = number;
|
|
12362
12449
|
type GPUIntegerCoordinateOut = number;
|
|
12363
12450
|
type GPUMapModeFlags = number;
|
|
12451
|
+
type GPUSize32 = number;
|
|
12364
12452
|
type GPUSize32Out = number;
|
|
12365
12453
|
type GPUSize64 = number;
|
|
12366
12454
|
type GPUSize64Out = number;
|
|
@@ -12417,6 +12505,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
12417
12505
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12418
12506
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12419
12507
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12508
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
12420
12509
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12421
12510
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12422
12511
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -82,6 +82,11 @@ interface FormData {
|
|
|
82
82
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
interface GPUBindingCommandsMixin {
|
|
86
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
87
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
86
91
|
}
|
|
87
92
|
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -4225,6 +4225,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4225
4225
|
new(): GPUBindGroupLayout;
|
|
4226
4226
|
};
|
|
4227
4227
|
|
|
4228
|
+
interface GPUBindingCommandsMixin {
|
|
4229
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4230
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4231
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4232
|
+
}
|
|
4233
|
+
|
|
4228
4234
|
/**
|
|
4229
4235
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
4230
4236
|
* Available only in secure contexts.
|
|
@@ -4365,6 +4371,44 @@ declare var GPUCompilationMessage: {
|
|
|
4365
4371
|
new(): GPUCompilationMessage;
|
|
4366
4372
|
};
|
|
4367
4373
|
|
|
4374
|
+
/**
|
|
4375
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
4376
|
+
* Available only in secure contexts.
|
|
4377
|
+
*
|
|
4378
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
4379
|
+
*/
|
|
4380
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
4381
|
+
/**
|
|
4382
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4383
|
+
*
|
|
4384
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
4385
|
+
*/
|
|
4386
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
4387
|
+
/**
|
|
4388
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
4389
|
+
*
|
|
4390
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
4391
|
+
*/
|
|
4392
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4393
|
+
/**
|
|
4394
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
4395
|
+
*
|
|
4396
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
4397
|
+
*/
|
|
4398
|
+
end(): void;
|
|
4399
|
+
/**
|
|
4400
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
4401
|
+
*
|
|
4402
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
4403
|
+
*/
|
|
4404
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
4405
|
+
}
|
|
4406
|
+
|
|
4407
|
+
declare var GPUComputePassEncoder: {
|
|
4408
|
+
prototype: GPUComputePassEncoder;
|
|
4409
|
+
new(): GPUComputePassEncoder;
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4368
4412
|
/**
|
|
4369
4413
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4370
4414
|
* Available only in secure contexts.
|
|
@@ -4379,6 +4423,15 @@ declare var GPUComputePipeline: {
|
|
|
4379
4423
|
new(): GPUComputePipeline;
|
|
4380
4424
|
};
|
|
4381
4425
|
|
|
4426
|
+
interface GPUDebugCommandsMixin {
|
|
4427
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
4428
|
+
insertDebugMarker(markerLabel: string): void;
|
|
4429
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
4430
|
+
popDebugGroup(): void;
|
|
4431
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
4432
|
+
pushDebugGroup(groupLabel: string): void;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4382
4435
|
/**
|
|
4383
4436
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
4384
4437
|
* Available only in secure contexts.
|
|
@@ -4511,6 +4564,38 @@ declare var GPUPipelineLayout: {
|
|
|
4511
4564
|
new(): GPUPipelineLayout;
|
|
4512
4565
|
};
|
|
4513
4566
|
|
|
4567
|
+
/**
|
|
4568
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4569
|
+
* Available only in secure contexts.
|
|
4570
|
+
*
|
|
4571
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
4572
|
+
*/
|
|
4573
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
4574
|
+
/**
|
|
4575
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
4576
|
+
*
|
|
4577
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
4578
|
+
*/
|
|
4579
|
+
readonly count: GPUSize32Out;
|
|
4580
|
+
/**
|
|
4581
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
4582
|
+
*
|
|
4583
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
4584
|
+
*/
|
|
4585
|
+
readonly type: GPUQueryType;
|
|
4586
|
+
/**
|
|
4587
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
4588
|
+
*
|
|
4589
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
4590
|
+
*/
|
|
4591
|
+
destroy(): void;
|
|
4592
|
+
}
|
|
4593
|
+
|
|
4594
|
+
declare var GPUQuerySet: {
|
|
4595
|
+
prototype: GPUQuerySet;
|
|
4596
|
+
new(): GPUQuerySet;
|
|
4597
|
+
};
|
|
4598
|
+
|
|
4514
4599
|
/**
|
|
4515
4600
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4516
4601
|
* Available only in secure contexts.
|
|
@@ -11466,7 +11551,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
11466
11551
|
*/
|
|
11467
11552
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
11468
11553
|
/**
|
|
11469
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
11554
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
11470
11555
|
*
|
|
11471
11556
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
11472
11557
|
*/
|
|
@@ -12267,7 +12352,7 @@ declare var onunhandledrejection: ((this: ServiceWorkerGlobalScope, ev: PromiseR
|
|
|
12267
12352
|
*/
|
|
12268
12353
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
12269
12354
|
/**
|
|
12270
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
12355
|
+
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the scope of a classic worker (a worker constructed from a classic script).
|
|
12271
12356
|
*
|
|
12272
12357
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12273
12358
|
*/
|
|
@@ -12357,10 +12442,13 @@ type GLsizei = number;
|
|
|
12357
12442
|
type GLsizeiptr = number;
|
|
12358
12443
|
type GLuint = number;
|
|
12359
12444
|
type GLuint64 = number;
|
|
12445
|
+
type GPUBufferDynamicOffset = number;
|
|
12360
12446
|
type GPUFlagsConstant = number;
|
|
12447
|
+
type GPUIndex32 = number;
|
|
12361
12448
|
type GPUIntegerCoordinate = number;
|
|
12362
12449
|
type GPUIntegerCoordinateOut = number;
|
|
12363
12450
|
type GPUMapModeFlags = number;
|
|
12451
|
+
type GPUSize32 = number;
|
|
12364
12452
|
type GPUSize32Out = number;
|
|
12365
12453
|
type GPUSize64 = number;
|
|
12366
12454
|
type GPUSize64Out = number;
|
|
@@ -12417,6 +12505,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
12417
12505
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12418
12506
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12419
12507
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12508
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
12420
12509
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12421
12510
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12422
12511
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -82,6 +82,11 @@ interface FormData {
|
|
|
82
82
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
interface GPUBindingCommandsMixin {
|
|
86
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
87
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
86
91
|
}
|
|
87
92
|
|