@types/webworker 0.0.66 → 0.0.67
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 +111 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +111 -0
- package/ts5.6/index.d.ts +111 -0
- package/ts5.9/index.d.ts +111 -0
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.67 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.67.
|
package/index.d.ts
CHANGED
|
@@ -381,6 +381,12 @@ interface GPUBufferBinding {
|
|
|
381
381
|
size?: GPUSize64;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
385
|
+
mappedAtCreation?: boolean;
|
|
386
|
+
size: GPUSize64;
|
|
387
|
+
usage: GPUBufferUsageFlags;
|
|
388
|
+
}
|
|
389
|
+
|
|
384
390
|
interface GPUCanvasConfiguration {
|
|
385
391
|
alphaMode?: GPUCanvasAlphaMode;
|
|
386
392
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -405,6 +411,9 @@ interface GPUColorDict {
|
|
|
405
411
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
406
412
|
}
|
|
407
413
|
|
|
414
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
415
|
+
}
|
|
416
|
+
|
|
408
417
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
409
418
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
410
419
|
}
|
|
@@ -415,6 +424,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
415
424
|
querySet: GPUQuerySet;
|
|
416
425
|
}
|
|
417
426
|
|
|
427
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
428
|
+
compute: GPUProgrammableStage;
|
|
429
|
+
}
|
|
430
|
+
|
|
418
431
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
419
432
|
colorSpace?: PredefinedColorSpace;
|
|
420
433
|
premultipliedAlpha?: boolean;
|
|
@@ -452,13 +465,37 @@ interface GPUOrigin3DDict {
|
|
|
452
465
|
z?: GPUIntegerCoordinate;
|
|
453
466
|
}
|
|
454
467
|
|
|
468
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
469
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
470
|
+
}
|
|
471
|
+
|
|
455
472
|
interface GPUPipelineErrorInit {
|
|
456
473
|
reason: GPUPipelineErrorReason;
|
|
457
474
|
}
|
|
458
475
|
|
|
476
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
477
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
interface GPUProgrammableStage {
|
|
481
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
482
|
+
entryPoint?: string;
|
|
483
|
+
module: GPUShaderModule;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
487
|
+
count: GPUSize32;
|
|
488
|
+
type: GPUQueryType;
|
|
489
|
+
}
|
|
490
|
+
|
|
459
491
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
460
492
|
}
|
|
461
493
|
|
|
494
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
495
|
+
depthReadOnly?: boolean;
|
|
496
|
+
stencilReadOnly?: boolean;
|
|
497
|
+
}
|
|
498
|
+
|
|
462
499
|
interface GPURenderPassColorAttachment {
|
|
463
500
|
clearValue?: GPUColor;
|
|
464
501
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -488,12 +525,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
488
525
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
489
526
|
}
|
|
490
527
|
|
|
528
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
529
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
530
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
531
|
+
sampleCount?: GPUSize32;
|
|
532
|
+
}
|
|
533
|
+
|
|
491
534
|
interface GPURenderPassTimestampWrites {
|
|
492
535
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
493
536
|
endOfPassWriteIndex?: GPUSize32;
|
|
494
537
|
querySet: GPUQuerySet;
|
|
495
538
|
}
|
|
496
539
|
|
|
540
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
541
|
+
addressModeU?: GPUAddressMode;
|
|
542
|
+
addressModeV?: GPUAddressMode;
|
|
543
|
+
addressModeW?: GPUAddressMode;
|
|
544
|
+
compare?: GPUCompareFunction;
|
|
545
|
+
lodMaxClamp?: number;
|
|
546
|
+
lodMinClamp?: number;
|
|
547
|
+
magFilter?: GPUFilterMode;
|
|
548
|
+
maxAnisotropy?: number;
|
|
549
|
+
minFilter?: GPUFilterMode;
|
|
550
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
551
|
+
}
|
|
552
|
+
|
|
497
553
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
498
554
|
buffer: GPUBuffer;
|
|
499
555
|
}
|
|
@@ -5493,6 +5549,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
5493
5549
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
5494
5550
|
*/
|
|
5495
5551
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
5552
|
+
/**
|
|
5553
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
5554
|
+
*
|
|
5555
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
5556
|
+
*/
|
|
5557
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
5558
|
+
/**
|
|
5559
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
5560
|
+
*
|
|
5561
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
5562
|
+
*/
|
|
5563
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
5564
|
+
/**
|
|
5565
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
5566
|
+
*
|
|
5567
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
5568
|
+
*/
|
|
5569
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
5570
|
+
/**
|
|
5571
|
+
* 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.
|
|
5572
|
+
*
|
|
5573
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
5574
|
+
*/
|
|
5575
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
5576
|
+
/**
|
|
5577
|
+
* 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.
|
|
5578
|
+
*
|
|
5579
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
5580
|
+
*/
|
|
5581
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
5582
|
+
/**
|
|
5583
|
+
* 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.
|
|
5584
|
+
*
|
|
5585
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
5586
|
+
*/
|
|
5587
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
5588
|
+
/**
|
|
5589
|
+
* 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.
|
|
5590
|
+
*
|
|
5591
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
5592
|
+
*/
|
|
5593
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
5594
|
+
/**
|
|
5595
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
5596
|
+
*
|
|
5597
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
5598
|
+
*/
|
|
5599
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
5496
5600
|
/**
|
|
5497
5601
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
5498
5602
|
*
|
|
@@ -14658,6 +14762,7 @@ type GLuint = number;
|
|
|
14658
14762
|
type GLuint64 = number;
|
|
14659
14763
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
14660
14764
|
type GPUBufferDynamicOffset = number;
|
|
14765
|
+
type GPUBufferUsageFlags = number;
|
|
14661
14766
|
type GPUColor = number[] | GPUColorDict;
|
|
14662
14767
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
|
|
14663
14768
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -14668,6 +14773,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
14668
14773
|
type GPUMapModeFlags = number;
|
|
14669
14774
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
14670
14775
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
14776
|
+
type GPUPipelineConstantValue = number;
|
|
14671
14777
|
type GPUSignedOffset32 = number;
|
|
14672
14778
|
type GPUSize32 = number;
|
|
14673
14779
|
type GPUSize32Out = number;
|
|
@@ -14732,14 +14838,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
14732
14838
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
14733
14839
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
14734
14840
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14841
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
14842
|
+
type GPUAutoLayoutMode = "auto";
|
|
14735
14843
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14736
14844
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
14737
14845
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
14846
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
14738
14847
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14739
14848
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14740
14849
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
14850
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
14741
14851
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
14742
14852
|
type GPULoadOp = "clear" | "load";
|
|
14853
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
14743
14854
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14744
14855
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14745
14856
|
type GPUStoreOp = "discard" | "store";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -378,6 +378,12 @@ interface GPUBufferBinding {
|
|
|
378
378
|
size?: GPUSize64;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
382
|
+
mappedAtCreation?: boolean;
|
|
383
|
+
size: GPUSize64;
|
|
384
|
+
usage: GPUBufferUsageFlags;
|
|
385
|
+
}
|
|
386
|
+
|
|
381
387
|
interface GPUCanvasConfiguration {
|
|
382
388
|
alphaMode?: GPUCanvasAlphaMode;
|
|
383
389
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -402,6 +408,9 @@ interface GPUColorDict {
|
|
|
402
408
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
403
409
|
}
|
|
404
410
|
|
|
411
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
412
|
+
}
|
|
413
|
+
|
|
405
414
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
406
415
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
407
416
|
}
|
|
@@ -412,6 +421,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
412
421
|
querySet: GPUQuerySet;
|
|
413
422
|
}
|
|
414
423
|
|
|
424
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
425
|
+
compute: GPUProgrammableStage;
|
|
426
|
+
}
|
|
427
|
+
|
|
415
428
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
416
429
|
colorSpace?: PredefinedColorSpace;
|
|
417
430
|
premultipliedAlpha?: boolean;
|
|
@@ -449,13 +462,37 @@ interface GPUOrigin3DDict {
|
|
|
449
462
|
z?: GPUIntegerCoordinate;
|
|
450
463
|
}
|
|
451
464
|
|
|
465
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
466
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
467
|
+
}
|
|
468
|
+
|
|
452
469
|
interface GPUPipelineErrorInit {
|
|
453
470
|
reason: GPUPipelineErrorReason;
|
|
454
471
|
}
|
|
455
472
|
|
|
473
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
474
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
interface GPUProgrammableStage {
|
|
478
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
479
|
+
entryPoint?: string;
|
|
480
|
+
module: GPUShaderModule;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
484
|
+
count: GPUSize32;
|
|
485
|
+
type: GPUQueryType;
|
|
486
|
+
}
|
|
487
|
+
|
|
456
488
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
457
489
|
}
|
|
458
490
|
|
|
491
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
492
|
+
depthReadOnly?: boolean;
|
|
493
|
+
stencilReadOnly?: boolean;
|
|
494
|
+
}
|
|
495
|
+
|
|
459
496
|
interface GPURenderPassColorAttachment {
|
|
460
497
|
clearValue?: GPUColor;
|
|
461
498
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -485,12 +522,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
485
522
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
486
523
|
}
|
|
487
524
|
|
|
525
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
526
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
527
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
528
|
+
sampleCount?: GPUSize32;
|
|
529
|
+
}
|
|
530
|
+
|
|
488
531
|
interface GPURenderPassTimestampWrites {
|
|
489
532
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
490
533
|
endOfPassWriteIndex?: GPUSize32;
|
|
491
534
|
querySet: GPUQuerySet;
|
|
492
535
|
}
|
|
493
536
|
|
|
537
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
538
|
+
addressModeU?: GPUAddressMode;
|
|
539
|
+
addressModeV?: GPUAddressMode;
|
|
540
|
+
addressModeW?: GPUAddressMode;
|
|
541
|
+
compare?: GPUCompareFunction;
|
|
542
|
+
lodMaxClamp?: number;
|
|
543
|
+
lodMinClamp?: number;
|
|
544
|
+
magFilter?: GPUFilterMode;
|
|
545
|
+
maxAnisotropy?: number;
|
|
546
|
+
minFilter?: GPUFilterMode;
|
|
547
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
548
|
+
}
|
|
549
|
+
|
|
494
550
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
495
551
|
buffer: GPUBuffer;
|
|
496
552
|
}
|
|
@@ -5490,6 +5546,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
5490
5546
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
5491
5547
|
*/
|
|
5492
5548
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
5549
|
+
/**
|
|
5550
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
5551
|
+
*
|
|
5552
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
5553
|
+
*/
|
|
5554
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
5555
|
+
/**
|
|
5556
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
5557
|
+
*
|
|
5558
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
5559
|
+
*/
|
|
5560
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
5561
|
+
/**
|
|
5562
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
5563
|
+
*
|
|
5564
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
5565
|
+
*/
|
|
5566
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
5567
|
+
/**
|
|
5568
|
+
* 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.
|
|
5569
|
+
*
|
|
5570
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
5571
|
+
*/
|
|
5572
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
5573
|
+
/**
|
|
5574
|
+
* 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.
|
|
5575
|
+
*
|
|
5576
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
5577
|
+
*/
|
|
5578
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
5579
|
+
/**
|
|
5580
|
+
* 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.
|
|
5581
|
+
*
|
|
5582
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
5583
|
+
*/
|
|
5584
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
5585
|
+
/**
|
|
5586
|
+
* 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.
|
|
5587
|
+
*
|
|
5588
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
5589
|
+
*/
|
|
5590
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
5591
|
+
/**
|
|
5592
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
5593
|
+
*
|
|
5594
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
5595
|
+
*/
|
|
5596
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
5493
5597
|
/**
|
|
5494
5598
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
5495
5599
|
*
|
|
@@ -14655,6 +14759,7 @@ type GLuint = number;
|
|
|
14655
14759
|
type GLuint64 = number;
|
|
14656
14760
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
14657
14761
|
type GPUBufferDynamicOffset = number;
|
|
14762
|
+
type GPUBufferUsageFlags = number;
|
|
14658
14763
|
type GPUColor = number[] | GPUColorDict;
|
|
14659
14764
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
|
|
14660
14765
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -14665,6 +14770,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
14665
14770
|
type GPUMapModeFlags = number;
|
|
14666
14771
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
14667
14772
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
14773
|
+
type GPUPipelineConstantValue = number;
|
|
14668
14774
|
type GPUSignedOffset32 = number;
|
|
14669
14775
|
type GPUSize32 = number;
|
|
14670
14776
|
type GPUSize32Out = number;
|
|
@@ -14729,14 +14835,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
14729
14835
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
14730
14836
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
14731
14837
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14838
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
14839
|
+
type GPUAutoLayoutMode = "auto";
|
|
14732
14840
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14733
14841
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
14734
14842
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
14843
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
14735
14844
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14736
14845
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14737
14846
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
14847
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
14738
14848
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
14739
14849
|
type GPULoadOp = "clear" | "load";
|
|
14850
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
14740
14851
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14741
14852
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14742
14853
|
type GPUStoreOp = "discard" | "store";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -378,6 +378,12 @@ interface GPUBufferBinding {
|
|
|
378
378
|
size?: GPUSize64;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
382
|
+
mappedAtCreation?: boolean;
|
|
383
|
+
size: GPUSize64;
|
|
384
|
+
usage: GPUBufferUsageFlags;
|
|
385
|
+
}
|
|
386
|
+
|
|
381
387
|
interface GPUCanvasConfiguration {
|
|
382
388
|
alphaMode?: GPUCanvasAlphaMode;
|
|
383
389
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -402,6 +408,9 @@ interface GPUColorDict {
|
|
|
402
408
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
403
409
|
}
|
|
404
410
|
|
|
411
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
412
|
+
}
|
|
413
|
+
|
|
405
414
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
406
415
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
407
416
|
}
|
|
@@ -412,6 +421,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
412
421
|
querySet: GPUQuerySet;
|
|
413
422
|
}
|
|
414
423
|
|
|
424
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
425
|
+
compute: GPUProgrammableStage;
|
|
426
|
+
}
|
|
427
|
+
|
|
415
428
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
416
429
|
colorSpace?: PredefinedColorSpace;
|
|
417
430
|
premultipliedAlpha?: boolean;
|
|
@@ -449,13 +462,37 @@ interface GPUOrigin3DDict {
|
|
|
449
462
|
z?: GPUIntegerCoordinate;
|
|
450
463
|
}
|
|
451
464
|
|
|
465
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
466
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
467
|
+
}
|
|
468
|
+
|
|
452
469
|
interface GPUPipelineErrorInit {
|
|
453
470
|
reason: GPUPipelineErrorReason;
|
|
454
471
|
}
|
|
455
472
|
|
|
473
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
474
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
interface GPUProgrammableStage {
|
|
478
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
479
|
+
entryPoint?: string;
|
|
480
|
+
module: GPUShaderModule;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
484
|
+
count: GPUSize32;
|
|
485
|
+
type: GPUQueryType;
|
|
486
|
+
}
|
|
487
|
+
|
|
456
488
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
457
489
|
}
|
|
458
490
|
|
|
491
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
492
|
+
depthReadOnly?: boolean;
|
|
493
|
+
stencilReadOnly?: boolean;
|
|
494
|
+
}
|
|
495
|
+
|
|
459
496
|
interface GPURenderPassColorAttachment {
|
|
460
497
|
clearValue?: GPUColor;
|
|
461
498
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -485,12 +522,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
485
522
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
486
523
|
}
|
|
487
524
|
|
|
525
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
526
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
527
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
528
|
+
sampleCount?: GPUSize32;
|
|
529
|
+
}
|
|
530
|
+
|
|
488
531
|
interface GPURenderPassTimestampWrites {
|
|
489
532
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
490
533
|
endOfPassWriteIndex?: GPUSize32;
|
|
491
534
|
querySet: GPUQuerySet;
|
|
492
535
|
}
|
|
493
536
|
|
|
537
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
538
|
+
addressModeU?: GPUAddressMode;
|
|
539
|
+
addressModeV?: GPUAddressMode;
|
|
540
|
+
addressModeW?: GPUAddressMode;
|
|
541
|
+
compare?: GPUCompareFunction;
|
|
542
|
+
lodMaxClamp?: number;
|
|
543
|
+
lodMinClamp?: number;
|
|
544
|
+
magFilter?: GPUFilterMode;
|
|
545
|
+
maxAnisotropy?: number;
|
|
546
|
+
minFilter?: GPUFilterMode;
|
|
547
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
548
|
+
}
|
|
549
|
+
|
|
494
550
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
495
551
|
buffer: GPUBuffer;
|
|
496
552
|
}
|
|
@@ -5490,6 +5546,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
5490
5546
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
5491
5547
|
*/
|
|
5492
5548
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
5549
|
+
/**
|
|
5550
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
5551
|
+
*
|
|
5552
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
5553
|
+
*/
|
|
5554
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
5555
|
+
/**
|
|
5556
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
5557
|
+
*
|
|
5558
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
5559
|
+
*/
|
|
5560
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
5561
|
+
/**
|
|
5562
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
5563
|
+
*
|
|
5564
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
5565
|
+
*/
|
|
5566
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
5567
|
+
/**
|
|
5568
|
+
* 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.
|
|
5569
|
+
*
|
|
5570
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
5571
|
+
*/
|
|
5572
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
5573
|
+
/**
|
|
5574
|
+
* 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.
|
|
5575
|
+
*
|
|
5576
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
5577
|
+
*/
|
|
5578
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
5579
|
+
/**
|
|
5580
|
+
* 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.
|
|
5581
|
+
*
|
|
5582
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
5583
|
+
*/
|
|
5584
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
5585
|
+
/**
|
|
5586
|
+
* 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.
|
|
5587
|
+
*
|
|
5588
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
5589
|
+
*/
|
|
5590
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
5591
|
+
/**
|
|
5592
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
5593
|
+
*
|
|
5594
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
5595
|
+
*/
|
|
5596
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
5493
5597
|
/**
|
|
5494
5598
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
5495
5599
|
*
|
|
@@ -14655,6 +14759,7 @@ type GLuint = number;
|
|
|
14655
14759
|
type GLuint64 = number;
|
|
14656
14760
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
14657
14761
|
type GPUBufferDynamicOffset = number;
|
|
14762
|
+
type GPUBufferUsageFlags = number;
|
|
14658
14763
|
type GPUColor = number[] | GPUColorDict;
|
|
14659
14764
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
|
|
14660
14765
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -14665,6 +14770,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
14665
14770
|
type GPUMapModeFlags = number;
|
|
14666
14771
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
14667
14772
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
14773
|
+
type GPUPipelineConstantValue = number;
|
|
14668
14774
|
type GPUSignedOffset32 = number;
|
|
14669
14775
|
type GPUSize32 = number;
|
|
14670
14776
|
type GPUSize32Out = number;
|
|
@@ -14729,14 +14835,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
14729
14835
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
14730
14836
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
14731
14837
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14838
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
14839
|
+
type GPUAutoLayoutMode = "auto";
|
|
14732
14840
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14733
14841
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
14734
14842
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
14843
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
14735
14844
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14736
14845
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14737
14846
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
14847
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
14738
14848
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
14739
14849
|
type GPULoadOp = "clear" | "load";
|
|
14850
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
14740
14851
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14741
14852
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14742
14853
|
type GPUStoreOp = "discard" | "store";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -378,6 +378,12 @@ interface GPUBufferBinding {
|
|
|
378
378
|
size?: GPUSize64;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
382
|
+
mappedAtCreation?: boolean;
|
|
383
|
+
size: GPUSize64;
|
|
384
|
+
usage: GPUBufferUsageFlags;
|
|
385
|
+
}
|
|
386
|
+
|
|
381
387
|
interface GPUCanvasConfiguration {
|
|
382
388
|
alphaMode?: GPUCanvasAlphaMode;
|
|
383
389
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -402,6 +408,9 @@ interface GPUColorDict {
|
|
|
402
408
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
403
409
|
}
|
|
404
410
|
|
|
411
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
412
|
+
}
|
|
413
|
+
|
|
405
414
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
406
415
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
407
416
|
}
|
|
@@ -412,6 +421,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
412
421
|
querySet: GPUQuerySet;
|
|
413
422
|
}
|
|
414
423
|
|
|
424
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
425
|
+
compute: GPUProgrammableStage;
|
|
426
|
+
}
|
|
427
|
+
|
|
415
428
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
416
429
|
colorSpace?: PredefinedColorSpace;
|
|
417
430
|
premultipliedAlpha?: boolean;
|
|
@@ -449,13 +462,37 @@ interface GPUOrigin3DDict {
|
|
|
449
462
|
z?: GPUIntegerCoordinate;
|
|
450
463
|
}
|
|
451
464
|
|
|
465
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
466
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
467
|
+
}
|
|
468
|
+
|
|
452
469
|
interface GPUPipelineErrorInit {
|
|
453
470
|
reason: GPUPipelineErrorReason;
|
|
454
471
|
}
|
|
455
472
|
|
|
473
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
474
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
interface GPUProgrammableStage {
|
|
478
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
479
|
+
entryPoint?: string;
|
|
480
|
+
module: GPUShaderModule;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
484
|
+
count: GPUSize32;
|
|
485
|
+
type: GPUQueryType;
|
|
486
|
+
}
|
|
487
|
+
|
|
456
488
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
457
489
|
}
|
|
458
490
|
|
|
491
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
492
|
+
depthReadOnly?: boolean;
|
|
493
|
+
stencilReadOnly?: boolean;
|
|
494
|
+
}
|
|
495
|
+
|
|
459
496
|
interface GPURenderPassColorAttachment {
|
|
460
497
|
clearValue?: GPUColor;
|
|
461
498
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -485,12 +522,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
485
522
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
486
523
|
}
|
|
487
524
|
|
|
525
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
526
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
527
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
528
|
+
sampleCount?: GPUSize32;
|
|
529
|
+
}
|
|
530
|
+
|
|
488
531
|
interface GPURenderPassTimestampWrites {
|
|
489
532
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
490
533
|
endOfPassWriteIndex?: GPUSize32;
|
|
491
534
|
querySet: GPUQuerySet;
|
|
492
535
|
}
|
|
493
536
|
|
|
537
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
538
|
+
addressModeU?: GPUAddressMode;
|
|
539
|
+
addressModeV?: GPUAddressMode;
|
|
540
|
+
addressModeW?: GPUAddressMode;
|
|
541
|
+
compare?: GPUCompareFunction;
|
|
542
|
+
lodMaxClamp?: number;
|
|
543
|
+
lodMinClamp?: number;
|
|
544
|
+
magFilter?: GPUFilterMode;
|
|
545
|
+
maxAnisotropy?: number;
|
|
546
|
+
minFilter?: GPUFilterMode;
|
|
547
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
548
|
+
}
|
|
549
|
+
|
|
494
550
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
495
551
|
buffer: GPUBuffer;
|
|
496
552
|
}
|
|
@@ -5490,6 +5546,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
5490
5546
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
5491
5547
|
*/
|
|
5492
5548
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
5549
|
+
/**
|
|
5550
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
5551
|
+
*
|
|
5552
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
5553
|
+
*/
|
|
5554
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
5555
|
+
/**
|
|
5556
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
5557
|
+
*
|
|
5558
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
5559
|
+
*/
|
|
5560
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
5561
|
+
/**
|
|
5562
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
5563
|
+
*
|
|
5564
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
5565
|
+
*/
|
|
5566
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
5567
|
+
/**
|
|
5568
|
+
* 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.
|
|
5569
|
+
*
|
|
5570
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
5571
|
+
*/
|
|
5572
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
5573
|
+
/**
|
|
5574
|
+
* 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.
|
|
5575
|
+
*
|
|
5576
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
5577
|
+
*/
|
|
5578
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
5579
|
+
/**
|
|
5580
|
+
* 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.
|
|
5581
|
+
*
|
|
5582
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
5583
|
+
*/
|
|
5584
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
5585
|
+
/**
|
|
5586
|
+
* 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.
|
|
5587
|
+
*
|
|
5588
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
5589
|
+
*/
|
|
5590
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
5591
|
+
/**
|
|
5592
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
5593
|
+
*
|
|
5594
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
5595
|
+
*/
|
|
5596
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
5493
5597
|
/**
|
|
5494
5598
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
5495
5599
|
*
|
|
@@ -14655,6 +14759,7 @@ type GLuint = number;
|
|
|
14655
14759
|
type GLuint64 = number;
|
|
14656
14760
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
14657
14761
|
type GPUBufferDynamicOffset = number;
|
|
14762
|
+
type GPUBufferUsageFlags = number;
|
|
14658
14763
|
type GPUColor = number[] | GPUColorDict;
|
|
14659
14764
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | VideoFrame | OffscreenCanvas;
|
|
14660
14765
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -14665,6 +14770,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
14665
14770
|
type GPUMapModeFlags = number;
|
|
14666
14771
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
14667
14772
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
14773
|
+
type GPUPipelineConstantValue = number;
|
|
14668
14774
|
type GPUSignedOffset32 = number;
|
|
14669
14775
|
type GPUSize32 = number;
|
|
14670
14776
|
type GPUSize32Out = number;
|
|
@@ -14729,14 +14835,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
14729
14835
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
14730
14836
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
14731
14837
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
14838
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
14839
|
+
type GPUAutoLayoutMode = "auto";
|
|
14732
14840
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14733
14841
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
14734
14842
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
14843
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
14735
14844
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14736
14845
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14737
14846
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
14847
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
14738
14848
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
14739
14849
|
type GPULoadOp = "clear" | "load";
|
|
14850
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
14740
14851
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14741
14852
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14742
14853
|
type GPUStoreOp = "discard" | "store";
|