@types/serviceworker 0.0.185 → 0.0.187
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 +53 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +53 -1
- package/ts5.6/index.d.ts +53 -1
- package/ts5.9/index.d.ts +53 -1
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.187 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.187.
|
package/index.d.ts
CHANGED
|
@@ -275,6 +275,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
275
275
|
fontfaces?: FontFace[];
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
279
|
+
entries: GPUBindGroupEntry[];
|
|
280
|
+
layout: GPUBindGroupLayout;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface GPUBindGroupEntry {
|
|
284
|
+
binding: GPUIndex32;
|
|
285
|
+
resource: GPUBindingResource;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
interface GPUBufferBinding {
|
|
289
|
+
buffer: GPUBuffer;
|
|
290
|
+
offset?: GPUSize64;
|
|
291
|
+
size?: GPUSize64;
|
|
292
|
+
}
|
|
293
|
+
|
|
278
294
|
interface GPUCanvasConfiguration {
|
|
279
295
|
alphaMode?: GPUCanvasAlphaMode;
|
|
280
296
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -326,6 +342,10 @@ interface GPUExtent3DDict {
|
|
|
326
342
|
width: GPUIntegerCoordinate;
|
|
327
343
|
}
|
|
328
344
|
|
|
345
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
346
|
+
colorSpace?: PredefinedColorSpace;
|
|
347
|
+
}
|
|
348
|
+
|
|
329
349
|
interface GPUObjectDescriptorBase {
|
|
330
350
|
label?: string;
|
|
331
351
|
}
|
|
@@ -4764,6 +4784,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4764
4784
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4765
4785
|
*/
|
|
4766
4786
|
readonly queue: GPUQueue;
|
|
4787
|
+
/**
|
|
4788
|
+
* 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.
|
|
4789
|
+
*
|
|
4790
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4791
|
+
*/
|
|
4792
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4793
|
+
/**
|
|
4794
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4795
|
+
*
|
|
4796
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4797
|
+
*/
|
|
4798
|
+
destroy(): void;
|
|
4799
|
+
/**
|
|
4800
|
+
* 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.
|
|
4801
|
+
*
|
|
4802
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4803
|
+
*/
|
|
4804
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4805
|
+
/**
|
|
4806
|
+
* 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.
|
|
4807
|
+
*
|
|
4808
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4809
|
+
*/
|
|
4810
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4811
|
+
/**
|
|
4812
|
+
* 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.
|
|
4813
|
+
*
|
|
4814
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4815
|
+
*/
|
|
4816
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4767
4817
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4768
4818
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4769
4819
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -12298,7 +12348,7 @@ declare namespace WebAssembly {
|
|
|
12298
12348
|
*
|
|
12299
12349
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12300
12350
|
*/
|
|
12301
|
-
getArg(index: number): any;
|
|
12351
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12302
12352
|
/**
|
|
12303
12353
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12304
12354
|
*
|
|
@@ -12928,6 +12978,7 @@ type GLsizei = number;
|
|
|
12928
12978
|
type GLsizeiptr = number;
|
|
12929
12979
|
type GLuint = number;
|
|
12930
12980
|
type GLuint64 = number;
|
|
12981
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12931
12982
|
type GPUBufferDynamicOffset = number;
|
|
12932
12983
|
type GPUColor = number[] | GPUColorDict;
|
|
12933
12984
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12999,6 +13050,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12999
13050
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
13000
13051
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13001
13052
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13053
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13002
13054
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13003
13055
|
type GPULoadOp = "clear" | "load";
|
|
13004
13056
|
type GPUPipelineErrorReason = "internal" | "validation";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -272,6 +272,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
272
272
|
fontfaces?: FontFace[];
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
276
|
+
entries: GPUBindGroupEntry[];
|
|
277
|
+
layout: GPUBindGroupLayout;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
interface GPUBindGroupEntry {
|
|
281
|
+
binding: GPUIndex32;
|
|
282
|
+
resource: GPUBindingResource;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
interface GPUBufferBinding {
|
|
286
|
+
buffer: GPUBuffer;
|
|
287
|
+
offset?: GPUSize64;
|
|
288
|
+
size?: GPUSize64;
|
|
289
|
+
}
|
|
290
|
+
|
|
275
291
|
interface GPUCanvasConfiguration {
|
|
276
292
|
alphaMode?: GPUCanvasAlphaMode;
|
|
277
293
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -323,6 +339,10 @@ interface GPUExtent3DDict {
|
|
|
323
339
|
width: GPUIntegerCoordinate;
|
|
324
340
|
}
|
|
325
341
|
|
|
342
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
343
|
+
colorSpace?: PredefinedColorSpace;
|
|
344
|
+
}
|
|
345
|
+
|
|
326
346
|
interface GPUObjectDescriptorBase {
|
|
327
347
|
label?: string;
|
|
328
348
|
}
|
|
@@ -4761,6 +4781,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4761
4781
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4762
4782
|
*/
|
|
4763
4783
|
readonly queue: GPUQueue;
|
|
4784
|
+
/**
|
|
4785
|
+
* 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.
|
|
4786
|
+
*
|
|
4787
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4788
|
+
*/
|
|
4789
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4790
|
+
/**
|
|
4791
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4792
|
+
*
|
|
4793
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4794
|
+
*/
|
|
4795
|
+
destroy(): void;
|
|
4796
|
+
/**
|
|
4797
|
+
* 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.
|
|
4798
|
+
*
|
|
4799
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4800
|
+
*/
|
|
4801
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4802
|
+
/**
|
|
4803
|
+
* 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.
|
|
4804
|
+
*
|
|
4805
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4806
|
+
*/
|
|
4807
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4808
|
+
/**
|
|
4809
|
+
* 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.
|
|
4810
|
+
*
|
|
4811
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4812
|
+
*/
|
|
4813
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4764
4814
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4765
4815
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4766
4816
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -12295,7 +12345,7 @@ declare namespace WebAssembly {
|
|
|
12295
12345
|
*
|
|
12296
12346
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12297
12347
|
*/
|
|
12298
|
-
getArg(index: number): any;
|
|
12348
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12299
12349
|
/**
|
|
12300
12350
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12301
12351
|
*
|
|
@@ -12925,6 +12975,7 @@ type GLsizei = number;
|
|
|
12925
12975
|
type GLsizeiptr = number;
|
|
12926
12976
|
type GLuint = number;
|
|
12927
12977
|
type GLuint64 = number;
|
|
12978
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12928
12979
|
type GPUBufferDynamicOffset = number;
|
|
12929
12980
|
type GPUColor = number[] | GPUColorDict;
|
|
12930
12981
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12996,6 +13047,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12996
13047
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12997
13048
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12998
13049
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13050
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12999
13051
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13000
13052
|
type GPULoadOp = "clear" | "load";
|
|
13001
13053
|
type GPUPipelineErrorReason = "internal" | "validation";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -272,6 +272,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
272
272
|
fontfaces?: FontFace[];
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
276
|
+
entries: GPUBindGroupEntry[];
|
|
277
|
+
layout: GPUBindGroupLayout;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
interface GPUBindGroupEntry {
|
|
281
|
+
binding: GPUIndex32;
|
|
282
|
+
resource: GPUBindingResource;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
interface GPUBufferBinding {
|
|
286
|
+
buffer: GPUBuffer;
|
|
287
|
+
offset?: GPUSize64;
|
|
288
|
+
size?: GPUSize64;
|
|
289
|
+
}
|
|
290
|
+
|
|
275
291
|
interface GPUCanvasConfiguration {
|
|
276
292
|
alphaMode?: GPUCanvasAlphaMode;
|
|
277
293
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -323,6 +339,10 @@ interface GPUExtent3DDict {
|
|
|
323
339
|
width: GPUIntegerCoordinate;
|
|
324
340
|
}
|
|
325
341
|
|
|
342
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
343
|
+
colorSpace?: PredefinedColorSpace;
|
|
344
|
+
}
|
|
345
|
+
|
|
326
346
|
interface GPUObjectDescriptorBase {
|
|
327
347
|
label?: string;
|
|
328
348
|
}
|
|
@@ -4761,6 +4781,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4761
4781
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4762
4782
|
*/
|
|
4763
4783
|
readonly queue: GPUQueue;
|
|
4784
|
+
/**
|
|
4785
|
+
* 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.
|
|
4786
|
+
*
|
|
4787
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4788
|
+
*/
|
|
4789
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4790
|
+
/**
|
|
4791
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4792
|
+
*
|
|
4793
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4794
|
+
*/
|
|
4795
|
+
destroy(): void;
|
|
4796
|
+
/**
|
|
4797
|
+
* 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.
|
|
4798
|
+
*
|
|
4799
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4800
|
+
*/
|
|
4801
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4802
|
+
/**
|
|
4803
|
+
* 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.
|
|
4804
|
+
*
|
|
4805
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4806
|
+
*/
|
|
4807
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4808
|
+
/**
|
|
4809
|
+
* 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.
|
|
4810
|
+
*
|
|
4811
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4812
|
+
*/
|
|
4813
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4764
4814
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4765
4815
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4766
4816
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -12295,7 +12345,7 @@ declare namespace WebAssembly {
|
|
|
12295
12345
|
*
|
|
12296
12346
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12297
12347
|
*/
|
|
12298
|
-
getArg(index: number): any;
|
|
12348
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12299
12349
|
/**
|
|
12300
12350
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12301
12351
|
*
|
|
@@ -12925,6 +12975,7 @@ type GLsizei = number;
|
|
|
12925
12975
|
type GLsizeiptr = number;
|
|
12926
12976
|
type GLuint = number;
|
|
12927
12977
|
type GLuint64 = number;
|
|
12978
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12928
12979
|
type GPUBufferDynamicOffset = number;
|
|
12929
12980
|
type GPUColor = number[] | GPUColorDict;
|
|
12930
12981
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12996,6 +13047,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12996
13047
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12997
13048
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12998
13049
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13050
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12999
13051
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13000
13052
|
type GPULoadOp = "clear" | "load";
|
|
13001
13053
|
type GPUPipelineErrorReason = "internal" | "validation";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -272,6 +272,22 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
272
272
|
fontfaces?: FontFace[];
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
276
|
+
entries: GPUBindGroupEntry[];
|
|
277
|
+
layout: GPUBindGroupLayout;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
interface GPUBindGroupEntry {
|
|
281
|
+
binding: GPUIndex32;
|
|
282
|
+
resource: GPUBindingResource;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
interface GPUBufferBinding {
|
|
286
|
+
buffer: GPUBuffer;
|
|
287
|
+
offset?: GPUSize64;
|
|
288
|
+
size?: GPUSize64;
|
|
289
|
+
}
|
|
290
|
+
|
|
275
291
|
interface GPUCanvasConfiguration {
|
|
276
292
|
alphaMode?: GPUCanvasAlphaMode;
|
|
277
293
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -323,6 +339,10 @@ interface GPUExtent3DDict {
|
|
|
323
339
|
width: GPUIntegerCoordinate;
|
|
324
340
|
}
|
|
325
341
|
|
|
342
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
343
|
+
colorSpace?: PredefinedColorSpace;
|
|
344
|
+
}
|
|
345
|
+
|
|
326
346
|
interface GPUObjectDescriptorBase {
|
|
327
347
|
label?: string;
|
|
328
348
|
}
|
|
@@ -4761,6 +4781,36 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4761
4781
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
4762
4782
|
*/
|
|
4763
4783
|
readonly queue: GPUQueue;
|
|
4784
|
+
/**
|
|
4785
|
+
* 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.
|
|
4786
|
+
*
|
|
4787
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4788
|
+
*/
|
|
4789
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4790
|
+
/**
|
|
4791
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4792
|
+
*
|
|
4793
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
4794
|
+
*/
|
|
4795
|
+
destroy(): void;
|
|
4796
|
+
/**
|
|
4797
|
+
* 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.
|
|
4798
|
+
*
|
|
4799
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
4800
|
+
*/
|
|
4801
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
4802
|
+
/**
|
|
4803
|
+
* 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.
|
|
4804
|
+
*
|
|
4805
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
4806
|
+
*/
|
|
4807
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
4808
|
+
/**
|
|
4809
|
+
* 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.
|
|
4810
|
+
*
|
|
4811
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
4812
|
+
*/
|
|
4813
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
4764
4814
|
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4765
4815
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4766
4816
|
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -12295,7 +12345,7 @@ declare namespace WebAssembly {
|
|
|
12295
12345
|
*
|
|
12296
12346
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12297
12347
|
*/
|
|
12298
|
-
getArg(index: number): any;
|
|
12348
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12299
12349
|
/**
|
|
12300
12350
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12301
12351
|
*
|
|
@@ -12925,6 +12975,7 @@ type GLsizei = number;
|
|
|
12925
12975
|
type GLsizeiptr = number;
|
|
12926
12976
|
type GLuint = number;
|
|
12927
12977
|
type GLuint64 = number;
|
|
12978
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12928
12979
|
type GPUBufferDynamicOffset = number;
|
|
12929
12980
|
type GPUColor = number[] | GPUColorDict;
|
|
12930
12981
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -12996,6 +13047,7 @@ type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
|
12996
13047
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
12997
13048
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12998
13049
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13050
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
12999
13051
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13000
13052
|
type GPULoadOp = "clear" | "load";
|
|
13001
13053
|
type GPUPipelineErrorReason = "internal" | "validation";
|