@types/web 0.0.332 → 0.0.334
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 +138 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +138 -1
- package/ts5.6/index.d.ts +138 -1
- package/ts5.9/index.d.ts +138 -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.334 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.334.
|
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,35 @@ 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
|
+
|
|
996
|
+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
997
|
+
code: string;
|
|
998
|
+
}
|
|
999
|
+
|
|
940
1000
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
941
1001
|
buffer: GPUBuffer;
|
|
942
1002
|
}
|
|
@@ -954,6 +1014,16 @@ interface GPUTexelCopyTextureInfo {
|
|
|
954
1014
|
texture: GPUTexture;
|
|
955
1015
|
}
|
|
956
1016
|
|
|
1017
|
+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1018
|
+
dimension?: GPUTextureDimension;
|
|
1019
|
+
format: GPUTextureFormat;
|
|
1020
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
1021
|
+
sampleCount?: GPUSize32;
|
|
1022
|
+
size: GPUExtent3D;
|
|
1023
|
+
usage: GPUTextureUsageFlags;
|
|
1024
|
+
viewFormats?: GPUTextureFormat[];
|
|
1025
|
+
}
|
|
1026
|
+
|
|
957
1027
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
958
1028
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
959
1029
|
aspect?: GPUTextureAspect;
|
|
@@ -15348,6 +15418,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15348
15418
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15349
15419
|
*/
|
|
15350
15420
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15421
|
+
/**
|
|
15422
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15423
|
+
*
|
|
15424
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15425
|
+
*/
|
|
15426
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15427
|
+
/**
|
|
15428
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15429
|
+
*
|
|
15430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15431
|
+
*/
|
|
15432
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15433
|
+
/**
|
|
15434
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15435
|
+
*
|
|
15436
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15437
|
+
*/
|
|
15438
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15439
|
+
/**
|
|
15440
|
+
* 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.
|
|
15441
|
+
*
|
|
15442
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15443
|
+
*/
|
|
15444
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15445
|
+
/**
|
|
15446
|
+
* 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.
|
|
15447
|
+
*
|
|
15448
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15449
|
+
*/
|
|
15450
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15451
|
+
/**
|
|
15452
|
+
* 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.
|
|
15453
|
+
*
|
|
15454
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15455
|
+
*/
|
|
15456
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15457
|
+
/**
|
|
15458
|
+
* 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.
|
|
15459
|
+
*
|
|
15460
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15461
|
+
*/
|
|
15462
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15463
|
+
/**
|
|
15464
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15465
|
+
*
|
|
15466
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15467
|
+
*/
|
|
15468
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15469
|
+
/**
|
|
15470
|
+
* The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
|
|
15471
|
+
*
|
|
15472
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
|
|
15473
|
+
*/
|
|
15474
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
15475
|
+
/**
|
|
15476
|
+
* The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
|
|
15477
|
+
*
|
|
15478
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
|
|
15479
|
+
*/
|
|
15480
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
15351
15481
|
/**
|
|
15352
15482
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15353
15483
|
*
|
|
@@ -36347,7 +36477,7 @@ interface TextTrackCueEventMap {
|
|
|
36347
36477
|
}
|
|
36348
36478
|
|
|
36349
36479
|
/**
|
|
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.
|
|
36480
|
+
* 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
36481
|
*
|
|
36352
36482
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36353
36483
|
*/
|
|
@@ -43790,6 +43920,7 @@ type GLuint = number;
|
|
|
43790
43920
|
type GLuint64 = number;
|
|
43791
43921
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43792
43922
|
type GPUBufferDynamicOffset = number;
|
|
43923
|
+
type GPUBufferUsageFlags = number;
|
|
43793
43924
|
type GPUColor = number[] | GPUColorDict;
|
|
43794
43925
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43795
43926
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43800,6 +43931,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43800
43931
|
type GPUMapModeFlags = number;
|
|
43801
43932
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43802
43933
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43934
|
+
type GPUPipelineConstantValue = number;
|
|
43803
43935
|
type GPUSignedOffset32 = number;
|
|
43804
43936
|
type GPUSize32 = number;
|
|
43805
43937
|
type GPUSize32Out = number;
|
|
@@ -43913,14 +44045,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43913
44045
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43914
44046
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43915
44047
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44048
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44049
|
+
type GPUAutoLayoutMode = "auto";
|
|
43916
44050
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43917
44051
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43918
44052
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44053
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43919
44054
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43920
44055
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43921
44056
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44057
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43922
44058
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43923
44059
|
type GPULoadOp = "clear" | "load";
|
|
44060
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43924
44061
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43925
44062
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43926
44063
|
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,35 @@ 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
|
+
|
|
993
|
+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
994
|
+
code: string;
|
|
995
|
+
}
|
|
996
|
+
|
|
937
997
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
938
998
|
buffer: GPUBuffer;
|
|
939
999
|
}
|
|
@@ -951,6 +1011,16 @@ interface GPUTexelCopyTextureInfo {
|
|
|
951
1011
|
texture: GPUTexture;
|
|
952
1012
|
}
|
|
953
1013
|
|
|
1014
|
+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1015
|
+
dimension?: GPUTextureDimension;
|
|
1016
|
+
format: GPUTextureFormat;
|
|
1017
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
1018
|
+
sampleCount?: GPUSize32;
|
|
1019
|
+
size: GPUExtent3D;
|
|
1020
|
+
usage: GPUTextureUsageFlags;
|
|
1021
|
+
viewFormats?: GPUTextureFormat[];
|
|
1022
|
+
}
|
|
1023
|
+
|
|
954
1024
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
955
1025
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
956
1026
|
aspect?: GPUTextureAspect;
|
|
@@ -15334,6 +15404,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15334
15404
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15335
15405
|
*/
|
|
15336
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;
|
|
15455
|
+
/**
|
|
15456
|
+
* The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
|
|
15457
|
+
*
|
|
15458
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
|
|
15459
|
+
*/
|
|
15460
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
15461
|
+
/**
|
|
15462
|
+
* The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
|
|
15463
|
+
*
|
|
15464
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
|
|
15465
|
+
*/
|
|
15466
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
15337
15467
|
/**
|
|
15338
15468
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15339
15469
|
*
|
|
@@ -36321,7 +36451,7 @@ interface TextTrackCueEventMap {
|
|
|
36321
36451
|
}
|
|
36322
36452
|
|
|
36323
36453
|
/**
|
|
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.
|
|
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.
|
|
36325
36455
|
*
|
|
36326
36456
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36327
36457
|
*/
|
|
@@ -43764,6 +43894,7 @@ type GLuint = number;
|
|
|
43764
43894
|
type GLuint64 = number;
|
|
43765
43895
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43766
43896
|
type GPUBufferDynamicOffset = number;
|
|
43897
|
+
type GPUBufferUsageFlags = number;
|
|
43767
43898
|
type GPUColor = number[] | GPUColorDict;
|
|
43768
43899
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43769
43900
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43774,6 +43905,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43774
43905
|
type GPUMapModeFlags = number;
|
|
43775
43906
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43776
43907
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43908
|
+
type GPUPipelineConstantValue = number;
|
|
43777
43909
|
type GPUSignedOffset32 = number;
|
|
43778
43910
|
type GPUSize32 = number;
|
|
43779
43911
|
type GPUSize32Out = number;
|
|
@@ -43887,14 +44019,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43887
44019
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43888
44020
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43889
44021
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44022
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44023
|
+
type GPUAutoLayoutMode = "auto";
|
|
43890
44024
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43891
44025
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43892
44026
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44027
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43893
44028
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43894
44029
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43895
44030
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44031
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43896
44032
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43897
44033
|
type GPULoadOp = "clear" | "load";
|
|
44034
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43898
44035
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43899
44036
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43900
44037
|
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,35 @@ 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
|
+
|
|
993
|
+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
994
|
+
code: string;
|
|
995
|
+
}
|
|
996
|
+
|
|
937
997
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
938
998
|
buffer: GPUBuffer;
|
|
939
999
|
}
|
|
@@ -951,6 +1011,16 @@ interface GPUTexelCopyTextureInfo {
|
|
|
951
1011
|
texture: GPUTexture;
|
|
952
1012
|
}
|
|
953
1013
|
|
|
1014
|
+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1015
|
+
dimension?: GPUTextureDimension;
|
|
1016
|
+
format: GPUTextureFormat;
|
|
1017
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
1018
|
+
sampleCount?: GPUSize32;
|
|
1019
|
+
size: GPUExtent3D;
|
|
1020
|
+
usage: GPUTextureUsageFlags;
|
|
1021
|
+
viewFormats?: GPUTextureFormat[];
|
|
1022
|
+
}
|
|
1023
|
+
|
|
954
1024
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
955
1025
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
956
1026
|
aspect?: GPUTextureAspect;
|
|
@@ -15345,6 +15415,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15345
15415
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15346
15416
|
*/
|
|
15347
15417
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15418
|
+
/**
|
|
15419
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15420
|
+
*
|
|
15421
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15422
|
+
*/
|
|
15423
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15424
|
+
/**
|
|
15425
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15426
|
+
*
|
|
15427
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15428
|
+
*/
|
|
15429
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15430
|
+
/**
|
|
15431
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15432
|
+
*
|
|
15433
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15434
|
+
*/
|
|
15435
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15436
|
+
/**
|
|
15437
|
+
* 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.
|
|
15438
|
+
*
|
|
15439
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15440
|
+
*/
|
|
15441
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15442
|
+
/**
|
|
15443
|
+
* 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.
|
|
15444
|
+
*
|
|
15445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15446
|
+
*/
|
|
15447
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15448
|
+
/**
|
|
15449
|
+
* 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.
|
|
15450
|
+
*
|
|
15451
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15452
|
+
*/
|
|
15453
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15454
|
+
/**
|
|
15455
|
+
* 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.
|
|
15456
|
+
*
|
|
15457
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15458
|
+
*/
|
|
15459
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15460
|
+
/**
|
|
15461
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15462
|
+
*
|
|
15463
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15464
|
+
*/
|
|
15465
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15466
|
+
/**
|
|
15467
|
+
* The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
|
|
15468
|
+
*
|
|
15469
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
|
|
15470
|
+
*/
|
|
15471
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
15472
|
+
/**
|
|
15473
|
+
* The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
|
|
15474
|
+
*
|
|
15475
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
|
|
15476
|
+
*/
|
|
15477
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
15348
15478
|
/**
|
|
15349
15479
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15350
15480
|
*
|
|
@@ -36344,7 +36474,7 @@ interface TextTrackCueEventMap {
|
|
|
36344
36474
|
}
|
|
36345
36475
|
|
|
36346
36476
|
/**
|
|
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.
|
|
36477
|
+
* 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
36478
|
*
|
|
36349
36479
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36350
36480
|
*/
|
|
@@ -43787,6 +43917,7 @@ type GLuint = number;
|
|
|
43787
43917
|
type GLuint64 = number;
|
|
43788
43918
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43789
43919
|
type GPUBufferDynamicOffset = number;
|
|
43920
|
+
type GPUBufferUsageFlags = number;
|
|
43790
43921
|
type GPUColor = number[] | GPUColorDict;
|
|
43791
43922
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43792
43923
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43797,6 +43928,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43797
43928
|
type GPUMapModeFlags = number;
|
|
43798
43929
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43799
43930
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43931
|
+
type GPUPipelineConstantValue = number;
|
|
43800
43932
|
type GPUSignedOffset32 = number;
|
|
43801
43933
|
type GPUSize32 = number;
|
|
43802
43934
|
type GPUSize32Out = number;
|
|
@@ -43910,14 +44042,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43910
44042
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43911
44043
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43912
44044
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44045
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44046
|
+
type GPUAutoLayoutMode = "auto";
|
|
43913
44047
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43914
44048
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43915
44049
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44050
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43916
44051
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43917
44052
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43918
44053
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44054
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43919
44055
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43920
44056
|
type GPULoadOp = "clear" | "load";
|
|
44057
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43921
44058
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43922
44059
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43923
44060
|
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,35 @@ 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
|
+
|
|
993
|
+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
994
|
+
code: string;
|
|
995
|
+
}
|
|
996
|
+
|
|
937
997
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
938
998
|
buffer: GPUBuffer;
|
|
939
999
|
}
|
|
@@ -951,6 +1011,16 @@ interface GPUTexelCopyTextureInfo {
|
|
|
951
1011
|
texture: GPUTexture;
|
|
952
1012
|
}
|
|
953
1013
|
|
|
1014
|
+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1015
|
+
dimension?: GPUTextureDimension;
|
|
1016
|
+
format: GPUTextureFormat;
|
|
1017
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
1018
|
+
sampleCount?: GPUSize32;
|
|
1019
|
+
size: GPUExtent3D;
|
|
1020
|
+
usage: GPUTextureUsageFlags;
|
|
1021
|
+
viewFormats?: GPUTextureFormat[];
|
|
1022
|
+
}
|
|
1023
|
+
|
|
954
1024
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
955
1025
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
956
1026
|
aspect?: GPUTextureAspect;
|
|
@@ -15345,6 +15415,66 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15345
15415
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15346
15416
|
*/
|
|
15347
15417
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15418
|
+
/**
|
|
15419
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15420
|
+
*
|
|
15421
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15422
|
+
*/
|
|
15423
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15424
|
+
/**
|
|
15425
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15426
|
+
*
|
|
15427
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15428
|
+
*/
|
|
15429
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15430
|
+
/**
|
|
15431
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15432
|
+
*
|
|
15433
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15434
|
+
*/
|
|
15435
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15436
|
+
/**
|
|
15437
|
+
* 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.
|
|
15438
|
+
*
|
|
15439
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15440
|
+
*/
|
|
15441
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15442
|
+
/**
|
|
15443
|
+
* 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.
|
|
15444
|
+
*
|
|
15445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15446
|
+
*/
|
|
15447
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15448
|
+
/**
|
|
15449
|
+
* 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.
|
|
15450
|
+
*
|
|
15451
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15452
|
+
*/
|
|
15453
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15454
|
+
/**
|
|
15455
|
+
* 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.
|
|
15456
|
+
*
|
|
15457
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15458
|
+
*/
|
|
15459
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15460
|
+
/**
|
|
15461
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15462
|
+
*
|
|
15463
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15464
|
+
*/
|
|
15465
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15466
|
+
/**
|
|
15467
|
+
* The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
|
|
15468
|
+
*
|
|
15469
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
|
|
15470
|
+
*/
|
|
15471
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
15472
|
+
/**
|
|
15473
|
+
* The **`createTexture()`** method of the GPUDevice interface creates a GPUTexture in which to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
|
|
15474
|
+
*
|
|
15475
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
|
|
15476
|
+
*/
|
|
15477
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
15348
15478
|
/**
|
|
15349
15479
|
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15350
15480
|
*
|
|
@@ -36344,7 +36474,7 @@ interface TextTrackCueEventMap {
|
|
|
36344
36474
|
}
|
|
36345
36475
|
|
|
36346
36476
|
/**
|
|
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.
|
|
36477
|
+
* 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
36478
|
*
|
|
36349
36479
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
36350
36480
|
*/
|
|
@@ -43787,6 +43917,7 @@ type GLuint = number;
|
|
|
43787
43917
|
type GLuint64 = number;
|
|
43788
43918
|
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43789
43919
|
type GPUBufferDynamicOffset = number;
|
|
43920
|
+
type GPUBufferUsageFlags = number;
|
|
43790
43921
|
type GPUColor = number[] | GPUColorDict;
|
|
43791
43922
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
43792
43923
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
@@ -43797,6 +43928,7 @@ type GPUIntegerCoordinateOut = number;
|
|
|
43797
43928
|
type GPUMapModeFlags = number;
|
|
43798
43929
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43799
43930
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43931
|
+
type GPUPipelineConstantValue = number;
|
|
43800
43932
|
type GPUSignedOffset32 = number;
|
|
43801
43933
|
type GPUSize32 = number;
|
|
43802
43934
|
type GPUSize32Out = number;
|
|
@@ -43910,14 +44042,19 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43910
44042
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43911
44043
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43912
44044
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44045
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44046
|
+
type GPUAutoLayoutMode = "auto";
|
|
43913
44047
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43914
44048
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
43915
44049
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44050
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43916
44051
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43917
44052
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43918
44053
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44054
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
43919
44055
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
43920
44056
|
type GPULoadOp = "clear" | "load";
|
|
44057
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43921
44058
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43922
44059
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43923
44060
|
type GPUStoreOp = "discard" | "store";
|