@types/sharedworker 0.0.213 → 0.0.215
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 +318 -2
- package/package.json +1 -1
- package/ts5.5/index.d.ts +297 -2
- package/ts5.5/iterable.d.ts +21 -0
- package/ts5.6/index.d.ts +297 -2
- package/ts5.6/iterable.d.ts +21 -0
- package/ts5.9/index.d.ts +297 -2
- package/ts5.9/iterable.d.ts +21 -0
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.215 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.215.
|
package/index.d.ts
CHANGED
|
@@ -219,6 +219,36 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
219
219
|
fontfaces?: FontFace[];
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
223
|
+
entries: GPUBindGroupEntry[];
|
|
224
|
+
layout: GPUBindGroupLayout;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface GPUBindGroupEntry {
|
|
228
|
+
binding: GPUIndex32;
|
|
229
|
+
resource: GPUBindingResource;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
interface GPUBufferBinding {
|
|
233
|
+
buffer: GPUBuffer;
|
|
234
|
+
offset?: GPUSize64;
|
|
235
|
+
size?: GPUSize64;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
interface GPUCanvasConfiguration {
|
|
239
|
+
alphaMode?: GPUCanvasAlphaMode;
|
|
240
|
+
colorSpace?: PredefinedColorSpace;
|
|
241
|
+
device: GPUDevice;
|
|
242
|
+
format: GPUTextureFormat;
|
|
243
|
+
toneMapping?: GPUCanvasToneMapping;
|
|
244
|
+
usage?: GPUTextureUsageFlags;
|
|
245
|
+
viewFormats?: GPUTextureFormat[];
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface GPUCanvasToneMapping {
|
|
249
|
+
mode?: GPUCanvasToneMappingMode;
|
|
250
|
+
}
|
|
251
|
+
|
|
222
252
|
interface GPUColorDict {
|
|
223
253
|
a: number;
|
|
224
254
|
b: number;
|
|
@@ -226,6 +256,19 @@ interface GPUColorDict {
|
|
|
226
256
|
r: number;
|
|
227
257
|
}
|
|
228
258
|
|
|
259
|
+
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
263
|
+
timestampWrites?: GPUComputePassTimestampWrites;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
interface GPUComputePassTimestampWrites {
|
|
267
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
268
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
269
|
+
querySet: GPUQuerySet;
|
|
270
|
+
}
|
|
271
|
+
|
|
229
272
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
230
273
|
colorSpace?: PredefinedColorSpace;
|
|
231
274
|
premultipliedAlpha?: boolean;
|
|
@@ -243,6 +286,10 @@ interface GPUExtent3DDict {
|
|
|
243
286
|
width: GPUIntegerCoordinate;
|
|
244
287
|
}
|
|
245
288
|
|
|
289
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
290
|
+
colorSpace?: PredefinedColorSpace;
|
|
291
|
+
}
|
|
292
|
+
|
|
246
293
|
interface GPUObjectDescriptorBase {
|
|
247
294
|
label?: string;
|
|
248
295
|
}
|
|
@@ -265,6 +312,45 @@ interface GPUPipelineErrorInit {
|
|
|
265
312
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
266
313
|
}
|
|
267
314
|
|
|
315
|
+
interface GPURenderPassColorAttachment {
|
|
316
|
+
clearValue?: GPUColor;
|
|
317
|
+
depthSlice?: GPUIntegerCoordinate;
|
|
318
|
+
loadOp: GPULoadOp;
|
|
319
|
+
resolveTarget?: GPUTexture | GPUTextureView;
|
|
320
|
+
storeOp: GPUStoreOp;
|
|
321
|
+
view: GPUTexture | GPUTextureView;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
interface GPURenderPassDepthStencilAttachment {
|
|
325
|
+
depthClearValue?: number;
|
|
326
|
+
depthLoadOp?: GPULoadOp;
|
|
327
|
+
depthReadOnly?: boolean;
|
|
328
|
+
depthStoreOp?: GPUStoreOp;
|
|
329
|
+
stencilClearValue?: GPUStencilValue;
|
|
330
|
+
stencilLoadOp?: GPULoadOp;
|
|
331
|
+
stencilReadOnly?: boolean;
|
|
332
|
+
stencilStoreOp?: GPUStoreOp;
|
|
333
|
+
view: GPUTexture | GPUTextureView;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
337
|
+
colorAttachments: (GPURenderPassColorAttachment | null)[];
|
|
338
|
+
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
|
|
339
|
+
maxDrawCount?: GPUSize64;
|
|
340
|
+
occlusionQuerySet?: GPUQuerySet;
|
|
341
|
+
timestampWrites?: GPURenderPassTimestampWrites;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
interface GPURenderPassTimestampWrites {
|
|
345
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
346
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
347
|
+
querySet: GPUQuerySet;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
351
|
+
buffer: GPUBuffer;
|
|
352
|
+
}
|
|
353
|
+
|
|
268
354
|
interface GPUTexelCopyBufferLayout {
|
|
269
355
|
bytesPerRow?: GPUSize32;
|
|
270
356
|
offset?: GPUSize64;
|
|
@@ -4080,6 +4166,50 @@ declare var GPUBuffer: {
|
|
|
4080
4166
|
new(): GPUBuffer;
|
|
4081
4167
|
};
|
|
4082
4168
|
|
|
4169
|
+
/**
|
|
4170
|
+
* The **`GPUCanvasContext`** interface of the WebGPU API represents the WebGPU rendering context of a <canvas> element, returned via an HTMLCanvasElement.getContext() call with a contextType of "webgpu".
|
|
4171
|
+
* Available only in secure contexts.
|
|
4172
|
+
*
|
|
4173
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
4174
|
+
*/
|
|
4175
|
+
interface GPUCanvasContext {
|
|
4176
|
+
/**
|
|
4177
|
+
* The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
|
|
4178
|
+
*
|
|
4179
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
|
|
4180
|
+
*/
|
|
4181
|
+
readonly canvas: OffscreenCanvas;
|
|
4182
|
+
/**
|
|
4183
|
+
* The **`configure()`** method of the GPUCanvasContext interface configures the context to use for rendering with a given GPUDevice. When called the canvas will initially be cleared to transparent black.
|
|
4184
|
+
*
|
|
4185
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
|
|
4186
|
+
*/
|
|
4187
|
+
configure(configuration: GPUCanvasConfiguration): void;
|
|
4188
|
+
/**
|
|
4189
|
+
* The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
|
|
4190
|
+
*
|
|
4191
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
|
|
4192
|
+
*/
|
|
4193
|
+
getConfiguration(): GPUCanvasConfiguration | null;
|
|
4194
|
+
/**
|
|
4195
|
+
* The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
|
|
4196
|
+
*
|
|
4197
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
|
|
4198
|
+
*/
|
|
4199
|
+
getCurrentTexture(): GPUTexture;
|
|
4200
|
+
/**
|
|
4201
|
+
* The **`unconfigure()`** method of the GPUCanvasContext interface removes any previously-set context configuration, and destroys any textures returned via getCurrentTexture() while the canvas context was configured.
|
|
4202
|
+
*
|
|
4203
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
|
|
4204
|
+
*/
|
|
4205
|
+
unconfigure(): void;
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
declare var GPUCanvasContext: {
|
|
4209
|
+
prototype: GPUCanvasContext;
|
|
4210
|
+
new(): GPUCanvasContext;
|
|
4211
|
+
};
|
|
4212
|
+
|
|
4083
4213
|
/**
|
|
4084
4214
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4085
4215
|
* Available only in secure contexts.
|
|
@@ -4094,6 +4224,75 @@ declare var GPUCommandBuffer: {
|
|
|
4094
4224
|
new(): GPUCommandBuffer;
|
|
4095
4225
|
};
|
|
4096
4226
|
|
|
4227
|
+
/**
|
|
4228
|
+
* The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
|
|
4229
|
+
* Available only in secure contexts.
|
|
4230
|
+
*
|
|
4231
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
4232
|
+
*/
|
|
4233
|
+
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
4234
|
+
/**
|
|
4235
|
+
* The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
|
|
4236
|
+
*
|
|
4237
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
|
|
4238
|
+
*/
|
|
4239
|
+
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
4240
|
+
/**
|
|
4241
|
+
* The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
|
|
4242
|
+
*
|
|
4243
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
|
|
4244
|
+
*/
|
|
4245
|
+
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
4246
|
+
/**
|
|
4247
|
+
* The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
|
|
4248
|
+
*
|
|
4249
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
|
|
4250
|
+
*/
|
|
4251
|
+
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4252
|
+
/**
|
|
4253
|
+
* The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
|
|
4254
|
+
*
|
|
4255
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
|
|
4256
|
+
*/
|
|
4257
|
+
copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
|
|
4258
|
+
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
|
|
4259
|
+
/**
|
|
4260
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
4261
|
+
*
|
|
4262
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
4263
|
+
*/
|
|
4264
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
4265
|
+
/**
|
|
4266
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
4267
|
+
*
|
|
4268
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
4269
|
+
*/
|
|
4270
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
4271
|
+
/**
|
|
4272
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
4273
|
+
*
|
|
4274
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
4275
|
+
*/
|
|
4276
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
4277
|
+
/**
|
|
4278
|
+
* The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
|
|
4279
|
+
*
|
|
4280
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
|
|
4281
|
+
*/
|
|
4282
|
+
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
4283
|
+
/**
|
|
4284
|
+
* The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
|
|
4285
|
+
*
|
|
4286
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
|
|
4287
|
+
*/
|
|
4288
|
+
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4291
|
+
declare var GPUCommandEncoder: {
|
|
4292
|
+
prototype: GPUCommandEncoder;
|
|
4293
|
+
new(): GPUCommandEncoder;
|
|
4294
|
+
};
|
|
4295
|
+
|
|
4097
4296
|
/**
|
|
4098
4297
|
* The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
|
|
4099
4298
|
* Available only in secure contexts.
|
|
@@ -4225,6 +4424,90 @@ interface GPUDebugCommandsMixin {
|
|
|
4225
4424
|
pushDebugGroup(groupLabel: string): void;
|
|
4226
4425
|
}
|
|
4227
4426
|
|
|
4427
|
+
interface GPUDeviceEventMap {
|
|
4428
|
+
"uncapturederror": GPUUncapturedErrorEvent;
|
|
4429
|
+
}
|
|
4430
|
+
|
|
4431
|
+
/**
|
|
4432
|
+
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
|
|
4433
|
+
* Available only in secure contexts.
|
|
4434
|
+
*
|
|
4435
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
4436
|
+
*/
|
|
4437
|
+
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
4438
|
+
/**
|
|
4439
|
+
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
|
|
4440
|
+
*
|
|
4441
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
|
|
4442
|
+
*/
|
|
4443
|
+
readonly adapterInfo: GPUAdapterInfo;
|
|
4444
|
+
/**
|
|
4445
|
+
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
|
|
4446
|
+
*
|
|
4447
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
|
|
4448
|
+
*/
|
|
4449
|
+
readonly features: GPUSupportedFeatures;
|
|
4450
|
+
/**
|
|
4451
|
+
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
|
|
4452
|
+
*
|
|
4453
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
|
|
4454
|
+
*/
|
|
4455
|
+
readonly limits: GPUSupportedLimits;
|
|
4456
|
+
/**
|
|
4457
|
+
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
|
|
4458
|
+
*
|
|
4459
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
|
|
4460
|
+
*/
|
|
4461
|
+
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
4462
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
|
|
4463
|
+
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
|
|
4464
|
+
/**
|
|
4465
|
+
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
|
|
4466
|
+
*
|
|
4467
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4468
|
+
*/
|
|
4469
|
+
readonly queue: GPUQueue;
|
|
4470
|
+
/**
|
|
4471
|
+
* The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
4472
|
+
*
|
|
4473
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4474
|
+
*/
|
|
4475
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4476
|
+
/**
|
|
4477
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4478
|
+
*
|
|
4479
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4480
|
+
*/
|
|
4481
|
+
destroy(): void;
|
|
4482
|
+
/**
|
|
4483
|
+
* The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
|
|
4484
|
+
*
|
|
4485
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4486
|
+
*/
|
|
4487
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4488
|
+
/**
|
|
4489
|
+
* The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
|
|
4490
|
+
*
|
|
4491
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4492
|
+
*/
|
|
4493
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4494
|
+
/**
|
|
4495
|
+
* The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
|
|
4496
|
+
*
|
|
4497
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4498
|
+
*/
|
|
4499
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4500
|
+
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4501
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4502
|
+
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4503
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4504
|
+
}
|
|
4505
|
+
|
|
4506
|
+
declare var GPUDevice: {
|
|
4507
|
+
prototype: GPUDevice;
|
|
4508
|
+
new(): GPUDevice;
|
|
4509
|
+
};
|
|
4510
|
+
|
|
4228
4511
|
/**
|
|
4229
4512
|
* 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.
|
|
4230
4513
|
* Available only in secure contexts.
|
|
@@ -6840,6 +7123,12 @@ declare var PushManager: {
|
|
|
6840
7123
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
6841
7124
|
};
|
|
6842
7125
|
|
|
7126
|
+
/** Available only in secure contexts. */
|
|
7127
|
+
interface PushManagerAttribute {
|
|
7128
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
7129
|
+
readonly pushManager: PushManager;
|
|
7130
|
+
}
|
|
7131
|
+
|
|
6843
7132
|
/**
|
|
6844
7133
|
* The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
|
|
6845
7134
|
* Available only in secure contexts.
|
|
@@ -7573,7 +7862,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7573
7862
|
*
|
|
7574
7863
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7575
7864
|
*/
|
|
7576
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7865
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7577
7866
|
/**
|
|
7578
7867
|
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
|
|
7579
7868
|
*
|
|
@@ -12365,6 +12654,7 @@ type GLsizei = number;
|
|
|
12365
12654
|
type GLsizeiptr = number;
|
|
12366
12655
|
type GLuint = number;
|
|
12367
12656
|
type GLuint64 = number;
|
|
12657
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12368
12658
|
type GPUBufferDynamicOffset = number;
|
|
12369
12659
|
type GPUColor = number[] | GPUColorDict;
|
|
12370
12660
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12391,7 +12681,7 @@ type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
|
|
|
12391
12681
|
type Int32List = Int32Array<ArrayBufferLike> | GLint[];
|
|
12392
12682
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
12393
12683
|
type NamedCurve = string;
|
|
12394
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
12684
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
12395
12685
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
12396
12686
|
type PerformanceEntryList = PerformanceEntry[];
|
|
12397
12687
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
@@ -12428,11 +12718,16 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
12428
12718
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
12429
12719
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
12430
12720
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
12721
|
+
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
12722
|
+
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12431
12723
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12432
12724
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12725
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12433
12726
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
12727
|
+
type GPULoadOp = "clear" | "load";
|
|
12434
12728
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12435
12729
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
12730
|
+
type GPUStoreOp = "discard" | "store";
|
|
12436
12731
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12437
12732
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12438
12733
|
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";
|
|
@@ -12559,6 +12854,27 @@ interface GPUBindingCommandsMixin {
|
|
|
12559
12854
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
12560
12855
|
}
|
|
12561
12856
|
|
|
12857
|
+
interface GPUCommandEncoder {
|
|
12858
|
+
/**
|
|
12859
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
12860
|
+
*
|
|
12861
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
12862
|
+
*/
|
|
12863
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
12864
|
+
/**
|
|
12865
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
12866
|
+
*
|
|
12867
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
12868
|
+
*/
|
|
12869
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
12870
|
+
/**
|
|
12871
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
12872
|
+
*
|
|
12873
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
12874
|
+
*/
|
|
12875
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
12876
|
+
}
|
|
12877
|
+
|
|
12562
12878
|
interface GPUQueue {
|
|
12563
12879
|
/**
|
|
12564
12880
|
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|