@types/webworker 0.0.57 → 0.0.59
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
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.59 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.59.
|
package/index.d.ts
CHANGED
|
@@ -4930,6 +4930,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4930
4930
|
new(): GPUBindGroupLayout;
|
|
4931
4931
|
};
|
|
4932
4932
|
|
|
4933
|
+
interface GPUBindingCommandsMixin {
|
|
4934
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4935
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4936
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4933
4939
|
/**
|
|
4934
4940
|
* 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.
|
|
4935
4941
|
* Available only in secure contexts.
|
|
@@ -5070,6 +5076,44 @@ declare var GPUCompilationMessage: {
|
|
|
5070
5076
|
new(): GPUCompilationMessage;
|
|
5071
5077
|
};
|
|
5072
5078
|
|
|
5079
|
+
/**
|
|
5080
|
+
* 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.
|
|
5081
|
+
* Available only in secure contexts.
|
|
5082
|
+
*
|
|
5083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
5084
|
+
*/
|
|
5085
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
5086
|
+
/**
|
|
5087
|
+
* 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()).
|
|
5088
|
+
*
|
|
5089
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
5090
|
+
*/
|
|
5091
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
5092
|
+
/**
|
|
5093
|
+
* 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()).
|
|
5094
|
+
*
|
|
5095
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
5096
|
+
*/
|
|
5097
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5098
|
+
/**
|
|
5099
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
5100
|
+
*
|
|
5101
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
5102
|
+
*/
|
|
5103
|
+
end(): void;
|
|
5104
|
+
/**
|
|
5105
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
5106
|
+
*
|
|
5107
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
5108
|
+
*/
|
|
5109
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
declare var GPUComputePassEncoder: {
|
|
5113
|
+
prototype: GPUComputePassEncoder;
|
|
5114
|
+
new(): GPUComputePassEncoder;
|
|
5115
|
+
};
|
|
5116
|
+
|
|
5073
5117
|
/**
|
|
5074
5118
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
5075
5119
|
* Available only in secure contexts.
|
|
@@ -5084,6 +5128,15 @@ declare var GPUComputePipeline: {
|
|
|
5084
5128
|
new(): GPUComputePipeline;
|
|
5085
5129
|
};
|
|
5086
5130
|
|
|
5131
|
+
interface GPUDebugCommandsMixin {
|
|
5132
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
5133
|
+
insertDebugMarker(markerLabel: string): void;
|
|
5134
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
5135
|
+
popDebugGroup(): void;
|
|
5136
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
5137
|
+
pushDebugGroup(groupLabel: string): void;
|
|
5138
|
+
}
|
|
5139
|
+
|
|
5087
5140
|
/**
|
|
5088
5141
|
* 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.
|
|
5089
5142
|
* Available only in secure contexts.
|
|
@@ -5216,6 +5269,38 @@ declare var GPUPipelineLayout: {
|
|
|
5216
5269
|
new(): GPUPipelineLayout;
|
|
5217
5270
|
};
|
|
5218
5271
|
|
|
5272
|
+
/**
|
|
5273
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
5274
|
+
* Available only in secure contexts.
|
|
5275
|
+
*
|
|
5276
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
5277
|
+
*/
|
|
5278
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
5279
|
+
/**
|
|
5280
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
5281
|
+
*
|
|
5282
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
5283
|
+
*/
|
|
5284
|
+
readonly count: GPUSize32Out;
|
|
5285
|
+
/**
|
|
5286
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
5287
|
+
*
|
|
5288
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
5289
|
+
*/
|
|
5290
|
+
readonly type: GPUQueryType;
|
|
5291
|
+
/**
|
|
5292
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
5293
|
+
*
|
|
5294
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
5295
|
+
*/
|
|
5296
|
+
destroy(): void;
|
|
5297
|
+
}
|
|
5298
|
+
|
|
5299
|
+
declare var GPUQuerySet: {
|
|
5300
|
+
prototype: GPUQuerySet;
|
|
5301
|
+
new(): GPUQuerySet;
|
|
5302
|
+
};
|
|
5303
|
+
|
|
5219
5304
|
/**
|
|
5220
5305
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
5221
5306
|
* Available only in secure contexts.
|
|
@@ -12956,7 +13041,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
12956
13041
|
*/
|
|
12957
13042
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
12958
13043
|
/**
|
|
12959
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
13044
|
+
* 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).
|
|
12960
13045
|
*
|
|
12961
13046
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12962
13047
|
*/
|
|
@@ -13939,7 +14024,7 @@ declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: Promis
|
|
|
13939
14024
|
*/
|
|
13940
14025
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
13941
14026
|
/**
|
|
13942
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
14027
|
+
* 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).
|
|
13943
14028
|
*
|
|
13944
14029
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
13945
14030
|
*/
|
|
@@ -14037,10 +14122,13 @@ type GLsizei = number;
|
|
|
14037
14122
|
type GLsizeiptr = number;
|
|
14038
14123
|
type GLuint = number;
|
|
14039
14124
|
type GLuint64 = number;
|
|
14125
|
+
type GPUBufferDynamicOffset = number;
|
|
14040
14126
|
type GPUFlagsConstant = number;
|
|
14127
|
+
type GPUIndex32 = number;
|
|
14041
14128
|
type GPUIntegerCoordinate = number;
|
|
14042
14129
|
type GPUIntegerCoordinateOut = number;
|
|
14043
14130
|
type GPUMapModeFlags = number;
|
|
14131
|
+
type GPUSize32 = number;
|
|
14044
14132
|
type GPUSize32Out = number;
|
|
14045
14133
|
type GPUSize64 = number;
|
|
14046
14134
|
type GPUSize64Out = number;
|
|
@@ -14106,6 +14194,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
14106
14194
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14107
14195
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14108
14196
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14197
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
14109
14198
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
14110
14199
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
14111
14200
|
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";
|
|
@@ -14251,6 +14340,11 @@ interface FormData {
|
|
|
14251
14340
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
14252
14341
|
}
|
|
14253
14342
|
|
|
14343
|
+
interface GPUBindingCommandsMixin {
|
|
14344
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14345
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14346
|
+
}
|
|
14347
|
+
|
|
14254
14348
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
14255
14349
|
}
|
|
14256
14350
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -4927,6 +4927,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4927
4927
|
new(): GPUBindGroupLayout;
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
+
interface GPUBindingCommandsMixin {
|
|
4931
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4932
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4933
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4930
4936
|
/**
|
|
4931
4937
|
* 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.
|
|
4932
4938
|
* Available only in secure contexts.
|
|
@@ -5067,6 +5073,44 @@ declare var GPUCompilationMessage: {
|
|
|
5067
5073
|
new(): GPUCompilationMessage;
|
|
5068
5074
|
};
|
|
5069
5075
|
|
|
5076
|
+
/**
|
|
5077
|
+
* 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.
|
|
5078
|
+
* Available only in secure contexts.
|
|
5079
|
+
*
|
|
5080
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
5081
|
+
*/
|
|
5082
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
5083
|
+
/**
|
|
5084
|
+
* 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()).
|
|
5085
|
+
*
|
|
5086
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
5087
|
+
*/
|
|
5088
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
5089
|
+
/**
|
|
5090
|
+
* 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()).
|
|
5091
|
+
*
|
|
5092
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
5093
|
+
*/
|
|
5094
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5095
|
+
/**
|
|
5096
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
5097
|
+
*
|
|
5098
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
5099
|
+
*/
|
|
5100
|
+
end(): void;
|
|
5101
|
+
/**
|
|
5102
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
5103
|
+
*
|
|
5104
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
5105
|
+
*/
|
|
5106
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
declare var GPUComputePassEncoder: {
|
|
5110
|
+
prototype: GPUComputePassEncoder;
|
|
5111
|
+
new(): GPUComputePassEncoder;
|
|
5112
|
+
};
|
|
5113
|
+
|
|
5070
5114
|
/**
|
|
5071
5115
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
5072
5116
|
* Available only in secure contexts.
|
|
@@ -5081,6 +5125,15 @@ declare var GPUComputePipeline: {
|
|
|
5081
5125
|
new(): GPUComputePipeline;
|
|
5082
5126
|
};
|
|
5083
5127
|
|
|
5128
|
+
interface GPUDebugCommandsMixin {
|
|
5129
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
5130
|
+
insertDebugMarker(markerLabel: string): void;
|
|
5131
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
5132
|
+
popDebugGroup(): void;
|
|
5133
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
5134
|
+
pushDebugGroup(groupLabel: string): void;
|
|
5135
|
+
}
|
|
5136
|
+
|
|
5084
5137
|
/**
|
|
5085
5138
|
* 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.
|
|
5086
5139
|
* Available only in secure contexts.
|
|
@@ -5213,6 +5266,38 @@ declare var GPUPipelineLayout: {
|
|
|
5213
5266
|
new(): GPUPipelineLayout;
|
|
5214
5267
|
};
|
|
5215
5268
|
|
|
5269
|
+
/**
|
|
5270
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
5271
|
+
* Available only in secure contexts.
|
|
5272
|
+
*
|
|
5273
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
5274
|
+
*/
|
|
5275
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
5276
|
+
/**
|
|
5277
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
5278
|
+
*
|
|
5279
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
5280
|
+
*/
|
|
5281
|
+
readonly count: GPUSize32Out;
|
|
5282
|
+
/**
|
|
5283
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
5284
|
+
*
|
|
5285
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
5286
|
+
*/
|
|
5287
|
+
readonly type: GPUQueryType;
|
|
5288
|
+
/**
|
|
5289
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
5290
|
+
*
|
|
5291
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
5292
|
+
*/
|
|
5293
|
+
destroy(): void;
|
|
5294
|
+
}
|
|
5295
|
+
|
|
5296
|
+
declare var GPUQuerySet: {
|
|
5297
|
+
prototype: GPUQuerySet;
|
|
5298
|
+
new(): GPUQuerySet;
|
|
5299
|
+
};
|
|
5300
|
+
|
|
5216
5301
|
/**
|
|
5217
5302
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
5218
5303
|
* Available only in secure contexts.
|
|
@@ -12953,7 +13038,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
12953
13038
|
*/
|
|
12954
13039
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
12955
13040
|
/**
|
|
12956
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
13041
|
+
* 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).
|
|
12957
13042
|
*
|
|
12958
13043
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12959
13044
|
*/
|
|
@@ -13936,7 +14021,7 @@ declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: Promis
|
|
|
13936
14021
|
*/
|
|
13937
14022
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
13938
14023
|
/**
|
|
13939
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
14024
|
+
* 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).
|
|
13940
14025
|
*
|
|
13941
14026
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
13942
14027
|
*/
|
|
@@ -14034,10 +14119,13 @@ type GLsizei = number;
|
|
|
14034
14119
|
type GLsizeiptr = number;
|
|
14035
14120
|
type GLuint = number;
|
|
14036
14121
|
type GLuint64 = number;
|
|
14122
|
+
type GPUBufferDynamicOffset = number;
|
|
14037
14123
|
type GPUFlagsConstant = number;
|
|
14124
|
+
type GPUIndex32 = number;
|
|
14038
14125
|
type GPUIntegerCoordinate = number;
|
|
14039
14126
|
type GPUIntegerCoordinateOut = number;
|
|
14040
14127
|
type GPUMapModeFlags = number;
|
|
14128
|
+
type GPUSize32 = number;
|
|
14041
14129
|
type GPUSize32Out = number;
|
|
14042
14130
|
type GPUSize64 = number;
|
|
14043
14131
|
type GPUSize64Out = number;
|
|
@@ -14103,6 +14191,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
14103
14191
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14104
14192
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14105
14193
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14194
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
14106
14195
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
14107
14196
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
14108
14197
|
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
|
@@ -4927,6 +4927,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4927
4927
|
new(): GPUBindGroupLayout;
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
+
interface GPUBindingCommandsMixin {
|
|
4931
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4932
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4933
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4930
4936
|
/**
|
|
4931
4937
|
* 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.
|
|
4932
4938
|
* Available only in secure contexts.
|
|
@@ -5067,6 +5073,44 @@ declare var GPUCompilationMessage: {
|
|
|
5067
5073
|
new(): GPUCompilationMessage;
|
|
5068
5074
|
};
|
|
5069
5075
|
|
|
5076
|
+
/**
|
|
5077
|
+
* 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.
|
|
5078
|
+
* Available only in secure contexts.
|
|
5079
|
+
*
|
|
5080
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
5081
|
+
*/
|
|
5082
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
5083
|
+
/**
|
|
5084
|
+
* 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()).
|
|
5085
|
+
*
|
|
5086
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
5087
|
+
*/
|
|
5088
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
5089
|
+
/**
|
|
5090
|
+
* 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()).
|
|
5091
|
+
*
|
|
5092
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
5093
|
+
*/
|
|
5094
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5095
|
+
/**
|
|
5096
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
5097
|
+
*
|
|
5098
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
5099
|
+
*/
|
|
5100
|
+
end(): void;
|
|
5101
|
+
/**
|
|
5102
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
5103
|
+
*
|
|
5104
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
5105
|
+
*/
|
|
5106
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
declare var GPUComputePassEncoder: {
|
|
5110
|
+
prototype: GPUComputePassEncoder;
|
|
5111
|
+
new(): GPUComputePassEncoder;
|
|
5112
|
+
};
|
|
5113
|
+
|
|
5070
5114
|
/**
|
|
5071
5115
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
5072
5116
|
* Available only in secure contexts.
|
|
@@ -5081,6 +5125,15 @@ declare var GPUComputePipeline: {
|
|
|
5081
5125
|
new(): GPUComputePipeline;
|
|
5082
5126
|
};
|
|
5083
5127
|
|
|
5128
|
+
interface GPUDebugCommandsMixin {
|
|
5129
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
5130
|
+
insertDebugMarker(markerLabel: string): void;
|
|
5131
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
5132
|
+
popDebugGroup(): void;
|
|
5133
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
5134
|
+
pushDebugGroup(groupLabel: string): void;
|
|
5135
|
+
}
|
|
5136
|
+
|
|
5084
5137
|
/**
|
|
5085
5138
|
* 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.
|
|
5086
5139
|
* Available only in secure contexts.
|
|
@@ -5213,6 +5266,38 @@ declare var GPUPipelineLayout: {
|
|
|
5213
5266
|
new(): GPUPipelineLayout;
|
|
5214
5267
|
};
|
|
5215
5268
|
|
|
5269
|
+
/**
|
|
5270
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
5271
|
+
* Available only in secure contexts.
|
|
5272
|
+
*
|
|
5273
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
5274
|
+
*/
|
|
5275
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
5276
|
+
/**
|
|
5277
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
5278
|
+
*
|
|
5279
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
5280
|
+
*/
|
|
5281
|
+
readonly count: GPUSize32Out;
|
|
5282
|
+
/**
|
|
5283
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
5284
|
+
*
|
|
5285
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
5286
|
+
*/
|
|
5287
|
+
readonly type: GPUQueryType;
|
|
5288
|
+
/**
|
|
5289
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
5290
|
+
*
|
|
5291
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
5292
|
+
*/
|
|
5293
|
+
destroy(): void;
|
|
5294
|
+
}
|
|
5295
|
+
|
|
5296
|
+
declare var GPUQuerySet: {
|
|
5297
|
+
prototype: GPUQuerySet;
|
|
5298
|
+
new(): GPUQuerySet;
|
|
5299
|
+
};
|
|
5300
|
+
|
|
5216
5301
|
/**
|
|
5217
5302
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
5218
5303
|
* Available only in secure contexts.
|
|
@@ -12953,7 +13038,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
12953
13038
|
*/
|
|
12954
13039
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
12955
13040
|
/**
|
|
12956
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
13041
|
+
* 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).
|
|
12957
13042
|
*
|
|
12958
13043
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12959
13044
|
*/
|
|
@@ -13936,7 +14021,7 @@ declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: Promis
|
|
|
13936
14021
|
*/
|
|
13937
14022
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
13938
14023
|
/**
|
|
13939
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
14024
|
+
* 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).
|
|
13940
14025
|
*
|
|
13941
14026
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
13942
14027
|
*/
|
|
@@ -14034,10 +14119,13 @@ type GLsizei = number;
|
|
|
14034
14119
|
type GLsizeiptr = number;
|
|
14035
14120
|
type GLuint = number;
|
|
14036
14121
|
type GLuint64 = number;
|
|
14122
|
+
type GPUBufferDynamicOffset = number;
|
|
14037
14123
|
type GPUFlagsConstant = number;
|
|
14124
|
+
type GPUIndex32 = number;
|
|
14038
14125
|
type GPUIntegerCoordinate = number;
|
|
14039
14126
|
type GPUIntegerCoordinateOut = number;
|
|
14040
14127
|
type GPUMapModeFlags = number;
|
|
14128
|
+
type GPUSize32 = number;
|
|
14041
14129
|
type GPUSize32Out = number;
|
|
14042
14130
|
type GPUSize64 = number;
|
|
14043
14131
|
type GPUSize64Out = number;
|
|
@@ -14103,6 +14191,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
14103
14191
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14104
14192
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14105
14193
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14194
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
14106
14195
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
14107
14196
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
14108
14197
|
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
|
@@ -4927,6 +4927,12 @@ declare var GPUBindGroupLayout: {
|
|
|
4927
4927
|
new(): GPUBindGroupLayout;
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
|
+
interface GPUBindingCommandsMixin {
|
|
4931
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
4932
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
4933
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4930
4936
|
/**
|
|
4931
4937
|
* 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.
|
|
4932
4938
|
* Available only in secure contexts.
|
|
@@ -5067,6 +5073,44 @@ declare var GPUCompilationMessage: {
|
|
|
5067
5073
|
new(): GPUCompilationMessage;
|
|
5068
5074
|
};
|
|
5069
5075
|
|
|
5076
|
+
/**
|
|
5077
|
+
* 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.
|
|
5078
|
+
* Available only in secure contexts.
|
|
5079
|
+
*
|
|
5080
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
5081
|
+
*/
|
|
5082
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
5083
|
+
/**
|
|
5084
|
+
* 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()).
|
|
5085
|
+
*
|
|
5086
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
5087
|
+
*/
|
|
5088
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
5089
|
+
/**
|
|
5090
|
+
* 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()).
|
|
5091
|
+
*
|
|
5092
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
5093
|
+
*/
|
|
5094
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5095
|
+
/**
|
|
5096
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
5097
|
+
*
|
|
5098
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
5099
|
+
*/
|
|
5100
|
+
end(): void;
|
|
5101
|
+
/**
|
|
5102
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
5103
|
+
*
|
|
5104
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
5105
|
+
*/
|
|
5106
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
declare var GPUComputePassEncoder: {
|
|
5110
|
+
prototype: GPUComputePassEncoder;
|
|
5111
|
+
new(): GPUComputePassEncoder;
|
|
5112
|
+
};
|
|
5113
|
+
|
|
5070
5114
|
/**
|
|
5071
5115
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
5072
5116
|
* Available only in secure contexts.
|
|
@@ -5081,6 +5125,15 @@ declare var GPUComputePipeline: {
|
|
|
5081
5125
|
new(): GPUComputePipeline;
|
|
5082
5126
|
};
|
|
5083
5127
|
|
|
5128
|
+
interface GPUDebugCommandsMixin {
|
|
5129
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
5130
|
+
insertDebugMarker(markerLabel: string): void;
|
|
5131
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
5132
|
+
popDebugGroup(): void;
|
|
5133
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
5134
|
+
pushDebugGroup(groupLabel: string): void;
|
|
5135
|
+
}
|
|
5136
|
+
|
|
5084
5137
|
/**
|
|
5085
5138
|
* 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.
|
|
5086
5139
|
* Available only in secure contexts.
|
|
@@ -5213,6 +5266,38 @@ declare var GPUPipelineLayout: {
|
|
|
5213
5266
|
new(): GPUPipelineLayout;
|
|
5214
5267
|
};
|
|
5215
5268
|
|
|
5269
|
+
/**
|
|
5270
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
5271
|
+
* Available only in secure contexts.
|
|
5272
|
+
*
|
|
5273
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
5274
|
+
*/
|
|
5275
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
5276
|
+
/**
|
|
5277
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
5278
|
+
*
|
|
5279
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
5280
|
+
*/
|
|
5281
|
+
readonly count: GPUSize32Out;
|
|
5282
|
+
/**
|
|
5283
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
5284
|
+
*
|
|
5285
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
5286
|
+
*/
|
|
5287
|
+
readonly type: GPUQueryType;
|
|
5288
|
+
/**
|
|
5289
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
5290
|
+
*
|
|
5291
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
5292
|
+
*/
|
|
5293
|
+
destroy(): void;
|
|
5294
|
+
}
|
|
5295
|
+
|
|
5296
|
+
declare var GPUQuerySet: {
|
|
5297
|
+
prototype: GPUQuerySet;
|
|
5298
|
+
new(): GPUQuerySet;
|
|
5299
|
+
};
|
|
5300
|
+
|
|
5216
5301
|
/**
|
|
5217
5302
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
5218
5303
|
* Available only in secure contexts.
|
|
@@ -12953,7 +13038,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
12953
13038
|
*/
|
|
12954
13039
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
12955
13040
|
/**
|
|
12956
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
13041
|
+
* 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).
|
|
12957
13042
|
*
|
|
12958
13043
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
12959
13044
|
*/
|
|
@@ -13936,7 +14021,7 @@ declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: Promis
|
|
|
13936
14021
|
*/
|
|
13937
14022
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
13938
14023
|
/**
|
|
13939
|
-
* The **`importScripts()`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker
|
|
14024
|
+
* 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).
|
|
13940
14025
|
*
|
|
13941
14026
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
|
|
13942
14027
|
*/
|
|
@@ -14034,10 +14119,13 @@ type GLsizei = number;
|
|
|
14034
14119
|
type GLsizeiptr = number;
|
|
14035
14120
|
type GLuint = number;
|
|
14036
14121
|
type GLuint64 = number;
|
|
14122
|
+
type GPUBufferDynamicOffset = number;
|
|
14037
14123
|
type GPUFlagsConstant = number;
|
|
14124
|
+
type GPUIndex32 = number;
|
|
14038
14125
|
type GPUIntegerCoordinate = number;
|
|
14039
14126
|
type GPUIntegerCoordinateOut = number;
|
|
14040
14127
|
type GPUMapModeFlags = number;
|
|
14128
|
+
type GPUSize32 = number;
|
|
14041
14129
|
type GPUSize32Out = number;
|
|
14042
14130
|
type GPUSize64 = number;
|
|
14043
14131
|
type GPUSize64Out = number;
|
|
@@ -14103,6 +14191,7 @@ type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
|
14103
14191
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14104
14192
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14105
14193
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14194
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
14106
14195
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
14107
14196
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
14108
14197
|
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
|
|