@typescript/native-preview-darwin-x64 7.0.0-dev.20260303.1 → 7.0.0-dev.20260304.1
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/lib/lib.dom.d.ts +836 -14
- package/lib/lib.esnext.temporal.d.ts +33 -21
- package/lib/lib.webworker.d.ts +809 -17
- package/lib/tsgo +0 -0
- package/package.json +2 -2
package/lib/lib.dom.d.ts
CHANGED
|
@@ -821,6 +821,73 @@ interface FullscreenOptions {
|
|
|
821
821
|
navigationUI?: FullscreenNavigationUI;
|
|
822
822
|
}
|
|
823
823
|
|
|
824
|
+
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
825
|
+
entries: GPUBindGroupEntry[];
|
|
826
|
+
layout: GPUBindGroupLayout;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
interface GPUBindGroupEntry {
|
|
830
|
+
binding: GPUIndex32;
|
|
831
|
+
resource: GPUBindingResource;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
835
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
interface GPUBindGroupLayoutEntry {
|
|
839
|
+
binding: GPUIndex32;
|
|
840
|
+
buffer?: GPUBufferBindingLayout;
|
|
841
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
842
|
+
sampler?: GPUSamplerBindingLayout;
|
|
843
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
844
|
+
texture?: GPUTextureBindingLayout;
|
|
845
|
+
visibility: GPUShaderStageFlags;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
interface GPUBlendComponent {
|
|
849
|
+
dstFactor?: GPUBlendFactor;
|
|
850
|
+
operation?: GPUBlendOperation;
|
|
851
|
+
srcFactor?: GPUBlendFactor;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
interface GPUBlendState {
|
|
855
|
+
alpha: GPUBlendComponent;
|
|
856
|
+
color: GPUBlendComponent;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
interface GPUBufferBinding {
|
|
860
|
+
buffer: GPUBuffer;
|
|
861
|
+
offset?: GPUSize64;
|
|
862
|
+
size?: GPUSize64;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
interface GPUBufferBindingLayout {
|
|
866
|
+
hasDynamicOffset?: boolean;
|
|
867
|
+
minBindingSize?: GPUSize64;
|
|
868
|
+
type?: GPUBufferBindingType;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
872
|
+
mappedAtCreation?: boolean;
|
|
873
|
+
size: GPUSize64;
|
|
874
|
+
usage: GPUBufferUsageFlags;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
interface GPUCanvasConfiguration {
|
|
878
|
+
alphaMode?: GPUCanvasAlphaMode;
|
|
879
|
+
colorSpace?: PredefinedColorSpace;
|
|
880
|
+
device: GPUDevice;
|
|
881
|
+
format: GPUTextureFormat;
|
|
882
|
+
toneMapping?: GPUCanvasToneMapping;
|
|
883
|
+
usage?: GPUTextureUsageFlags;
|
|
884
|
+
viewFormats?: GPUTextureFormat[];
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
interface GPUCanvasToneMapping {
|
|
888
|
+
mode?: GPUCanvasToneMappingMode;
|
|
889
|
+
}
|
|
890
|
+
|
|
824
891
|
interface GPUColorDict {
|
|
825
892
|
a: number;
|
|
826
893
|
b: number;
|
|
@@ -828,17 +895,264 @@ interface GPUColorDict {
|
|
|
828
895
|
r: number;
|
|
829
896
|
}
|
|
830
897
|
|
|
898
|
+
interface GPUColorTargetState {
|
|
899
|
+
blend?: GPUBlendState;
|
|
900
|
+
format: GPUTextureFormat;
|
|
901
|
+
writeMask?: GPUColorWriteFlags;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
911
|
+
timestampWrites?: GPUComputePassTimestampWrites;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
interface GPUComputePassTimestampWrites {
|
|
915
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
916
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
917
|
+
querySet: GPUQuerySet;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
921
|
+
compute: GPUProgrammableStage;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
925
|
+
colorSpace?: PredefinedColorSpace;
|
|
926
|
+
premultipliedAlpha?: boolean;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
interface GPUCopyExternalImageSourceInfo {
|
|
930
|
+
flipY?: boolean;
|
|
931
|
+
origin?: GPUOrigin2D;
|
|
932
|
+
source: GPUCopyExternalImageSource;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
interface GPUDepthStencilState {
|
|
936
|
+
depthBias?: GPUDepthBias;
|
|
937
|
+
depthBiasClamp?: number;
|
|
938
|
+
depthBiasSlopeScale?: number;
|
|
939
|
+
depthCompare?: GPUCompareFunction;
|
|
940
|
+
depthWriteEnabled?: boolean;
|
|
941
|
+
format: GPUTextureFormat;
|
|
942
|
+
stencilBack?: GPUStencilFaceState;
|
|
943
|
+
stencilFront?: GPUStencilFaceState;
|
|
944
|
+
stencilReadMask?: GPUStencilValue;
|
|
945
|
+
stencilWriteMask?: GPUStencilValue;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
949
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
950
|
+
requiredFeatures?: GPUFeatureName[];
|
|
951
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
interface GPUExtent3DDict {
|
|
955
|
+
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
956
|
+
height?: GPUIntegerCoordinate;
|
|
957
|
+
width: GPUIntegerCoordinate;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
interface GPUExternalTextureBindingLayout {
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
964
|
+
colorSpace?: PredefinedColorSpace;
|
|
965
|
+
source: HTMLVideoElement | VideoFrame;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
969
|
+
targets: (GPUColorTargetState | null)[];
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
interface GPUMultisampleState {
|
|
973
|
+
alphaToCoverageEnabled?: boolean;
|
|
974
|
+
count?: GPUSize32;
|
|
975
|
+
mask?: GPUSampleMask;
|
|
976
|
+
}
|
|
977
|
+
|
|
831
978
|
interface GPUObjectDescriptorBase {
|
|
832
979
|
label?: string;
|
|
833
980
|
}
|
|
834
981
|
|
|
982
|
+
interface GPUOrigin2DDict {
|
|
983
|
+
x?: GPUIntegerCoordinate;
|
|
984
|
+
y?: GPUIntegerCoordinate;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
interface GPUOrigin3DDict {
|
|
988
|
+
x?: GPUIntegerCoordinate;
|
|
989
|
+
y?: GPUIntegerCoordinate;
|
|
990
|
+
z?: GPUIntegerCoordinate;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
994
|
+
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
995
|
+
}
|
|
996
|
+
|
|
835
997
|
interface GPUPipelineErrorInit {
|
|
836
998
|
reason: GPUPipelineErrorReason;
|
|
837
999
|
}
|
|
838
1000
|
|
|
1001
|
+
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
1002
|
+
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
interface GPUPrimitiveState {
|
|
1006
|
+
cullMode?: GPUCullMode;
|
|
1007
|
+
frontFace?: GPUFrontFace;
|
|
1008
|
+
stripIndexFormat?: GPUIndexFormat;
|
|
1009
|
+
topology?: GPUPrimitiveTopology;
|
|
1010
|
+
unclippedDepth?: boolean;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
interface GPUProgrammableStage {
|
|
1014
|
+
constants?: Record<string, GPUPipelineConstantValue>;
|
|
1015
|
+
entryPoint?: string;
|
|
1016
|
+
module: GPUShaderModule;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
1020
|
+
count: GPUSize32;
|
|
1021
|
+
type: GPUQueryType;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
1025
|
+
}
|
|
1026
|
+
|
|
839
1027
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
840
1028
|
}
|
|
841
1029
|
|
|
1030
|
+
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
1031
|
+
depthReadOnly?: boolean;
|
|
1032
|
+
stencilReadOnly?: boolean;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
interface GPURenderPassColorAttachment {
|
|
1036
|
+
clearValue?: GPUColor;
|
|
1037
|
+
depthSlice?: GPUIntegerCoordinate;
|
|
1038
|
+
loadOp: GPULoadOp;
|
|
1039
|
+
resolveTarget?: GPUTexture | GPUTextureView;
|
|
1040
|
+
storeOp: GPUStoreOp;
|
|
1041
|
+
view: GPUTexture | GPUTextureView;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
interface GPURenderPassDepthStencilAttachment {
|
|
1045
|
+
depthClearValue?: number;
|
|
1046
|
+
depthLoadOp?: GPULoadOp;
|
|
1047
|
+
depthReadOnly?: boolean;
|
|
1048
|
+
depthStoreOp?: GPUStoreOp;
|
|
1049
|
+
stencilClearValue?: GPUStencilValue;
|
|
1050
|
+
stencilLoadOp?: GPULoadOp;
|
|
1051
|
+
stencilReadOnly?: boolean;
|
|
1052
|
+
stencilStoreOp?: GPUStoreOp;
|
|
1053
|
+
view: GPUTexture | GPUTextureView;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
1057
|
+
colorAttachments: (GPURenderPassColorAttachment | null)[];
|
|
1058
|
+
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
|
|
1059
|
+
maxDrawCount?: GPUSize64;
|
|
1060
|
+
occlusionQuerySet?: GPUQuerySet;
|
|
1061
|
+
timestampWrites?: GPURenderPassTimestampWrites;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
1065
|
+
colorFormats: (GPUTextureFormat | null)[];
|
|
1066
|
+
depthStencilFormat?: GPUTextureFormat;
|
|
1067
|
+
sampleCount?: GPUSize32;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
interface GPURenderPassTimestampWrites {
|
|
1071
|
+
beginningOfPassWriteIndex?: GPUSize32;
|
|
1072
|
+
endOfPassWriteIndex?: GPUSize32;
|
|
1073
|
+
querySet: GPUQuerySet;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
1077
|
+
depthStencil?: GPUDepthStencilState;
|
|
1078
|
+
fragment?: GPUFragmentState;
|
|
1079
|
+
multisample?: GPUMultisampleState;
|
|
1080
|
+
primitive?: GPUPrimitiveState;
|
|
1081
|
+
vertex: GPUVertexState;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
interface GPURequestAdapterOptions {
|
|
1085
|
+
forceFallbackAdapter?: boolean;
|
|
1086
|
+
powerPreference?: GPUPowerPreference;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
interface GPUSamplerBindingLayout {
|
|
1090
|
+
type?: GPUSamplerBindingType;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
1094
|
+
addressModeU?: GPUAddressMode;
|
|
1095
|
+
addressModeV?: GPUAddressMode;
|
|
1096
|
+
addressModeW?: GPUAddressMode;
|
|
1097
|
+
compare?: GPUCompareFunction;
|
|
1098
|
+
lodMaxClamp?: number;
|
|
1099
|
+
lodMinClamp?: number;
|
|
1100
|
+
magFilter?: GPUFilterMode;
|
|
1101
|
+
maxAnisotropy?: number;
|
|
1102
|
+
minFilter?: GPUFilterMode;
|
|
1103
|
+
mipmapFilter?: GPUMipmapFilterMode;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
1107
|
+
code: string;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
interface GPUStencilFaceState {
|
|
1111
|
+
compare?: GPUCompareFunction;
|
|
1112
|
+
depthFailOp?: GPUStencilOperation;
|
|
1113
|
+
failOp?: GPUStencilOperation;
|
|
1114
|
+
passOp?: GPUStencilOperation;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
interface GPUStorageTextureBindingLayout {
|
|
1118
|
+
access?: GPUStorageTextureAccess;
|
|
1119
|
+
format: GPUTextureFormat;
|
|
1120
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
1124
|
+
buffer: GPUBuffer;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
interface GPUTexelCopyBufferLayout {
|
|
1128
|
+
bytesPerRow?: GPUSize32;
|
|
1129
|
+
offset?: GPUSize64;
|
|
1130
|
+
rowsPerImage?: GPUSize32;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
interface GPUTexelCopyTextureInfo {
|
|
1134
|
+
aspect?: GPUTextureAspect;
|
|
1135
|
+
mipLevel?: GPUIntegerCoordinate;
|
|
1136
|
+
origin?: GPUOrigin3D;
|
|
1137
|
+
texture: GPUTexture;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
interface GPUTextureBindingLayout {
|
|
1141
|
+
multisampled?: boolean;
|
|
1142
|
+
sampleType?: GPUTextureSampleType;
|
|
1143
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1147
|
+
dimension?: GPUTextureDimension;
|
|
1148
|
+
format: GPUTextureFormat;
|
|
1149
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
1150
|
+
sampleCount?: GPUSize32;
|
|
1151
|
+
size: GPUExtent3D;
|
|
1152
|
+
usage: GPUTextureUsageFlags;
|
|
1153
|
+
viewFormats?: GPUTextureFormat[];
|
|
1154
|
+
}
|
|
1155
|
+
|
|
842
1156
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
843
1157
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
844
1158
|
aspect?: GPUTextureAspect;
|
|
@@ -854,6 +1168,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
|
|
|
854
1168
|
error: GPUError;
|
|
855
1169
|
}
|
|
856
1170
|
|
|
1171
|
+
interface GPUVertexAttribute {
|
|
1172
|
+
format: GPUVertexFormat;
|
|
1173
|
+
offset: GPUSize64;
|
|
1174
|
+
shaderLocation: GPUIndex32;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
interface GPUVertexBufferLayout {
|
|
1178
|
+
arrayStride: GPUSize64;
|
|
1179
|
+
attributes: GPUVertexAttribute[];
|
|
1180
|
+
stepMode?: GPUVertexStepMode;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
1184
|
+
buffers?: (GPUVertexBufferLayout | null)[];
|
|
1185
|
+
}
|
|
1186
|
+
|
|
857
1187
|
interface GainOptions extends AudioNodeOptions {
|
|
858
1188
|
gain?: number;
|
|
859
1189
|
}
|
|
@@ -868,7 +1198,7 @@ interface GamepadEffectParameters {
|
|
|
868
1198
|
}
|
|
869
1199
|
|
|
870
1200
|
interface GamepadEventInit extends EventInit {
|
|
871
|
-
gamepad
|
|
1201
|
+
gamepad?: Gamepad | null;
|
|
872
1202
|
}
|
|
873
1203
|
|
|
874
1204
|
interface GetAnimationsOptions {
|
|
@@ -5044,13 +5374,13 @@ declare var CSSFontFaceRule: {
|
|
|
5044
5374
|
};
|
|
5045
5375
|
|
|
5046
5376
|
/**
|
|
5047
|
-
* The **`CSSFontFeatureValuesRule`** interface represents an @font-feature-values at-rule
|
|
5377
|
+
* The **`CSSFontFeatureValuesRule`** interface represents an @font-feature-values at-rule. The values of its instance properties can be accessed with the CSSFontFeatureValuesMap interface.
|
|
5048
5378
|
*
|
|
5049
5379
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule)
|
|
5050
5380
|
*/
|
|
5051
5381
|
interface CSSFontFeatureValuesRule extends CSSRule {
|
|
5052
5382
|
/**
|
|
5053
|
-
* The **`fontFamily`** property of the
|
|
5383
|
+
* The **`fontFamily`** property of the CSSFontFeatureValuesRule interface represents the name of the font family it applies to.
|
|
5054
5384
|
*
|
|
5055
5385
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)
|
|
5056
5386
|
*/
|
|
@@ -6501,6 +6831,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6501
6831
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size)
|
|
6502
6832
|
*/
|
|
6503
6833
|
backgroundSize: string;
|
|
6834
|
+
/** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */
|
|
6504
6835
|
baselineShift: string;
|
|
6505
6836
|
/**
|
|
6506
6837
|
* The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type.
|
|
@@ -10916,6 +11247,7 @@ interface CustomElementRegistry {
|
|
|
10916
11247
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
10917
11248
|
*/
|
|
10918
11249
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11250
|
+
initialize(root: Node): void;
|
|
10919
11251
|
/**
|
|
10920
11252
|
* The **`upgrade()`** method of the CustomElementRegistry interface upgrades all shadow-containing custom elements in a Node subtree, even before they are connected to the main document.
|
|
10921
11253
|
*
|
|
@@ -12913,6 +13245,7 @@ interface DocumentOrShadowRoot {
|
|
|
12913
13245
|
readonly activeElement: Element | null;
|
|
12914
13246
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
12915
13247
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13248
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
12916
13249
|
/**
|
|
12917
13250
|
* Returns document's fullscreen element.
|
|
12918
13251
|
*
|
|
@@ -13222,6 +13555,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13222
13555
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13223
13556
|
*/
|
|
13224
13557
|
readonly currentCSSZoom: number;
|
|
13558
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13225
13559
|
/**
|
|
13226
13560
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13227
13561
|
*
|
|
@@ -14780,6 +15114,76 @@ declare var FragmentDirective: {
|
|
|
14780
15114
|
new(): FragmentDirective;
|
|
14781
15115
|
};
|
|
14782
15116
|
|
|
15117
|
+
/**
|
|
15118
|
+
* The **`GPU`** interface of the WebGPU API is the starting point for using WebGPU. It can be used to return a GPUAdapter from which you can request devices, configure features and limits, and more.
|
|
15119
|
+
* Available only in secure contexts.
|
|
15120
|
+
*
|
|
15121
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
15122
|
+
*/
|
|
15123
|
+
interface GPU {
|
|
15124
|
+
/**
|
|
15125
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
15126
|
+
*
|
|
15127
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
15128
|
+
*/
|
|
15129
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
15130
|
+
/**
|
|
15131
|
+
* The **`getPreferredCanvasFormat()`** method of the GPU interface returns the optimal canvas texture format for displaying 8-bit depth, standard dynamic range content on the current system.
|
|
15132
|
+
*
|
|
15133
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
15134
|
+
*/
|
|
15135
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
15136
|
+
/**
|
|
15137
|
+
* The **`requestAdapter()`** method of the GPU interface returns a Promise that fulfills with a GPUAdapter object instance. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15138
|
+
*
|
|
15139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
15140
|
+
*/
|
|
15141
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
15142
|
+
}
|
|
15143
|
+
|
|
15144
|
+
declare var GPU: {
|
|
15145
|
+
prototype: GPU;
|
|
15146
|
+
new(): GPU;
|
|
15147
|
+
};
|
|
15148
|
+
|
|
15149
|
+
/**
|
|
15150
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15151
|
+
* Available only in secure contexts.
|
|
15152
|
+
*
|
|
15153
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
15154
|
+
*/
|
|
15155
|
+
interface GPUAdapter {
|
|
15156
|
+
/**
|
|
15157
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
15158
|
+
*
|
|
15159
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
15160
|
+
*/
|
|
15161
|
+
readonly features: GPUSupportedFeatures;
|
|
15162
|
+
/**
|
|
15163
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
15164
|
+
*
|
|
15165
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
15166
|
+
*/
|
|
15167
|
+
readonly info: GPUAdapterInfo;
|
|
15168
|
+
/**
|
|
15169
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
15170
|
+
*
|
|
15171
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
15172
|
+
*/
|
|
15173
|
+
readonly limits: GPUSupportedLimits;
|
|
15174
|
+
/**
|
|
15175
|
+
* The **`requestDevice()`** method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU.
|
|
15176
|
+
*
|
|
15177
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
15178
|
+
*/
|
|
15179
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
15180
|
+
}
|
|
15181
|
+
|
|
15182
|
+
declare var GPUAdapter: {
|
|
15183
|
+
prototype: GPUAdapter;
|
|
15184
|
+
new(): GPUAdapter;
|
|
15185
|
+
};
|
|
15186
|
+
|
|
14783
15187
|
/**
|
|
14784
15188
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
14785
15189
|
* Available only in secure contexts.
|
|
@@ -14926,6 +15330,50 @@ declare var GPUBuffer: {
|
|
|
14926
15330
|
new(): GPUBuffer;
|
|
14927
15331
|
};
|
|
14928
15332
|
|
|
15333
|
+
/**
|
|
15334
|
+
* The **`GPUCanvasContext`** interface of the WebGPU API represents the WebGPU rendering context of a <canvas> element, returned via an HTMLCanvasElement.getContext() call with a contextType of "webgpu".
|
|
15335
|
+
* Available only in secure contexts.
|
|
15336
|
+
*
|
|
15337
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
15338
|
+
*/
|
|
15339
|
+
interface GPUCanvasContext {
|
|
15340
|
+
/**
|
|
15341
|
+
* The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
|
|
15342
|
+
*
|
|
15343
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
|
|
15344
|
+
*/
|
|
15345
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
15346
|
+
/**
|
|
15347
|
+
* The **`configure()`** method of the GPUCanvasContext interface configures the context to use for rendering with a given GPUDevice. When called the canvas will initially be cleared to transparent black.
|
|
15348
|
+
*
|
|
15349
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
|
|
15350
|
+
*/
|
|
15351
|
+
configure(configuration: GPUCanvasConfiguration): void;
|
|
15352
|
+
/**
|
|
15353
|
+
* The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
|
|
15354
|
+
*
|
|
15355
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
|
|
15356
|
+
*/
|
|
15357
|
+
getConfiguration(): GPUCanvasConfiguration | null;
|
|
15358
|
+
/**
|
|
15359
|
+
* The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
|
|
15360
|
+
*
|
|
15361
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
|
|
15362
|
+
*/
|
|
15363
|
+
getCurrentTexture(): GPUTexture;
|
|
15364
|
+
/**
|
|
15365
|
+
* The **`unconfigure()`** method of the GPUCanvasContext interface removes any previously-set context configuration, and destroys any textures returned via getCurrentTexture() while the canvas context was configured.
|
|
15366
|
+
*
|
|
15367
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
|
|
15368
|
+
*/
|
|
15369
|
+
unconfigure(): void;
|
|
15370
|
+
}
|
|
15371
|
+
|
|
15372
|
+
declare var GPUCanvasContext: {
|
|
15373
|
+
prototype: GPUCanvasContext;
|
|
15374
|
+
new(): GPUCanvasContext;
|
|
15375
|
+
};
|
|
15376
|
+
|
|
14929
15377
|
/**
|
|
14930
15378
|
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
14931
15379
|
* Available only in secure contexts.
|
|
@@ -14940,6 +15388,75 @@ declare var GPUCommandBuffer: {
|
|
|
14940
15388
|
new(): GPUCommandBuffer;
|
|
14941
15389
|
};
|
|
14942
15390
|
|
|
15391
|
+
/**
|
|
15392
|
+
* The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
|
|
15393
|
+
* Available only in secure contexts.
|
|
15394
|
+
*
|
|
15395
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
15396
|
+
*/
|
|
15397
|
+
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
15398
|
+
/**
|
|
15399
|
+
* The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
|
|
15400
|
+
*
|
|
15401
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
|
|
15402
|
+
*/
|
|
15403
|
+
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
15404
|
+
/**
|
|
15405
|
+
* The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
|
|
15406
|
+
*
|
|
15407
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
|
|
15408
|
+
*/
|
|
15409
|
+
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
15410
|
+
/**
|
|
15411
|
+
* The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
|
|
15412
|
+
*
|
|
15413
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
|
|
15414
|
+
*/
|
|
15415
|
+
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15416
|
+
/**
|
|
15417
|
+
* The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
|
|
15418
|
+
*
|
|
15419
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
|
|
15420
|
+
*/
|
|
15421
|
+
copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
|
|
15422
|
+
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
|
|
15423
|
+
/**
|
|
15424
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
15425
|
+
*
|
|
15426
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
15427
|
+
*/
|
|
15428
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15429
|
+
/**
|
|
15430
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
15431
|
+
*
|
|
15432
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
15433
|
+
*/
|
|
15434
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
15435
|
+
/**
|
|
15436
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
15437
|
+
*
|
|
15438
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
15439
|
+
*/
|
|
15440
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15441
|
+
/**
|
|
15442
|
+
* The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
|
|
15443
|
+
*
|
|
15444
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
|
|
15445
|
+
*/
|
|
15446
|
+
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
15447
|
+
/**
|
|
15448
|
+
* The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
|
|
15449
|
+
*
|
|
15450
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
|
|
15451
|
+
*/
|
|
15452
|
+
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
15453
|
+
}
|
|
15454
|
+
|
|
15455
|
+
declare var GPUCommandEncoder: {
|
|
15456
|
+
prototype: GPUCommandEncoder;
|
|
15457
|
+
new(): GPUCommandEncoder;
|
|
15458
|
+
};
|
|
15459
|
+
|
|
14943
15460
|
/**
|
|
14944
15461
|
* The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
|
|
14945
15462
|
* Available only in secure contexts.
|
|
@@ -15071,6 +15588,168 @@ interface GPUDebugCommandsMixin {
|
|
|
15071
15588
|
pushDebugGroup(groupLabel: string): void;
|
|
15072
15589
|
}
|
|
15073
15590
|
|
|
15591
|
+
interface GPUDeviceEventMap {
|
|
15592
|
+
"uncapturederror": GPUUncapturedErrorEvent;
|
|
15593
|
+
}
|
|
15594
|
+
|
|
15595
|
+
/**
|
|
15596
|
+
* The **`GPUDevice`** interface of the WebGPU API represents a logical GPU device. This is the main interface through which the majority of WebGPU functionality is accessed.
|
|
15597
|
+
* Available only in secure contexts.
|
|
15598
|
+
*
|
|
15599
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
15600
|
+
*/
|
|
15601
|
+
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
15602
|
+
/**
|
|
15603
|
+
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
|
|
15604
|
+
*
|
|
15605
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
|
|
15606
|
+
*/
|
|
15607
|
+
readonly adapterInfo: GPUAdapterInfo;
|
|
15608
|
+
/**
|
|
15609
|
+
* The **`features`** read-only property of the GPUDevice interface returns a GPUSupportedFeatures object that describes additional functionality supported by the device. Only features requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) are included.
|
|
15610
|
+
*
|
|
15611
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
|
|
15612
|
+
*/
|
|
15613
|
+
readonly features: GPUSupportedFeatures;
|
|
15614
|
+
/**
|
|
15615
|
+
* The **`limits`** read-only property of the GPUDevice interface returns a GPUSupportedLimits object that describes the limits supported by the device. All limit values will be included, and the limits requested during the creation of the device (i.e., when GPUAdapter.requestDevice() is called) will be reflected in those values.
|
|
15616
|
+
*
|
|
15617
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
|
|
15618
|
+
*/
|
|
15619
|
+
readonly limits: GPUSupportedLimits;
|
|
15620
|
+
/**
|
|
15621
|
+
* The **`lost`** read-only property of the GPUDevice interface contains a Promise that remains pending throughout the device's lifetime and resolves with a GPUDeviceLostInfo object when the device is lost.
|
|
15622
|
+
*
|
|
15623
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
|
|
15624
|
+
*/
|
|
15625
|
+
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
15626
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
|
|
15627
|
+
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
|
|
15628
|
+
/**
|
|
15629
|
+
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
|
|
15630
|
+
*
|
|
15631
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
15632
|
+
*/
|
|
15633
|
+
readonly queue: GPUQueue;
|
|
15634
|
+
/**
|
|
15635
|
+
* The **`createBindGroup()`** method of the GPUDevice interface creates a GPUBindGroup based on a GPUBindGroupLayout that defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
15636
|
+
*
|
|
15637
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15638
|
+
*/
|
|
15639
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15640
|
+
/**
|
|
15641
|
+
* The **`createBindGroupLayout()`** method of the GPUDevice interface creates a GPUBindGroupLayout that defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
|
|
15642
|
+
*
|
|
15643
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
15644
|
+
*/
|
|
15645
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
15646
|
+
/**
|
|
15647
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15648
|
+
*
|
|
15649
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15650
|
+
*/
|
|
15651
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15652
|
+
/**
|
|
15653
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15654
|
+
*
|
|
15655
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15656
|
+
*/
|
|
15657
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15658
|
+
/**
|
|
15659
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15660
|
+
*
|
|
15661
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15662
|
+
*/
|
|
15663
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15664
|
+
/**
|
|
15665
|
+
* 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.
|
|
15666
|
+
*
|
|
15667
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15668
|
+
*/
|
|
15669
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15670
|
+
/**
|
|
15671
|
+
* 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.
|
|
15672
|
+
*
|
|
15673
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15674
|
+
*/
|
|
15675
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15676
|
+
/**
|
|
15677
|
+
* 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.
|
|
15678
|
+
*
|
|
15679
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15680
|
+
*/
|
|
15681
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15682
|
+
/**
|
|
15683
|
+
* 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.
|
|
15684
|
+
*
|
|
15685
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15686
|
+
*/
|
|
15687
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15688
|
+
/**
|
|
15689
|
+
* The **`createRenderPipeline()`** method of the GPUDevice interface creates a GPURenderPipeline that can control the vertex and fragment shader stages and be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
|
|
15690
|
+
*
|
|
15691
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
|
|
15692
|
+
*/
|
|
15693
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
15694
|
+
/**
|
|
15695
|
+
* The **`createRenderPipelineAsync()`** method of the GPUDevice interface returns a Promise that fulfills with a GPURenderPipeline, which can control the vertex and fragment shader stages and be used in a GPURenderPassEncoder or GPURenderBundleEncoder, once the pipeline can be used without any stalling.
|
|
15696
|
+
*
|
|
15697
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
|
|
15698
|
+
*/
|
|
15699
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
15700
|
+
/**
|
|
15701
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15702
|
+
*
|
|
15703
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15704
|
+
*/
|
|
15705
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15706
|
+
/**
|
|
15707
|
+
* The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
|
|
15708
|
+
*
|
|
15709
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
|
|
15710
|
+
*/
|
|
15711
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
15712
|
+
/**
|
|
15713
|
+
* 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.
|
|
15714
|
+
*
|
|
15715
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
|
|
15716
|
+
*/
|
|
15717
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
15718
|
+
/**
|
|
15719
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15720
|
+
*
|
|
15721
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
15722
|
+
*/
|
|
15723
|
+
destroy(): void;
|
|
15724
|
+
/**
|
|
15725
|
+
* The **`importExternalTexture()`** method of the GPUDevice interface takes an HTMLVideoElement or a VideoFrame object as an input and returns a GPUExternalTexture wrapper object containing a snapshot of the video that can be used as a frame in GPU rendering operations.
|
|
15726
|
+
*
|
|
15727
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
15728
|
+
*/
|
|
15729
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
15730
|
+
/**
|
|
15731
|
+
* The **`popErrorScope()`** method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.
|
|
15732
|
+
*
|
|
15733
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
15734
|
+
*/
|
|
15735
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
15736
|
+
/**
|
|
15737
|
+
* The **`pushErrorScope()`** method of the GPUDevice interface pushes a new GPU error scope onto the device's error scope stack, allowing you to capture errors of a particular type.
|
|
15738
|
+
*
|
|
15739
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
15740
|
+
*/
|
|
15741
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
15742
|
+
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
15743
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
15744
|
+
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
15745
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
15746
|
+
}
|
|
15747
|
+
|
|
15748
|
+
declare var GPUDevice: {
|
|
15749
|
+
prototype: GPUDevice;
|
|
15750
|
+
new(): GPUDevice;
|
|
15751
|
+
};
|
|
15752
|
+
|
|
15074
15753
|
/**
|
|
15075
15754
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
15076
15755
|
* Available only in secure contexts.
|
|
@@ -15235,6 +15914,50 @@ declare var GPUQuerySet: {
|
|
|
15235
15914
|
new(): GPUQuerySet;
|
|
15236
15915
|
};
|
|
15237
15916
|
|
|
15917
|
+
/**
|
|
15918
|
+
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
|
|
15919
|
+
* Available only in secure contexts.
|
|
15920
|
+
*
|
|
15921
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
15922
|
+
*/
|
|
15923
|
+
interface GPUQueue extends GPUObjectBase {
|
|
15924
|
+
/**
|
|
15925
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
15926
|
+
*
|
|
15927
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
15928
|
+
*/
|
|
15929
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
15930
|
+
/**
|
|
15931
|
+
* The **`onSubmittedWorkDone()`** method of the GPUQueue interface returns a Promise that resolves when all the work submitted to the GPU via this GPUQueue at the point the method is called has been processed.
|
|
15932
|
+
*
|
|
15933
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
|
|
15934
|
+
*/
|
|
15935
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
15936
|
+
/**
|
|
15937
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
15938
|
+
*
|
|
15939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
15940
|
+
*/
|
|
15941
|
+
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
15942
|
+
/**
|
|
15943
|
+
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
|
|
15944
|
+
*
|
|
15945
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
|
|
15946
|
+
*/
|
|
15947
|
+
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
15948
|
+
/**
|
|
15949
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
15950
|
+
*
|
|
15951
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
15952
|
+
*/
|
|
15953
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
15954
|
+
}
|
|
15955
|
+
|
|
15956
|
+
declare var GPUQueue: {
|
|
15957
|
+
prototype: GPUQueue;
|
|
15958
|
+
new(): GPUQueue;
|
|
15959
|
+
};
|
|
15960
|
+
|
|
15238
15961
|
/**
|
|
15239
15962
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15240
15963
|
* Available only in secure contexts.
|
|
@@ -15736,7 +16459,7 @@ interface GamepadEvent extends Event {
|
|
|
15736
16459
|
|
|
15737
16460
|
declare var GamepadEvent: {
|
|
15738
16461
|
prototype: GamepadEvent;
|
|
15739
|
-
new(type: string, eventInitDict
|
|
16462
|
+
new(type: string, eventInitDict?: GamepadEventInit): GamepadEvent;
|
|
15740
16463
|
};
|
|
15741
16464
|
|
|
15742
16465
|
/**
|
|
@@ -20597,6 +21320,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
20597
21320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
20598
21321
|
*/
|
|
20599
21322
|
shadowRootClonable: boolean;
|
|
21323
|
+
shadowRootCustomElementRegistry: string;
|
|
20600
21324
|
/**
|
|
20601
21325
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
20602
21326
|
*
|
|
@@ -24954,11 +25678,17 @@ declare var NavigationHistoryEntry: {
|
|
|
24954
25678
|
};
|
|
24955
25679
|
|
|
24956
25680
|
/**
|
|
24957
|
-
* The **`NavigationPrecommitController`** interface of the Navigation API
|
|
25681
|
+
* The **`NavigationPrecommitController`** interface of the Navigation API is passed as an argument to a navigation precommit handler callback.
|
|
24958
25682
|
*
|
|
24959
25683
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
24960
25684
|
*/
|
|
24961
25685
|
interface NavigationPrecommitController {
|
|
25686
|
+
/**
|
|
25687
|
+
* The **`addHandler()`** method of the NavigationPrecommitController interface allows you to dynamically add a handler callback function in precommit code, which will then be run after the navigation has committed.
|
|
25688
|
+
*
|
|
25689
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
|
|
25690
|
+
*/
|
|
25691
|
+
addHandler(handler: NavigationInterceptHandler): void;
|
|
24962
25692
|
/**
|
|
24963
25693
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
24964
25694
|
*
|
|
@@ -25047,7 +25777,7 @@ declare var NavigationTransition: {
|
|
|
25047
25777
|
*
|
|
25048
25778
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25049
25779
|
*/
|
|
25050
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25780
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25051
25781
|
/**
|
|
25052
25782
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25053
25783
|
* Available only in secure contexts.
|
|
@@ -25212,6 +25942,15 @@ interface NavigatorCookies {
|
|
|
25212
25942
|
readonly cookieEnabled: boolean;
|
|
25213
25943
|
}
|
|
25214
25944
|
|
|
25945
|
+
interface NavigatorGPU {
|
|
25946
|
+
/**
|
|
25947
|
+
* Available only in secure contexts.
|
|
25948
|
+
*
|
|
25949
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
25950
|
+
*/
|
|
25951
|
+
readonly gpu: GPU;
|
|
25952
|
+
}
|
|
25953
|
+
|
|
25215
25954
|
interface NavigatorID {
|
|
25216
25955
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25217
25956
|
readonly appCodeName: string;
|
|
@@ -28018,6 +28757,12 @@ declare var PushManager: {
|
|
|
28018
28757
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
28019
28758
|
};
|
|
28020
28759
|
|
|
28760
|
+
/** Available only in secure contexts. */
|
|
28761
|
+
interface PushManagerAttribute {
|
|
28762
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
28763
|
+
readonly pushManager: PushManager;
|
|
28764
|
+
}
|
|
28765
|
+
|
|
28021
28766
|
/**
|
|
28022
28767
|
* The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
|
|
28023
28768
|
* Available only in secure contexts.
|
|
@@ -29621,7 +30366,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
29621
30366
|
*
|
|
29622
30367
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
29623
30368
|
*/
|
|
29624
|
-
enqueue(chunk
|
|
30369
|
+
enqueue(chunk: R): void;
|
|
29625
30370
|
/**
|
|
29626
30371
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
29627
30372
|
*
|
|
@@ -34436,7 +35181,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
34436
35181
|
*
|
|
34437
35182
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
34438
35183
|
*/
|
|
34439
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
35184
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
34440
35185
|
/**
|
|
34441
35186
|
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
|
|
34442
35187
|
*
|
|
@@ -34593,7 +35338,7 @@ declare var ShadowRoot: {
|
|
|
34593
35338
|
};
|
|
34594
35339
|
|
|
34595
35340
|
/**
|
|
34596
|
-
* The **`SharedWorker`** interface represents a specific kind of worker that can be accessed from several browsing contexts, such as
|
|
35341
|
+
* The **`SharedWorker`** interface represents a specific kind of worker that can be accessed from several browsing contexts, such as multiple windows or iframes. Shared workers implement a different interface than dedicated workers, have a different global scope (SharedWorkerGlobalScope), and their constructor is not exposed in DedicatedWorkerGlobalScope, so they cannot be instantiated from dedicated workers.
|
|
34597
35342
|
*
|
|
34598
35343
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker)
|
|
34599
35344
|
*/
|
|
@@ -35985,7 +36730,7 @@ interface TextTrackCueEventMap {
|
|
|
35985
36730
|
}
|
|
35986
36731
|
|
|
35987
36732
|
/**
|
|
35988
|
-
* 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.
|
|
36733
|
+
* 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.
|
|
35989
36734
|
*
|
|
35990
36735
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
35991
36736
|
*/
|
|
@@ -37408,7 +38153,7 @@ interface ViewTransition {
|
|
|
37408
38153
|
*
|
|
37409
38154
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/types)
|
|
37410
38155
|
*/
|
|
37411
|
-
types: ViewTransitionTypeSet;
|
|
38156
|
+
readonly types: ViewTransitionTypeSet;
|
|
37412
38157
|
/**
|
|
37413
38158
|
* The **`updateCallbackDone`** read-only property of the ViewTransition interface is a Promise that fulfills when the promise returned by the document.startViewTransition() method's callback fulfills, or rejects when it rejects.
|
|
37414
38159
|
*
|
|
@@ -41774,7 +42519,7 @@ declare namespace WebAssembly {
|
|
|
41774
42519
|
*
|
|
41775
42520
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
41776
42521
|
*/
|
|
41777
|
-
getArg(index: number): any;
|
|
42522
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
41778
42523
|
/**
|
|
41779
42524
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
41780
42525
|
*
|
|
@@ -43426,13 +44171,24 @@ type GLsizei = number;
|
|
|
43426
44171
|
type GLsizeiptr = number;
|
|
43427
44172
|
type GLuint = number;
|
|
43428
44173
|
type GLuint64 = number;
|
|
44174
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43429
44175
|
type GPUBufferDynamicOffset = number;
|
|
44176
|
+
type GPUBufferUsageFlags = number;
|
|
43430
44177
|
type GPUColor = number[] | GPUColorDict;
|
|
44178
|
+
type GPUColorWriteFlags = number;
|
|
44179
|
+
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
44180
|
+
type GPUDepthBias = number;
|
|
44181
|
+
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
43431
44182
|
type GPUFlagsConstant = number;
|
|
43432
44183
|
type GPUIndex32 = number;
|
|
43433
44184
|
type GPUIntegerCoordinate = number;
|
|
43434
44185
|
type GPUIntegerCoordinateOut = number;
|
|
43435
44186
|
type GPUMapModeFlags = number;
|
|
44187
|
+
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
44188
|
+
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
44189
|
+
type GPUPipelineConstantValue = number;
|
|
44190
|
+
type GPUSampleMask = number;
|
|
44191
|
+
type GPUShaderStageFlags = number;
|
|
43436
44192
|
type GPUSignedOffset32 = number;
|
|
43437
44193
|
type GPUSize32 = number;
|
|
43438
44194
|
type GPUSize32Out = number;
|
|
@@ -43454,7 +44210,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
|
|
|
43454
44210
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
43455
44211
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
43456
44212
|
type NamedCurve = string;
|
|
43457
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
44213
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43458
44214
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
43459
44215
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
43460
44216
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
|
@@ -43466,7 +44222,7 @@ type RTCRtpSenderTransform = RTCRtpScriptTransform;
|
|
|
43466
44222
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
43467
44223
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
43468
44224
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
43469
|
-
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
44225
|
+
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43470
44226
|
type ReportList = Report[];
|
|
43471
44227
|
type RequestInfo = Request | string;
|
|
43472
44228
|
type SanitizerAttribute = string | SanitizerAttributeNamespace;
|
|
@@ -43546,16 +44302,40 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43546
44302
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43547
44303
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43548
44304
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44305
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44306
|
+
type GPUAutoLayoutMode = "auto";
|
|
44307
|
+
type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero";
|
|
44308
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44309
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
43549
44310
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44311
|
+
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44312
|
+
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44313
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43550
44314
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
44315
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
43551
44316
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44317
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44318
|
+
type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query";
|
|
44319
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
44320
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
43552
44321
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44322
|
+
type GPULoadOp = "clear" | "load";
|
|
44323
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43553
44324
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44325
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44326
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
43554
44327
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44328
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44329
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44330
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44331
|
+
type GPUStoreOp = "discard" | "store";
|
|
43555
44332
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43556
44333
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43557
44334
|
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
44335
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
43558
44336
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44337
|
+
type GPUVertexFormat = "float16" | "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8" | "sint8x2" | "sint8x4" | "snorm16" | "snorm16x2" | "snorm16x4" | "snorm8" | "snorm8x2" | "snorm8x4" | "uint16" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16" | "unorm16x2" | "unorm16x4" | "unorm8" | "unorm8x2" | "unorm8x4" | "unorm8x4-bgra";
|
|
44338
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
43559
44339
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
43560
44340
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
43561
44341
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
|
@@ -43845,6 +44625,48 @@ interface GPUBindingCommandsMixin {
|
|
|
43845
44625
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
43846
44626
|
}
|
|
43847
44627
|
|
|
44628
|
+
interface GPUCommandEncoder {
|
|
44629
|
+
/**
|
|
44630
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
44631
|
+
*
|
|
44632
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
44633
|
+
*/
|
|
44634
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44635
|
+
/**
|
|
44636
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
44637
|
+
*
|
|
44638
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
44639
|
+
*/
|
|
44640
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44641
|
+
/**
|
|
44642
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
44643
|
+
*
|
|
44644
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
44645
|
+
*/
|
|
44646
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44647
|
+
}
|
|
44648
|
+
|
|
44649
|
+
interface GPUQueue {
|
|
44650
|
+
/**
|
|
44651
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
44652
|
+
*
|
|
44653
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
44654
|
+
*/
|
|
44655
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44656
|
+
/**
|
|
44657
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
44658
|
+
*
|
|
44659
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
44660
|
+
*/
|
|
44661
|
+
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
|
|
44662
|
+
/**
|
|
44663
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
44664
|
+
*
|
|
44665
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
44666
|
+
*/
|
|
44667
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
|
|
44668
|
+
}
|
|
44669
|
+
|
|
43848
44670
|
interface GPURenderPassEncoder {
|
|
43849
44671
|
/**
|
|
43850
44672
|
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|