@types/serviceworker 0.0.186 → 0.0.188
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 +112 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +112 -1
- package/ts5.6/index.d.ts +112 -1
- package/ts5.9/index.d.ts +112 -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.188 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.188.
|
package/index.d.ts
CHANGED
|
@@ -291,6 +291,12 @@ interface GPUBufferBinding {
|
|
|
291
291
|
size?: GPUSize64;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
295
|
+
mappedAtCreation?: boolean;
|
|
296
|
+
size: GPUSize64;
|
|
297
|
+
usage: GPUBufferUsageFlags;
|
|
298
|
+
}
|
|
299
|
+
|
|
294
300
|
interface GPUCanvasConfiguration {
|
|
295
301
|
alphaMode?: GPUCanvasAlphaMode;
|
|
296
302
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -315,6 +321,9 @@ interface GPUColorDict {
|
|
|
315
321
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
316
322
|
}
|
|
317
323
|
|
|
324
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
325
|
+
}
|
|
326
|
+
|
|
318
327
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
319
328
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
320
329
|
}
|
|
@@ -325,6 +334,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
325
334
|
querySet: GPUQuerySet;
|
|
326
335
|
}
|
|
327
336
|
|
|
337
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
338
|
+
compute: GPUProgrammableStage;
|
|
339
|
+
}
|
|
340
|
+
|
|
328
341
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
329
342
|
colorSpace?: PredefinedColorSpace;
|
|
330
343
|
premultipliedAlpha?: boolean;
|
|
@@ -361,13 +374,37 @@ interface GPUOrigin3DDict {
|
|
|
361
374
|
z?: GPUIntegerCoordinate;
|
|
362
375
|
}
|
|
363
376
|
|
|
377
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
378
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
379
|
+
}
|
|
380
|
+
|
|
364
381
|
interface GPUPipelineErrorInit {
|
|
365
382
|
reason: GPUPipelineErrorReason;
|
|
366
383
|
}
|
|
367
384
|
|
|
385
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
386
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
interface GPUProgrammableStage {
|
|
390
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
391
|
+
entryPoint?: string;
|
|
392
|
+
module: GPUShaderModule;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
396
|
+
count: GPUSize32;
|
|
397
|
+
type: GPUQueryType;
|
|
398
|
+
}
|
|
399
|
+
|
|
368
400
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
369
401
|
}
|
|
370
402
|
|
|
403
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
404
|
+
depthReadOnly?: boolean;
|
|
405
|
+
stencilReadOnly?: boolean;
|
|
406
|
+
}
|
|
407
|
+
|
|
371
408
|
interface GPURenderPassColorAttachment {
|
|
372
409
|
clearValue?: GPUColor;
|
|
373
410
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -397,12 +434,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
397
434
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
398
435
|
}
|
|
399
436
|
|
|
437
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
438
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
439
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
440
|
+
sampleCount?: GPUSize32;
|
|
441
|
+
}
|
|
442
|
+
|
|
400
443
|
interface GPURenderPassTimestampWrites {
|
|
401
444
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
402
445
|
endOfPassWriteIndex?: GPUSize32;
|
|
403
446
|
querySet: GPUQuerySet;
|
|
404
447
|
}
|
|
405
448
|
|
|
449
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
450
|
+
addressModeU?: GPUAddressMode;
|
|
451
|
+
addressModeV?: GPUAddressMode;
|
|
452
|
+
addressModeW?: GPUAddressMode;
|
|
453
|
+
compare?: GPUCompareFunction;
|
|
454
|
+
lodMaxClamp?: number;
|
|
455
|
+
lodMinClamp?: number;
|
|
456
|
+
magFilter?: GPUFilterMode;
|
|
457
|
+
maxAnisotropy?: number;
|
|
458
|
+
minFilter?: GPUFilterMode;
|
|
459
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
460
|
+
}
|
|
461
|
+
|
|
406
462
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
407
463
|
buffer: GPUBuffer;
|
|
408
464
|
}
|
|
@@ -4790,6 +4846,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4790
4846
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4791
4847
|
*/
|
|
4792
4848
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4849
|
+
/**
|
|
4850
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
4851
|
+
*
|
|
4852
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
4853
|
+
*/
|
|
4854
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
4855
|
+
/**
|
|
4856
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
4857
|
+
*
|
|
4858
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
4859
|
+
*/
|
|
4860
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
4861
|
+
/**
|
|
4862
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
4863
|
+
*
|
|
4864
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
4865
|
+
*/
|
|
4866
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
4867
|
+
/**
|
|
4868
|
+
* The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
|
|
4869
|
+
*
|
|
4870
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
4871
|
+
*/
|
|
4872
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
4873
|
+
/**
|
|
4874
|
+
* The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
|
|
4875
|
+
*
|
|
4876
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
4877
|
+
*/
|
|
4878
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
4879
|
+
/**
|
|
4880
|
+
* The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4881
|
+
*
|
|
4882
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
4883
|
+
*/
|
|
4884
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
4885
|
+
/**
|
|
4886
|
+
* The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
|
|
4887
|
+
*
|
|
4888
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
4889
|
+
*/
|
|
4890
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
4891
|
+
/**
|
|
4892
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
4893
|
+
*
|
|
4894
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
4895
|
+
*/
|
|
4896
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
4793
4897
|
/**
|
|
4794
4898
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4795
4899
|
*
|
|
@@ -12348,7 +12452,7 @@ declare namespace WebAssembly {
|
|
|
12348
12452
|
*
|
|
12349
12453
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12350
12454
|
*/
|
|
12351
|
-
getArg(index: number): any;
|
|
12455
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12352
12456
|
/**
|
|
12353
12457
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12354
12458
|
*
|
|
@@ -12980,6 +13084,7 @@ type GLuint = number;
|
|
|
12980
13084
|
type GLuint64 = number;
|
|
12981
13085
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12982
13086
|
type GPUBufferDynamicOffset = number;
|
|
13087
|
+
type GPUBufferUsageFlags = number;
|
|
12983
13088
|
type GPUColor = number[] | GPUColorDict;
|
|
12984
13089
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12985
13090
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -12990,6 +13095,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
12990
13095
|
type GPUMapModeFlags = number;
|
|
12991
13096
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12992
13097
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
13098
|
+
type GPUPipelineConstantValue = number;
|
|
12993
13099
|
type GPUSignedOffset32 = number;
|
|
12994
13100
|
type GPUSize32 = number;
|
|
12995
13101
|
type GPUSize32Out = number;
|
|
@@ -13045,14 +13151,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13045
13151
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13046
13152
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13047
13153
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13154
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
13155
|
+
type GPUAutoLayoutMode = "auto";
|
|
13048
13156
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
13049
13157
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
13050
13158
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
13159
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
13051
13160
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13052
13161
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13053
13162
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13163
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
13054
13164
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13055
13165
|
type GPULoadOp = "clear" | "load";
|
|
13166
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
13056
13167
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13057
13168
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
13058
13169
|
type GPUStoreOp = "discard" | "store";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -288,6 +288,12 @@ interface GPUBufferBinding {
|
|
|
288
288
|
size?: GPUSize64;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
292
|
+
mappedAtCreation?: boolean;
|
|
293
|
+
size: GPUSize64;
|
|
294
|
+
usage: GPUBufferUsageFlags;
|
|
295
|
+
}
|
|
296
|
+
|
|
291
297
|
interface GPUCanvasConfiguration {
|
|
292
298
|
alphaMode?: GPUCanvasAlphaMode;
|
|
293
299
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -312,6 +318,9 @@ interface GPUColorDict {
|
|
|
312
318
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
313
319
|
}
|
|
314
320
|
|
|
321
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
322
|
+
}
|
|
323
|
+
|
|
315
324
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
316
325
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
317
326
|
}
|
|
@@ -322,6 +331,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
322
331
|
querySet: GPUQuerySet;
|
|
323
332
|
}
|
|
324
333
|
|
|
334
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
335
|
+
compute: GPUProgrammableStage;
|
|
336
|
+
}
|
|
337
|
+
|
|
325
338
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
326
339
|
colorSpace?: PredefinedColorSpace;
|
|
327
340
|
premultipliedAlpha?: boolean;
|
|
@@ -358,13 +371,37 @@ interface GPUOrigin3DDict {
|
|
|
358
371
|
z?: GPUIntegerCoordinate;
|
|
359
372
|
}
|
|
360
373
|
|
|
374
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
375
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
376
|
+
}
|
|
377
|
+
|
|
361
378
|
interface GPUPipelineErrorInit {
|
|
362
379
|
reason: GPUPipelineErrorReason;
|
|
363
380
|
}
|
|
364
381
|
|
|
382
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
383
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
interface GPUProgrammableStage {
|
|
387
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
388
|
+
entryPoint?: string;
|
|
389
|
+
module: GPUShaderModule;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
393
|
+
count: GPUSize32;
|
|
394
|
+
type: GPUQueryType;
|
|
395
|
+
}
|
|
396
|
+
|
|
365
397
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
366
398
|
}
|
|
367
399
|
|
|
400
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
401
|
+
depthReadOnly?: boolean;
|
|
402
|
+
stencilReadOnly?: boolean;
|
|
403
|
+
}
|
|
404
|
+
|
|
368
405
|
interface GPURenderPassColorAttachment {
|
|
369
406
|
clearValue?: GPUColor;
|
|
370
407
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -394,12 +431,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
394
431
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
395
432
|
}
|
|
396
433
|
|
|
434
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
435
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
436
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
437
|
+
sampleCount?: GPUSize32;
|
|
438
|
+
}
|
|
439
|
+
|
|
397
440
|
interface GPURenderPassTimestampWrites {
|
|
398
441
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
399
442
|
endOfPassWriteIndex?: GPUSize32;
|
|
400
443
|
querySet: GPUQuerySet;
|
|
401
444
|
}
|
|
402
445
|
|
|
446
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
447
|
+
addressModeU?: GPUAddressMode;
|
|
448
|
+
addressModeV?: GPUAddressMode;
|
|
449
|
+
addressModeW?: GPUAddressMode;
|
|
450
|
+
compare?: GPUCompareFunction;
|
|
451
|
+
lodMaxClamp?: number;
|
|
452
|
+
lodMinClamp?: number;
|
|
453
|
+
magFilter?: GPUFilterMode;
|
|
454
|
+
maxAnisotropy?: number;
|
|
455
|
+
minFilter?: GPUFilterMode;
|
|
456
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
457
|
+
}
|
|
458
|
+
|
|
403
459
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
404
460
|
buffer: GPUBuffer;
|
|
405
461
|
}
|
|
@@ -4787,6 +4843,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4787
4843
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4788
4844
|
*/
|
|
4789
4845
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4846
|
+
/**
|
|
4847
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
4848
|
+
*
|
|
4849
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
4850
|
+
*/
|
|
4851
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
4852
|
+
/**
|
|
4853
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
4854
|
+
*
|
|
4855
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
4856
|
+
*/
|
|
4857
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
4858
|
+
/**
|
|
4859
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
4860
|
+
*
|
|
4861
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
4862
|
+
*/
|
|
4863
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
4864
|
+
/**
|
|
4865
|
+
* The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
|
|
4866
|
+
*
|
|
4867
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
4868
|
+
*/
|
|
4869
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
4870
|
+
/**
|
|
4871
|
+
* The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
|
|
4872
|
+
*
|
|
4873
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
4874
|
+
*/
|
|
4875
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
4876
|
+
/**
|
|
4877
|
+
* The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4878
|
+
*
|
|
4879
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
4880
|
+
*/
|
|
4881
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
4882
|
+
/**
|
|
4883
|
+
* The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
|
|
4884
|
+
*
|
|
4885
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
4886
|
+
*/
|
|
4887
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
4888
|
+
/**
|
|
4889
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
4890
|
+
*
|
|
4891
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
4892
|
+
*/
|
|
4893
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
4790
4894
|
/**
|
|
4791
4895
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4792
4896
|
*
|
|
@@ -12345,7 +12449,7 @@ declare namespace WebAssembly {
|
|
|
12345
12449
|
*
|
|
12346
12450
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12347
12451
|
*/
|
|
12348
|
-
getArg(index: number): any;
|
|
12452
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12349
12453
|
/**
|
|
12350
12454
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12351
12455
|
*
|
|
@@ -12977,6 +13081,7 @@ type GLuint = number;
|
|
|
12977
13081
|
type GLuint64 = number;
|
|
12978
13082
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12979
13083
|
type GPUBufferDynamicOffset = number;
|
|
13084
|
+
type GPUBufferUsageFlags = number;
|
|
12980
13085
|
type GPUColor = number[] | GPUColorDict;
|
|
12981
13086
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12982
13087
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -12987,6 +13092,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
12987
13092
|
type GPUMapModeFlags = number;
|
|
12988
13093
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12989
13094
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
13095
|
+
type GPUPipelineConstantValue = number;
|
|
12990
13096
|
type GPUSignedOffset32 = number;
|
|
12991
13097
|
type GPUSize32 = number;
|
|
12992
13098
|
type GPUSize32Out = number;
|
|
@@ -13042,14 +13148,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13042
13148
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13043
13149
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13044
13150
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13151
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
13152
|
+
type GPUAutoLayoutMode = "auto";
|
|
13045
13153
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
13046
13154
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
13047
13155
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
13156
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
13048
13157
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13049
13158
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13050
13159
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13160
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
13051
13161
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13052
13162
|
type GPULoadOp = "clear" | "load";
|
|
13163
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
13053
13164
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13054
13165
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
13055
13166
|
type GPUStoreOp = "discard" | "store";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -288,6 +288,12 @@ interface GPUBufferBinding {
|
|
|
288
288
|
size?: GPUSize64;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
292
|
+
mappedAtCreation?: boolean;
|
|
293
|
+
size: GPUSize64;
|
|
294
|
+
usage: GPUBufferUsageFlags;
|
|
295
|
+
}
|
|
296
|
+
|
|
291
297
|
interface GPUCanvasConfiguration {
|
|
292
298
|
alphaMode?: GPUCanvasAlphaMode;
|
|
293
299
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -312,6 +318,9 @@ interface GPUColorDict {
|
|
|
312
318
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
313
319
|
}
|
|
314
320
|
|
|
321
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
322
|
+
}
|
|
323
|
+
|
|
315
324
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
316
325
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
317
326
|
}
|
|
@@ -322,6 +331,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
322
331
|
querySet: GPUQuerySet;
|
|
323
332
|
}
|
|
324
333
|
|
|
334
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
335
|
+
compute: GPUProgrammableStage;
|
|
336
|
+
}
|
|
337
|
+
|
|
325
338
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
326
339
|
colorSpace?: PredefinedColorSpace;
|
|
327
340
|
premultipliedAlpha?: boolean;
|
|
@@ -358,13 +371,37 @@ interface GPUOrigin3DDict {
|
|
|
358
371
|
z?: GPUIntegerCoordinate;
|
|
359
372
|
}
|
|
360
373
|
|
|
374
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
375
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
376
|
+
}
|
|
377
|
+
|
|
361
378
|
interface GPUPipelineErrorInit {
|
|
362
379
|
reason: GPUPipelineErrorReason;
|
|
363
380
|
}
|
|
364
381
|
|
|
382
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
383
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
interface GPUProgrammableStage {
|
|
387
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
388
|
+
entryPoint?: string;
|
|
389
|
+
module: GPUShaderModule;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
393
|
+
count: GPUSize32;
|
|
394
|
+
type: GPUQueryType;
|
|
395
|
+
}
|
|
396
|
+
|
|
365
397
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
366
398
|
}
|
|
367
399
|
|
|
400
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
401
|
+
depthReadOnly?: boolean;
|
|
402
|
+
stencilReadOnly?: boolean;
|
|
403
|
+
}
|
|
404
|
+
|
|
368
405
|
interface GPURenderPassColorAttachment {
|
|
369
406
|
clearValue?: GPUColor;
|
|
370
407
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -394,12 +431,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
394
431
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
395
432
|
}
|
|
396
433
|
|
|
434
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
435
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
436
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
437
|
+
sampleCount?: GPUSize32;
|
|
438
|
+
}
|
|
439
|
+
|
|
397
440
|
interface GPURenderPassTimestampWrites {
|
|
398
441
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
399
442
|
endOfPassWriteIndex?: GPUSize32;
|
|
400
443
|
querySet: GPUQuerySet;
|
|
401
444
|
}
|
|
402
445
|
|
|
446
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
447
|
+
addressModeU?: GPUAddressMode;
|
|
448
|
+
addressModeV?: GPUAddressMode;
|
|
449
|
+
addressModeW?: GPUAddressMode;
|
|
450
|
+
compare?: GPUCompareFunction;
|
|
451
|
+
lodMaxClamp?: number;
|
|
452
|
+
lodMinClamp?: number;
|
|
453
|
+
magFilter?: GPUFilterMode;
|
|
454
|
+
maxAnisotropy?: number;
|
|
455
|
+
minFilter?: GPUFilterMode;
|
|
456
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
457
|
+
}
|
|
458
|
+
|
|
403
459
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
404
460
|
buffer: GPUBuffer;
|
|
405
461
|
}
|
|
@@ -4787,6 +4843,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4787
4843
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4788
4844
|
*/
|
|
4789
4845
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4846
|
+
/**
|
|
4847
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
4848
|
+
*
|
|
4849
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
4850
|
+
*/
|
|
4851
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
4852
|
+
/**
|
|
4853
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
4854
|
+
*
|
|
4855
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
4856
|
+
*/
|
|
4857
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
4858
|
+
/**
|
|
4859
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
4860
|
+
*
|
|
4861
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
4862
|
+
*/
|
|
4863
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
4864
|
+
/**
|
|
4865
|
+
* The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
|
|
4866
|
+
*
|
|
4867
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
4868
|
+
*/
|
|
4869
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
4870
|
+
/**
|
|
4871
|
+
* The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
|
|
4872
|
+
*
|
|
4873
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
4874
|
+
*/
|
|
4875
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
4876
|
+
/**
|
|
4877
|
+
* The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4878
|
+
*
|
|
4879
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
4880
|
+
*/
|
|
4881
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
4882
|
+
/**
|
|
4883
|
+
* The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
|
|
4884
|
+
*
|
|
4885
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
4886
|
+
*/
|
|
4887
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
4888
|
+
/**
|
|
4889
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
4890
|
+
*
|
|
4891
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
4892
|
+
*/
|
|
4893
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
4790
4894
|
/**
|
|
4791
4895
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4792
4896
|
*
|
|
@@ -12345,7 +12449,7 @@ declare namespace WebAssembly {
|
|
|
12345
12449
|
*
|
|
12346
12450
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12347
12451
|
*/
|
|
12348
|
-
getArg(index: number): any;
|
|
12452
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12349
12453
|
/**
|
|
12350
12454
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12351
12455
|
*
|
|
@@ -12977,6 +13081,7 @@ type GLuint = number;
|
|
|
12977
13081
|
type GLuint64 = number;
|
|
12978
13082
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12979
13083
|
type GPUBufferDynamicOffset = number;
|
|
13084
|
+
type GPUBufferUsageFlags = number;
|
|
12980
13085
|
type GPUColor = number[] | GPUColorDict;
|
|
12981
13086
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12982
13087
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -12987,6 +13092,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
12987
13092
|
type GPUMapModeFlags = number;
|
|
12988
13093
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12989
13094
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
13095
|
+
type GPUPipelineConstantValue = number;
|
|
12990
13096
|
type GPUSignedOffset32 = number;
|
|
12991
13097
|
type GPUSize32 = number;
|
|
12992
13098
|
type GPUSize32Out = number;
|
|
@@ -13042,14 +13148,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13042
13148
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13043
13149
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13044
13150
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13151
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
13152
|
+
type GPUAutoLayoutMode = "auto";
|
|
13045
13153
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
13046
13154
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
13047
13155
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
13156
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
13048
13157
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13049
13158
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13050
13159
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13160
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
13051
13161
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13052
13162
|
type GPULoadOp = "clear" | "load";
|
|
13163
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
13053
13164
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13054
13165
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
13055
13166
|
type GPUStoreOp = "discard" | "store";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -288,6 +288,12 @@ interface GPUBufferBinding {
|
|
|
288
288
|
size?: GPUSize64;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
292
|
+
mappedAtCreation?: boolean;
|
|
293
|
+
size: GPUSize64;
|
|
294
|
+
usage: GPUBufferUsageFlags;
|
|
295
|
+
}
|
|
296
|
+
|
|
291
297
|
interface GPUCanvasConfiguration {
|
|
292
298
|
alphaMode?: GPUCanvasAlphaMode;
|
|
293
299
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -312,6 +318,9 @@ interface GPUColorDict {
|
|
|
312
318
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
313
319
|
}
|
|
314
320
|
|
|
321
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
322
|
+
}
|
|
323
|
+
|
|
315
324
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
316
325
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
317
326
|
}
|
|
@@ -322,6 +331,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
322
331
|
querySet: GPUQuerySet;
|
|
323
332
|
}
|
|
324
333
|
|
|
334
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
335
|
+
compute: GPUProgrammableStage;
|
|
336
|
+
}
|
|
337
|
+
|
|
325
338
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
326
339
|
colorSpace?: PredefinedColorSpace;
|
|
327
340
|
premultipliedAlpha?: boolean;
|
|
@@ -358,13 +371,37 @@ interface GPUOrigin3DDict {
|
|
|
358
371
|
z?: GPUIntegerCoordinate;
|
|
359
372
|
}
|
|
360
373
|
|
|
374
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
375
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
376
|
+
}
|
|
377
|
+
|
|
361
378
|
interface GPUPipelineErrorInit {
|
|
362
379
|
reason: GPUPipelineErrorReason;
|
|
363
380
|
}
|
|
364
381
|
|
|
382
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
383
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
interface GPUProgrammableStage {
|
|
387
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
388
|
+
entryPoint?: string;
|
|
389
|
+
module: GPUShaderModule;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
393
|
+
count: GPUSize32;
|
|
394
|
+
type: GPUQueryType;
|
|
395
|
+
}
|
|
396
|
+
|
|
365
397
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
366
398
|
}
|
|
367
399
|
|
|
400
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
401
|
+
depthReadOnly?: boolean;
|
|
402
|
+
stencilReadOnly?: boolean;
|
|
403
|
+
}
|
|
404
|
+
|
|
368
405
|
interface GPURenderPassColorAttachment {
|
|
369
406
|
clearValue?: GPUColor;
|
|
370
407
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -394,12 +431,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
394
431
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
395
432
|
}
|
|
396
433
|
|
|
434
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
435
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
436
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
437
|
+
sampleCount?: GPUSize32;
|
|
438
|
+
}
|
|
439
|
+
|
|
397
440
|
interface GPURenderPassTimestampWrites {
|
|
398
441
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
399
442
|
endOfPassWriteIndex?: GPUSize32;
|
|
400
443
|
querySet: GPUQuerySet;
|
|
401
444
|
}
|
|
402
445
|
|
|
446
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
447
|
+
addressModeU?: GPUAddressMode;
|
|
448
|
+
addressModeV?: GPUAddressMode;
|
|
449
|
+
addressModeW?: GPUAddressMode;
|
|
450
|
+
compare?: GPUCompareFunction;
|
|
451
|
+
lodMaxClamp?: number;
|
|
452
|
+
lodMinClamp?: number;
|
|
453
|
+
magFilter?: GPUFilterMode;
|
|
454
|
+
maxAnisotropy?: number;
|
|
455
|
+
minFilter?: GPUFilterMode;
|
|
456
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
457
|
+
}
|
|
458
|
+
|
|
403
459
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
404
460
|
buffer: GPUBuffer;
|
|
405
461
|
}
|
|
@@ -4787,6 +4843,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
4787
4843
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
4788
4844
|
*/
|
|
4789
4845
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
4846
|
+
/**
|
|
4847
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
4848
|
+
*
|
|
4849
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
4850
|
+
*/
|
|
4851
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
4852
|
+
/**
|
|
4853
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
4854
|
+
*
|
|
4855
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
4856
|
+
*/
|
|
4857
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
4858
|
+
/**
|
|
4859
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
4860
|
+
*
|
|
4861
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
4862
|
+
*/
|
|
4863
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
4864
|
+
/**
|
|
4865
|
+
* The **`createComputePipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPUComputePipeline, which can control the compute shader stage and be used in a GPUComputePassEncoder, once the pipeline can be used without any stalling.
|
|
4866
|
+
*
|
|
4867
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
4868
|
+
*/
|
|
4869
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
4870
|
+
/**
|
|
4871
|
+
* The **`createPipelineLayout()`** method of the GPUDevice interface creates a GPUPipelineLayout that defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
|
|
4872
|
+
*
|
|
4873
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
4874
|
+
*/
|
|
4875
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
4876
|
+
/**
|
|
4877
|
+
* The **`createQuerySet()`** method of the GPUDevice interface creates a GPUQuerySet that can be used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
4878
|
+
*
|
|
4879
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
4880
|
+
*/
|
|
4881
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
4882
|
+
/**
|
|
4883
|
+
* The **`createRenderBundleEncoder()`** method of the GPUDevice interface creates a GPURenderBundleEncoder that can be used to pre-record bundles of commands. These can be reused in GPURenderPassEncoders via the executeBundles() method, as many times as required.
|
|
4884
|
+
*
|
|
4885
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
4886
|
+
*/
|
|
4887
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
4888
|
+
/**
|
|
4889
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
4890
|
+
*
|
|
4891
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
4892
|
+
*/
|
|
4893
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
4790
4894
|
/**
|
|
4791
4895
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
4792
4896
|
*
|
|
@@ -12345,7 +12449,7 @@ declare namespace WebAssembly {
|
|
|
12345
12449
|
*
|
|
12346
12450
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
12347
12451
|
*/
|
|
12348
|
-
getArg(index: number): any;
|
|
12452
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
12349
12453
|
/**
|
|
12350
12454
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
12351
12455
|
*
|
|
@@ -12977,6 +13081,7 @@ type GLuint = number;
|
|
|
12977
13081
|
type GLuint64 = number;
|
|
12978
13082
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
12979
13083
|
type GPUBufferDynamicOffset = number;
|
|
13084
|
+
type GPUBufferUsageFlags = number;
|
|
12980
13085
|
type GPUColor = number[] | GPUColorDict;
|
|
12981
13086
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
12982
13087
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -12987,6 +13092,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
12987
13092
|
type GPUMapModeFlags = number;
|
|
12988
13093
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
12989
13094
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
13095
|
+
type GPUPipelineConstantValue = number;
|
|
12990
13096
|
type GPUSignedOffset32 = number;
|
|
12991
13097
|
type GPUSize32 = number;
|
|
12992
13098
|
type GPUSize32Out = number;
|
|
@@ -13042,14 +13148,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13042
13148
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13043
13149
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13044
13150
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13151
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
13152
|
+
type GPUAutoLayoutMode = "auto";
|
|
13045
13153
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
13046
13154
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
13047
13155
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
13156
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
13048
13157
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
13049
13158
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13050
13159
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13160
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
13051
13161
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
13052
13162
|
type GPULoadOp = "clear" | "load";
|
|
13163
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
13053
13164
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13054
13165
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
13055
13166
|
type GPUStoreOp = "discard" | "store";
|