@types/web 0.0.332 → 0.0.333
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
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.333 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.333.
|
package/index.d.ts
CHANGED
|
@@ -824,6 +824,12 @@ interface GPUBufferBinding {
|
|
|
824
824
|
size?: GPUSize64;
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
828
|
+
mappedAtCreation?: boolean;
|
|
829
|
+
size: GPUSize64;
|
|
830
|
+
usage: GPUBufferUsageFlags;
|
|
831
|
+
}
|
|
832
|
+
|
|
827
833
|
interface GPUCanvasConfiguration {
|
|
828
834
|
alphaMode?: GPUCanvasAlphaMode;
|
|
829
835
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -848,6 +854,9 @@ interface GPUColorDict {
|
|
|
848
854
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
849
855
|
}
|
|
850
856
|
|
|
857
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
858
|
+
}
|
|
859
|
+
|
|
851
860
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
852
861
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
853
862
|
}
|
|
@@ -858,6 +867,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
858
867
|
querySet: GPUQuerySet;
|
|
859
868
|
}
|
|
860
869
|
|
|
870
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
871
|
+
compute: GPUProgrammableStage;
|
|
872
|
+
}
|
|
873
|
+
|
|
861
874
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
862
875
|
colorSpace?: PredefinedColorSpace;
|
|
863
876
|
premultipliedAlpha?: boolean;
|
|
@@ -895,13 +908,37 @@ interface GPUOrigin3DDict {
|
|
|
895
908
|
z?: GPUIntegerCoordinate;
|
|
896
909
|
}
|
|
897
910
|
|
|
911
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
912
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
913
|
+
}
|
|
914
|
+
|
|
898
915
|
interface GPUPipelineErrorInit {
|
|
899
916
|
reason: GPUPipelineErrorReason;
|
|
900
917
|
}
|
|
901
918
|
|
|
919
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
920
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
interface GPUProgrammableStage {
|
|
924
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
925
|
+
entryPoint?: string;
|
|
926
|
+
module: GPUShaderModule;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
930
|
+
count: GPUSize32;
|
|
931
|
+
type: GPUQueryType;
|
|
932
|
+
}
|
|
933
|
+
|
|
902
934
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
903
935
|
}
|
|
904
936
|
|
|
937
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
938
|
+
depthReadOnly?: boolean;
|
|
939
|
+
stencilReadOnly?: boolean;
|
|
940
|
+
}
|
|
941
|
+
|
|
905
942
|
interface GPURenderPassColorAttachment {
|
|
906
943
|
clearValue?: GPUColor;
|
|
907
944
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -931,12 +968,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
931
968
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
932
969
|
}
|
|
933
970
|
|
|
971
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
972
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
973
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
974
|
+
sampleCount?: GPUSize32;
|
|
975
|
+
}
|
|
976
|
+
|
|
934
977
|
interface GPURenderPassTimestampWrites {
|
|
935
978
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
936
979
|
endOfPassWriteIndex?: GPUSize32;
|
|
937
980
|
querySet: GPUQuerySet;
|
|
938
981
|
}
|
|
939
982
|
|
|
983
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
984
|
+
addressModeU?: GPUAddressMode;
|
|
985
|
+
addressModeV?: GPUAddressMode;
|
|
986
|
+
addressModeW?: GPUAddressMode;
|
|
987
|
+
compare?: GPUCompareFunction;
|
|
988
|
+
lodMaxClamp?: number;
|
|
989
|
+
lodMinClamp?: number;
|
|
990
|
+
magFilter?: GPUFilterMode;
|
|
991
|
+
maxAnisotropy?: number;
|
|
992
|
+
minFilter?: GPUFilterMode;
|
|
993
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
994
|
+
}
|
|
995
|
+
|
|
940
996
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
941
997
|
buffer: GPUBuffer;
|
|
942
998
|
}
|
|
@@ -15348,6 +15404,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15348
15404
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15349
15405
|
*/
|
|
15350
15406
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15407
|
+
/**
|
|
15408
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15409
|
+
*
|
|
15410
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15411
|
+
*/
|
|
15412
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15413
|
+
/**
|
|
15414
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15415
|
+
*
|
|
15416
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15417
|
+
*/
|
|
15418
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15419
|
+
/**
|
|
15420
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15421
|
+
*
|
|
15422
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15423
|
+
*/
|
|
15424
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15425
|
+
/**
|
|
15426
|
+
* 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.
|
|
15427
|
+
*
|
|
15428
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15429
|
+
*/
|
|
15430
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15431
|
+
/**
|
|
15432
|
+
* 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.
|
|
15433
|
+
*
|
|
15434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15435
|
+
*/
|
|
15436
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15437
|
+
/**
|
|
15438
|
+
* 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.
|
|
15439
|
+
*
|
|
15440
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15441
|
+
*/
|
|
15442
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15443
|
+
/**
|
|
15444
|
+
* 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.
|
|
15445
|
+
*
|
|
15446
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15447
|
+
*/
|
|
15448
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15449
|
+
/**
|
|
15450
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15451
|
+
*
|
|
15452
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15453
|
+
*/
|
|
15454
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15351
15455
|
/**
|
|
15352
15456
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15353
15457
|
*
|
|
@@ -36347,7 +36451,7 @@ interface TextTrackCueEventMap {
|
|
|
36347
36451
|
}
|
|
36348
36452
|
|
|
36349
36453
|
/**
|
|
36350
|
-
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.
|
|
36454
|
+
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue and DataCue; you will work with these derived types rather than the base class.
|
|
36351
36455
|
*
|
|
36352
36456
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36353
36457
|
*/
|
|
@@ -43790,6 +43894,7 @@ type GLuint = number;
|
|
|
43790
43894
|
type GLuint64 = number;
|
|
43791
43895
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43792
43896
|
type GPUBufferDynamicOffset = number;
|
|
43897
|
+
type GPUBufferUsageFlags = number;
|
|
43793
43898
|
type GPUColor = number[] | GPUColorDict;
|
|
43794
43899
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43795
43900
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43800,6 +43905,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43800
43905
|
type GPUMapModeFlags = number;
|
|
43801
43906
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43802
43907
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43908
|
+
type GPUPipelineConstantValue = number;
|
|
43803
43909
|
type GPUSignedOffset32 = number;
|
|
43804
43910
|
type GPUSize32 = number;
|
|
43805
43911
|
type GPUSize32Out = number;
|
|
@@ -43913,14 +44019,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43913
44019
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43914
44020
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43915
44021
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44022
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44023
|
+
type GPUAutoLayoutMode = "auto";
|
|
43916
44024
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43917
44025
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43918
44026
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44027
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43919
44028
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43920
44029
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43921
44030
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44031
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43922
44032
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43923
44033
|
type GPULoadOp = "clear" | "load";
|
|
44034
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43924
44035
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43925
44036
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43926
44037
|
type GPUStoreOp = "discard" | "store";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -821,6 +821,12 @@ interface GPUBufferBinding {
|
|
|
821
821
|
size?: GPUSize64;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
825
|
+
mappedAtCreation?: boolean;
|
|
826
|
+
size: GPUSize64;
|
|
827
|
+
usage: GPUBufferUsageFlags;
|
|
828
|
+
}
|
|
829
|
+
|
|
824
830
|
interface GPUCanvasConfiguration {
|
|
825
831
|
alphaMode?: GPUCanvasAlphaMode;
|
|
826
832
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -845,6 +851,9 @@ interface GPUColorDict {
|
|
|
845
851
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
846
852
|
}
|
|
847
853
|
|
|
854
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
855
|
+
}
|
|
856
|
+
|
|
848
857
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
849
858
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
850
859
|
}
|
|
@@ -855,6 +864,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
855
864
|
querySet: GPUQuerySet;
|
|
856
865
|
}
|
|
857
866
|
|
|
867
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
868
|
+
compute: GPUProgrammableStage;
|
|
869
|
+
}
|
|
870
|
+
|
|
858
871
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
859
872
|
colorSpace?: PredefinedColorSpace;
|
|
860
873
|
premultipliedAlpha?: boolean;
|
|
@@ -892,13 +905,37 @@ interface GPUOrigin3DDict {
|
|
|
892
905
|
z?: GPUIntegerCoordinate;
|
|
893
906
|
}
|
|
894
907
|
|
|
908
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
909
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
910
|
+
}
|
|
911
|
+
|
|
895
912
|
interface GPUPipelineErrorInit {
|
|
896
913
|
reason: GPUPipelineErrorReason;
|
|
897
914
|
}
|
|
898
915
|
|
|
916
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
917
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
interface GPUProgrammableStage {
|
|
921
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
922
|
+
entryPoint?: string;
|
|
923
|
+
module: GPUShaderModule;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
927
|
+
count: GPUSize32;
|
|
928
|
+
type: GPUQueryType;
|
|
929
|
+
}
|
|
930
|
+
|
|
899
931
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
900
932
|
}
|
|
901
933
|
|
|
934
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
935
|
+
depthReadOnly?: boolean;
|
|
936
|
+
stencilReadOnly?: boolean;
|
|
937
|
+
}
|
|
938
|
+
|
|
902
939
|
interface GPURenderPassColorAttachment {
|
|
903
940
|
clearValue?: GPUColor;
|
|
904
941
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -928,12 +965,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
928
965
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
929
966
|
}
|
|
930
967
|
|
|
968
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
969
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
970
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
971
|
+
sampleCount?: GPUSize32;
|
|
972
|
+
}
|
|
973
|
+
|
|
931
974
|
interface GPURenderPassTimestampWrites {
|
|
932
975
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
933
976
|
endOfPassWriteIndex?: GPUSize32;
|
|
934
977
|
querySet: GPUQuerySet;
|
|
935
978
|
}
|
|
936
979
|
|
|
980
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
981
|
+
addressModeU?: GPUAddressMode;
|
|
982
|
+
addressModeV?: GPUAddressMode;
|
|
983
|
+
addressModeW?: GPUAddressMode;
|
|
984
|
+
compare?: GPUCompareFunction;
|
|
985
|
+
lodMaxClamp?: number;
|
|
986
|
+
lodMinClamp?: number;
|
|
987
|
+
magFilter?: GPUFilterMode;
|
|
988
|
+
maxAnisotropy?: number;
|
|
989
|
+
minFilter?: GPUFilterMode;
|
|
990
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
991
|
+
}
|
|
992
|
+
|
|
937
993
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
938
994
|
buffer: GPUBuffer;
|
|
939
995
|
}
|
|
@@ -15334,6 +15390,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15334
15390
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15335
15391
|
*/
|
|
15336
15392
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15393
|
+
/**
|
|
15394
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15395
|
+
*
|
|
15396
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15397
|
+
*/
|
|
15398
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15399
|
+
/**
|
|
15400
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15401
|
+
*
|
|
15402
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15403
|
+
*/
|
|
15404
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15405
|
+
/**
|
|
15406
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15407
|
+
*
|
|
15408
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15409
|
+
*/
|
|
15410
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15411
|
+
/**
|
|
15412
|
+
* 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.
|
|
15413
|
+
*
|
|
15414
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15415
|
+
*/
|
|
15416
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15417
|
+
/**
|
|
15418
|
+
* 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.
|
|
15419
|
+
*
|
|
15420
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15421
|
+
*/
|
|
15422
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15423
|
+
/**
|
|
15424
|
+
* 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.
|
|
15425
|
+
*
|
|
15426
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15427
|
+
*/
|
|
15428
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15429
|
+
/**
|
|
15430
|
+
* 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.
|
|
15431
|
+
*
|
|
15432
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15433
|
+
*/
|
|
15434
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15435
|
+
/**
|
|
15436
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15437
|
+
*
|
|
15438
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15439
|
+
*/
|
|
15440
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15337
15441
|
/**
|
|
15338
15442
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15339
15443
|
*
|
|
@@ -36321,7 +36425,7 @@ interface TextTrackCueEventMap {
|
|
|
36321
36425
|
}
|
|
36322
36426
|
|
|
36323
36427
|
/**
|
|
36324
|
-
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.
|
|
36428
|
+
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue and DataCue; you will work with these derived types rather than the base class.
|
|
36325
36429
|
*
|
|
36326
36430
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36327
36431
|
*/
|
|
@@ -43764,6 +43868,7 @@ type GLuint = number;
|
|
|
43764
43868
|
type GLuint64 = number;
|
|
43765
43869
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43766
43870
|
type GPUBufferDynamicOffset = number;
|
|
43871
|
+
type GPUBufferUsageFlags = number;
|
|
43767
43872
|
type GPUColor = number[] | GPUColorDict;
|
|
43768
43873
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43769
43874
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43774,6 +43879,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43774
43879
|
type GPUMapModeFlags = number;
|
|
43775
43880
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43776
43881
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43882
|
+
type GPUPipelineConstantValue = number;
|
|
43777
43883
|
type GPUSignedOffset32 = number;
|
|
43778
43884
|
type GPUSize32 = number;
|
|
43779
43885
|
type GPUSize32Out = number;
|
|
@@ -43887,14 +43993,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43887
43993
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43888
43994
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43889
43995
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
43996
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
43997
|
+
type GPUAutoLayoutMode = "auto";
|
|
43890
43998
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43891
43999
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43892
44000
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44001
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43893
44002
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43894
44003
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43895
44004
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44005
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43896
44006
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43897
44007
|
type GPULoadOp = "clear" | "load";
|
|
44008
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43898
44009
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43899
44010
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43900
44011
|
type GPUStoreOp = "discard" | "store";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -821,6 +821,12 @@ interface GPUBufferBinding {
|
|
|
821
821
|
size?: GPUSize64;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
825
|
+
mappedAtCreation?: boolean;
|
|
826
|
+
size: GPUSize64;
|
|
827
|
+
usage: GPUBufferUsageFlags;
|
|
828
|
+
}
|
|
829
|
+
|
|
824
830
|
interface GPUCanvasConfiguration {
|
|
825
831
|
alphaMode?: GPUCanvasAlphaMode;
|
|
826
832
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -845,6 +851,9 @@ interface GPUColorDict {
|
|
|
845
851
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
846
852
|
}
|
|
847
853
|
|
|
854
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
855
|
+
}
|
|
856
|
+
|
|
848
857
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
849
858
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
850
859
|
}
|
|
@@ -855,6 +864,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
855
864
|
querySet: GPUQuerySet;
|
|
856
865
|
}
|
|
857
866
|
|
|
867
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
868
|
+
compute: GPUProgrammableStage;
|
|
869
|
+
}
|
|
870
|
+
|
|
858
871
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
859
872
|
colorSpace?: PredefinedColorSpace;
|
|
860
873
|
premultipliedAlpha?: boolean;
|
|
@@ -892,13 +905,37 @@ interface GPUOrigin3DDict {
|
|
|
892
905
|
z?: GPUIntegerCoordinate;
|
|
893
906
|
}
|
|
894
907
|
|
|
908
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
909
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
910
|
+
}
|
|
911
|
+
|
|
895
912
|
interface GPUPipelineErrorInit {
|
|
896
913
|
reason: GPUPipelineErrorReason;
|
|
897
914
|
}
|
|
898
915
|
|
|
916
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
917
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
interface GPUProgrammableStage {
|
|
921
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
922
|
+
entryPoint?: string;
|
|
923
|
+
module: GPUShaderModule;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
927
|
+
count: GPUSize32;
|
|
928
|
+
type: GPUQueryType;
|
|
929
|
+
}
|
|
930
|
+
|
|
899
931
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
900
932
|
}
|
|
901
933
|
|
|
934
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
935
|
+
depthReadOnly?: boolean;
|
|
936
|
+
stencilReadOnly?: boolean;
|
|
937
|
+
}
|
|
938
|
+
|
|
902
939
|
interface GPURenderPassColorAttachment {
|
|
903
940
|
clearValue?: GPUColor;
|
|
904
941
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -928,12 +965,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
928
965
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
929
966
|
}
|
|
930
967
|
|
|
968
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
969
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
970
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
971
|
+
sampleCount?: GPUSize32;
|
|
972
|
+
}
|
|
973
|
+
|
|
931
974
|
interface GPURenderPassTimestampWrites {
|
|
932
975
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
933
976
|
endOfPassWriteIndex?: GPUSize32;
|
|
934
977
|
querySet: GPUQuerySet;
|
|
935
978
|
}
|
|
936
979
|
|
|
980
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
981
|
+
addressModeU?: GPUAddressMode;
|
|
982
|
+
addressModeV?: GPUAddressMode;
|
|
983
|
+
addressModeW?: GPUAddressMode;
|
|
984
|
+
compare?: GPUCompareFunction;
|
|
985
|
+
lodMaxClamp?: number;
|
|
986
|
+
lodMinClamp?: number;
|
|
987
|
+
magFilter?: GPUFilterMode;
|
|
988
|
+
maxAnisotropy?: number;
|
|
989
|
+
minFilter?: GPUFilterMode;
|
|
990
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
991
|
+
}
|
|
992
|
+
|
|
937
993
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
938
994
|
buffer: GPUBuffer;
|
|
939
995
|
}
|
|
@@ -15345,6 +15401,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15345
15401
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15346
15402
|
*/
|
|
15347
15403
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15404
|
+
/**
|
|
15405
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15406
|
+
*
|
|
15407
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15408
|
+
*/
|
|
15409
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15410
|
+
/**
|
|
15411
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15412
|
+
*
|
|
15413
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15414
|
+
*/
|
|
15415
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15416
|
+
/**
|
|
15417
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15418
|
+
*
|
|
15419
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15420
|
+
*/
|
|
15421
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15422
|
+
/**
|
|
15423
|
+
* 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.
|
|
15424
|
+
*
|
|
15425
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15426
|
+
*/
|
|
15427
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15428
|
+
/**
|
|
15429
|
+
* 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.
|
|
15430
|
+
*
|
|
15431
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15432
|
+
*/
|
|
15433
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15434
|
+
/**
|
|
15435
|
+
* 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.
|
|
15436
|
+
*
|
|
15437
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15438
|
+
*/
|
|
15439
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15440
|
+
/**
|
|
15441
|
+
* 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.
|
|
15442
|
+
*
|
|
15443
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15444
|
+
*/
|
|
15445
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15446
|
+
/**
|
|
15447
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15448
|
+
*
|
|
15449
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15450
|
+
*/
|
|
15451
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15348
15452
|
/**
|
|
15349
15453
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15350
15454
|
*
|
|
@@ -36344,7 +36448,7 @@ interface TextTrackCueEventMap {
|
|
|
36344
36448
|
}
|
|
36345
36449
|
|
|
36346
36450
|
/**
|
|
36347
|
-
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.
|
|
36451
|
+
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue and DataCue; you will work with these derived types rather than the base class.
|
|
36348
36452
|
*
|
|
36349
36453
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36350
36454
|
*/
|
|
@@ -43787,6 +43891,7 @@ type GLuint = number;
|
|
|
43787
43891
|
type GLuint64 = number;
|
|
43788
43892
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43789
43893
|
type GPUBufferDynamicOffset = number;
|
|
43894
|
+
type GPUBufferUsageFlags = number;
|
|
43790
43895
|
type GPUColor = number[] | GPUColorDict;
|
|
43791
43896
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43792
43897
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43797,6 +43902,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43797
43902
|
type GPUMapModeFlags = number;
|
|
43798
43903
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43799
43904
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43905
|
+
type GPUPipelineConstantValue = number;
|
|
43800
43906
|
type GPUSignedOffset32 = number;
|
|
43801
43907
|
type GPUSize32 = number;
|
|
43802
43908
|
type GPUSize32Out = number;
|
|
@@ -43910,14 +44016,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43910
44016
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43911
44017
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43912
44018
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44019
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44020
|
+
type GPUAutoLayoutMode = "auto";
|
|
43913
44021
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43914
44022
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43915
44023
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44024
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43916
44025
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43917
44026
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43918
44027
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44028
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43919
44029
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43920
44030
|
type GPULoadOp = "clear" | "load";
|
|
44031
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43921
44032
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43922
44033
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43923
44034
|
type GPUStoreOp = "discard" | "store";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -821,6 +821,12 @@ interface GPUBufferBinding {
|
|
|
821
821
|
size?: GPUSize64;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
825
|
+
mappedAtCreation?: boolean;
|
|
826
|
+
size: GPUSize64;
|
|
827
|
+
usage: GPUBufferUsageFlags;
|
|
828
|
+
}
|
|
829
|
+
|
|
824
830
|
interface GPUCanvasConfiguration {
|
|
825
831
|
alphaMode?: GPUCanvasAlphaMode;
|
|
826
832
|
colorSpace?: PredefinedColorSpace;
|
|
@@ -845,6 +851,9 @@ interface GPUColorDict {
|
|
|
845
851
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
846
852
|
}
|
|
847
853
|
|
|
854
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
855
|
+
}
|
|
856
|
+
|
|
848
857
|
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
849
858
|
timestampWrites?: GPUComputePassTimestampWrites;
|
|
850
859
|
}
|
|
@@ -855,6 +864,10 @@ interface GPUComputePassTimestampWrites {
|
|
|
855
864
|
querySet: GPUQuerySet;
|
|
856
865
|
}
|
|
857
866
|
|
|
867
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
868
|
+
compute: GPUProgrammableStage;
|
|
869
|
+
}
|
|
870
|
+
|
|
858
871
|
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
859
872
|
colorSpace?: PredefinedColorSpace;
|
|
860
873
|
premultipliedAlpha?: boolean;
|
|
@@ -892,13 +905,37 @@ interface GPUOrigin3DDict {
|
|
|
892
905
|
z?: GPUIntegerCoordinate;
|
|
893
906
|
}
|
|
894
907
|
|
|
908
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
909
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
910
|
+
}
|
|
911
|
+
|
|
895
912
|
interface GPUPipelineErrorInit {
|
|
896
913
|
reason: GPUPipelineErrorReason;
|
|
897
914
|
}
|
|
898
915
|
|
|
916
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
917
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
interface GPUProgrammableStage {
|
|
921
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
922
|
+
entryPoint?: string;
|
|
923
|
+
module: GPUShaderModule;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
927
|
+
count: GPUSize32;
|
|
928
|
+
type: GPUQueryType;
|
|
929
|
+
}
|
|
930
|
+
|
|
899
931
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
900
932
|
}
|
|
901
933
|
|
|
934
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
935
|
+
depthReadOnly?: boolean;
|
|
936
|
+
stencilReadOnly?: boolean;
|
|
937
|
+
}
|
|
938
|
+
|
|
902
939
|
interface GPURenderPassColorAttachment {
|
|
903
940
|
clearValue?: GPUColor;
|
|
904
941
|
depthSlice?: GPUIntegerCoordinate;
|
|
@@ -928,12 +965,31 @@ interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
|
928
965
|
timestampWrites?: GPURenderPassTimestampWrites;
|
|
929
966
|
}
|
|
930
967
|
|
|
968
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
969
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
970
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
971
|
+
sampleCount?: GPUSize32;
|
|
972
|
+
}
|
|
973
|
+
|
|
931
974
|
interface GPURenderPassTimestampWrites {
|
|
932
975
|
beginningOfPassWriteIndex?: GPUSize32;
|
|
933
976
|
endOfPassWriteIndex?: GPUSize32;
|
|
934
977
|
querySet: GPUQuerySet;
|
|
935
978
|
}
|
|
936
979
|
|
|
980
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
981
|
+
addressModeU?: GPUAddressMode;
|
|
982
|
+
addressModeV?: GPUAddressMode;
|
|
983
|
+
addressModeW?: GPUAddressMode;
|
|
984
|
+
compare?: GPUCompareFunction;
|
|
985
|
+
lodMaxClamp?: number;
|
|
986
|
+
lodMinClamp?: number;
|
|
987
|
+
magFilter?: GPUFilterMode;
|
|
988
|
+
maxAnisotropy?: number;
|
|
989
|
+
minFilter?: GPUFilterMode;
|
|
990
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
991
|
+
}
|
|
992
|
+
|
|
937
993
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
938
994
|
buffer: GPUBuffer;
|
|
939
995
|
}
|
|
@@ -15345,6 +15401,54 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15345
15401
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15346
15402
|
*/
|
|
15347
15403
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15404
|
+
/**
|
|
15405
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15406
|
+
*
|
|
15407
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15408
|
+
*/
|
|
15409
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15410
|
+
/**
|
|
15411
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15412
|
+
*
|
|
15413
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15414
|
+
*/
|
|
15415
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15416
|
+
/**
|
|
15417
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15418
|
+
*
|
|
15419
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15420
|
+
*/
|
|
15421
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15422
|
+
/**
|
|
15423
|
+
* 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.
|
|
15424
|
+
*
|
|
15425
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15426
|
+
*/
|
|
15427
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15428
|
+
/**
|
|
15429
|
+
* 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.
|
|
15430
|
+
*
|
|
15431
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15432
|
+
*/
|
|
15433
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15434
|
+
/**
|
|
15435
|
+
* 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.
|
|
15436
|
+
*
|
|
15437
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15438
|
+
*/
|
|
15439
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15440
|
+
/**
|
|
15441
|
+
* 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.
|
|
15442
|
+
*
|
|
15443
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15444
|
+
*/
|
|
15445
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15446
|
+
/**
|
|
15447
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15448
|
+
*
|
|
15449
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15450
|
+
*/
|
|
15451
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15348
15452
|
/**
|
|
15349
15453
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15350
15454
|
*
|
|
@@ -36344,7 +36448,7 @@ interface TextTrackCueEventMap {
|
|
|
36344
36448
|
}
|
|
36345
36449
|
|
|
36346
36450
|
/**
|
|
36347
|
-
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.
|
|
36451
|
+
* The **`TextTrackCue`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue and DataCue; you will work with these derived types rather than the base class.
|
|
36348
36452
|
*
|
|
36349
36453
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36350
36454
|
*/
|
|
@@ -43787,6 +43891,7 @@ type GLuint = number;
|
|
|
43787
43891
|
type GLuint64 = number;
|
|
43788
43892
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43789
43893
|
type GPUBufferDynamicOffset = number;
|
|
43894
|
+
type GPUBufferUsageFlags = number;
|
|
43790
43895
|
type GPUColor = number[] | GPUColorDict;
|
|
43791
43896
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43792
43897
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43797,6 +43902,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43797
43902
|
type GPUMapModeFlags = number;
|
|
43798
43903
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43799
43904
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43905
|
+
type GPUPipelineConstantValue = number;
|
|
43800
43906
|
type GPUSignedOffset32 = number;
|
|
43801
43907
|
type GPUSize32 = number;
|
|
43802
43908
|
type GPUSize32Out = number;
|
|
@@ -43910,14 +44016,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43910
44016
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43911
44017
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43912
44018
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44019
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44020
|
+
type GPUAutoLayoutMode = "auto";
|
|
43913
44021
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43914
44022
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43915
44023
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44024
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43916
44025
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43917
44026
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43918
44027
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44028
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43919
44029
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43920
44030
|
type GPULoadOp = "clear" | "load";
|
|
44031
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43921
44032
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43922
44033
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43923
44034
|
type GPUStoreOp = "discard" | "store";
|