typescript 6.0.0-dev.20260217 → 6.0.0-dev.20260219
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/_tsc.js +2 -1
- package/lib/lib.dom.d.ts +829 -8
- package/lib/lib.esnext.temporal.d.ts +2 -4
- package/lib/lib.webworker.d.ts +808 -16
- package/lib/typescript.js +2 -1
- 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
|
}
|
|
@@ -10916,6 +11246,7 @@ interface CustomElementRegistry {
|
|
|
10916
11246
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
10917
11247
|
*/
|
|
10918
11248
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11249
|
+
initialize(root: Node): void;
|
|
10919
11250
|
/**
|
|
10920
11251
|
* 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
11252
|
*
|
|
@@ -12913,6 +13244,7 @@ interface DocumentOrShadowRoot {
|
|
|
12913
13244
|
readonly activeElement: Element | null;
|
|
12914
13245
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
12915
13246
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13247
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
12916
13248
|
/**
|
|
12917
13249
|
* Returns document's fullscreen element.
|
|
12918
13250
|
*
|
|
@@ -13222,6 +13554,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13222
13554
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13223
13555
|
*/
|
|
13224
13556
|
readonly currentCSSZoom: number;
|
|
13557
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13225
13558
|
/**
|
|
13226
13559
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13227
13560
|
*
|
|
@@ -14780,6 +15113,76 @@ declare var FragmentDirective: {
|
|
|
14780
15113
|
new(): FragmentDirective;
|
|
14781
15114
|
};
|
|
14782
15115
|
|
|
15116
|
+
/**
|
|
15117
|
+
* 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.
|
|
15118
|
+
* Available only in secure contexts.
|
|
15119
|
+
*
|
|
15120
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
15121
|
+
*/
|
|
15122
|
+
interface GPU {
|
|
15123
|
+
/**
|
|
15124
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
15125
|
+
*
|
|
15126
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
15127
|
+
*/
|
|
15128
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
15129
|
+
/**
|
|
15130
|
+
* 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.
|
|
15131
|
+
*
|
|
15132
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
15133
|
+
*/
|
|
15134
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
15135
|
+
/**
|
|
15136
|
+
* 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.
|
|
15137
|
+
*
|
|
15138
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
15139
|
+
*/
|
|
15140
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
15141
|
+
}
|
|
15142
|
+
|
|
15143
|
+
declare var GPU: {
|
|
15144
|
+
prototype: GPU;
|
|
15145
|
+
new(): GPU;
|
|
15146
|
+
};
|
|
15147
|
+
|
|
15148
|
+
/**
|
|
15149
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15150
|
+
* Available only in secure contexts.
|
|
15151
|
+
*
|
|
15152
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
15153
|
+
*/
|
|
15154
|
+
interface GPUAdapter {
|
|
15155
|
+
/**
|
|
15156
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
15157
|
+
*
|
|
15158
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
15159
|
+
*/
|
|
15160
|
+
readonly features: GPUSupportedFeatures;
|
|
15161
|
+
/**
|
|
15162
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
15163
|
+
*
|
|
15164
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
15165
|
+
*/
|
|
15166
|
+
readonly info: GPUAdapterInfo;
|
|
15167
|
+
/**
|
|
15168
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
15169
|
+
*
|
|
15170
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
15171
|
+
*/
|
|
15172
|
+
readonly limits: GPUSupportedLimits;
|
|
15173
|
+
/**
|
|
15174
|
+
* 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.
|
|
15175
|
+
*
|
|
15176
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
15177
|
+
*/
|
|
15178
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
15179
|
+
}
|
|
15180
|
+
|
|
15181
|
+
declare var GPUAdapter: {
|
|
15182
|
+
prototype: GPUAdapter;
|
|
15183
|
+
new(): GPUAdapter;
|
|
15184
|
+
};
|
|
15185
|
+
|
|
14783
15186
|
/**
|
|
14784
15187
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
14785
15188
|
* Available only in secure contexts.
|
|
@@ -14926,6 +15329,50 @@ declare var GPUBuffer: {
|
|
|
14926
15329
|
new(): GPUBuffer;
|
|
14927
15330
|
};
|
|
14928
15331
|
|
|
15332
|
+
/**
|
|
15333
|
+
* 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".
|
|
15334
|
+
* Available only in secure contexts.
|
|
15335
|
+
*
|
|
15336
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
15337
|
+
*/
|
|
15338
|
+
interface GPUCanvasContext {
|
|
15339
|
+
/**
|
|
15340
|
+
* The **`canvas`** read-only property of the GPUCanvasContext interface returns a reference to the canvas that the context was created from.
|
|
15341
|
+
*
|
|
15342
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas)
|
|
15343
|
+
*/
|
|
15344
|
+
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
15345
|
+
/**
|
|
15346
|
+
* 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.
|
|
15347
|
+
*
|
|
15348
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure)
|
|
15349
|
+
*/
|
|
15350
|
+
configure(configuration: GPUCanvasConfiguration): void;
|
|
15351
|
+
/**
|
|
15352
|
+
* The **`getConfiguration()`** method of the GPUCanvasContext interface returns the current configuration set for the context.
|
|
15353
|
+
*
|
|
15354
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getConfiguration)
|
|
15355
|
+
*/
|
|
15356
|
+
getConfiguration(): GPUCanvasConfiguration | null;
|
|
15357
|
+
/**
|
|
15358
|
+
* The **`getCurrentTexture()`** method of the GPUCanvasContext interface returns the next GPUTexture to be composited to the document by the canvas context.
|
|
15359
|
+
*
|
|
15360
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture)
|
|
15361
|
+
*/
|
|
15362
|
+
getCurrentTexture(): GPUTexture;
|
|
15363
|
+
/**
|
|
15364
|
+
* 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.
|
|
15365
|
+
*
|
|
15366
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure)
|
|
15367
|
+
*/
|
|
15368
|
+
unconfigure(): void;
|
|
15369
|
+
}
|
|
15370
|
+
|
|
15371
|
+
declare var GPUCanvasContext: {
|
|
15372
|
+
prototype: GPUCanvasContext;
|
|
15373
|
+
new(): GPUCanvasContext;
|
|
15374
|
+
};
|
|
15375
|
+
|
|
14929
15376
|
/**
|
|
14930
15377
|
* 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
15378
|
* Available only in secure contexts.
|
|
@@ -14940,6 +15387,75 @@ declare var GPUCommandBuffer: {
|
|
|
14940
15387
|
new(): GPUCommandBuffer;
|
|
14941
15388
|
};
|
|
14942
15389
|
|
|
15390
|
+
/**
|
|
15391
|
+
* The **`GPUCommandEncoder`** interface of the WebGPU API represents an encoder that collects a sequence of GPU commands to be issued to the GPU.
|
|
15392
|
+
* Available only in secure contexts.
|
|
15393
|
+
*
|
|
15394
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
15395
|
+
*/
|
|
15396
|
+
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
15397
|
+
/**
|
|
15398
|
+
* The **`beginComputePass()`** method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.
|
|
15399
|
+
*
|
|
15400
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass)
|
|
15401
|
+
*/
|
|
15402
|
+
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
15403
|
+
/**
|
|
15404
|
+
* The **`beginRenderPass()`** method of the GPUCommandEncoder interface starts encoding a render pass, returning a GPURenderPassEncoder that can be used to control rendering.
|
|
15405
|
+
*
|
|
15406
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass)
|
|
15407
|
+
*/
|
|
15408
|
+
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
15409
|
+
/**
|
|
15410
|
+
* The **`clearBuffer()`** method of the GPUCommandEncoder interface encodes a command that fills a region of a GPUBuffer with zeroes.
|
|
15411
|
+
*
|
|
15412
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer)
|
|
15413
|
+
*/
|
|
15414
|
+
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15415
|
+
/**
|
|
15416
|
+
* The **`copyBufferToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUBuffer to another.
|
|
15417
|
+
*
|
|
15418
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)
|
|
15419
|
+
*/
|
|
15420
|
+
copyBufferToBuffer(source: GPUBuffer, destination: GPUBuffer, size?: GPUSize64): void;
|
|
15421
|
+
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size?: GPUSize64): void;
|
|
15422
|
+
/**
|
|
15423
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
15424
|
+
*
|
|
15425
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
15426
|
+
*/
|
|
15427
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15428
|
+
/**
|
|
15429
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
15430
|
+
*
|
|
15431
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
15432
|
+
*/
|
|
15433
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
15434
|
+
/**
|
|
15435
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
15436
|
+
*
|
|
15437
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
15438
|
+
*/
|
|
15439
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
15440
|
+
/**
|
|
15441
|
+
* The **`finish()`** method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.
|
|
15442
|
+
*
|
|
15443
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish)
|
|
15444
|
+
*/
|
|
15445
|
+
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
15446
|
+
/**
|
|
15447
|
+
* The **`resolveQuerySet()`** method of the GPUCommandEncoder interface encodes a command that resolves a GPUQuerySet, copying the results into a specified GPUBuffer.
|
|
15448
|
+
*
|
|
15449
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet)
|
|
15450
|
+
*/
|
|
15451
|
+
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
15452
|
+
}
|
|
15453
|
+
|
|
15454
|
+
declare var GPUCommandEncoder: {
|
|
15455
|
+
prototype: GPUCommandEncoder;
|
|
15456
|
+
new(): GPUCommandEncoder;
|
|
15457
|
+
};
|
|
15458
|
+
|
|
14943
15459
|
/**
|
|
14944
15460
|
* 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
15461
|
* Available only in secure contexts.
|
|
@@ -15071,6 +15587,168 @@ interface GPUDebugCommandsMixin {
|
|
|
15071
15587
|
pushDebugGroup(groupLabel: string): void;
|
|
15072
15588
|
}
|
|
15073
15589
|
|
|
15590
|
+
interface GPUDeviceEventMap {
|
|
15591
|
+
"uncapturederror": GPUUncapturedErrorEvent;
|
|
15592
|
+
}
|
|
15593
|
+
|
|
15594
|
+
/**
|
|
15595
|
+
* 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.
|
|
15596
|
+
* Available only in secure contexts.
|
|
15597
|
+
*
|
|
15598
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
15599
|
+
*/
|
|
15600
|
+
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
15601
|
+
/**
|
|
15602
|
+
* The **`adapterInfo`** read-only property of the GPUDevice interface returns a GPUAdapterInfo object containing identifying information about the device's originating adapter.
|
|
15603
|
+
*
|
|
15604
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/adapterInfo)
|
|
15605
|
+
*/
|
|
15606
|
+
readonly adapterInfo: GPUAdapterInfo;
|
|
15607
|
+
/**
|
|
15608
|
+
* 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.
|
|
15609
|
+
*
|
|
15610
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features)
|
|
15611
|
+
*/
|
|
15612
|
+
readonly features: GPUSupportedFeatures;
|
|
15613
|
+
/**
|
|
15614
|
+
* 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.
|
|
15615
|
+
*
|
|
15616
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits)
|
|
15617
|
+
*/
|
|
15618
|
+
readonly limits: GPUSupportedLimits;
|
|
15619
|
+
/**
|
|
15620
|
+
* 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.
|
|
15621
|
+
*
|
|
15622
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost)
|
|
15623
|
+
*/
|
|
15624
|
+
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
15625
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/uncapturederror_event) */
|
|
15626
|
+
onuncapturederror: ((this: GPUDevice, ev: GPUUncapturedErrorEvent) => any) | null;
|
|
15627
|
+
/**
|
|
15628
|
+
* The **`queue`** read-only property of the GPUDevice interface returns the primary GPUQueue for the device.
|
|
15629
|
+
*
|
|
15630
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue)
|
|
15631
|
+
*/
|
|
15632
|
+
readonly queue: GPUQueue;
|
|
15633
|
+
/**
|
|
15634
|
+
* 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.
|
|
15635
|
+
*
|
|
15636
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15637
|
+
*/
|
|
15638
|
+
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15639
|
+
/**
|
|
15640
|
+
* 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.
|
|
15641
|
+
*
|
|
15642
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
15643
|
+
*/
|
|
15644
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
15645
|
+
/**
|
|
15646
|
+
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15647
|
+
*
|
|
15648
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer)
|
|
15649
|
+
*/
|
|
15650
|
+
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
15651
|
+
/**
|
|
15652
|
+
* The **`createCommandEncoder()`** method of the GPUDevice interface creates a GPUCommandEncoder, used to encode commands to be issued to the GPU.
|
|
15653
|
+
*
|
|
15654
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder)
|
|
15655
|
+
*/
|
|
15656
|
+
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
15657
|
+
/**
|
|
15658
|
+
* The **`createComputePipeline()`** method of the GPUDevice interface creates a GPUComputePipeline that can control the compute shader stage and be used in a GPUComputePassEncoder.
|
|
15659
|
+
*
|
|
15660
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline)
|
|
15661
|
+
*/
|
|
15662
|
+
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
15663
|
+
/**
|
|
15664
|
+
* 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.
|
|
15665
|
+
*
|
|
15666
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync)
|
|
15667
|
+
*/
|
|
15668
|
+
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
15669
|
+
/**
|
|
15670
|
+
* 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.
|
|
15671
|
+
*
|
|
15672
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout)
|
|
15673
|
+
*/
|
|
15674
|
+
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
15675
|
+
/**
|
|
15676
|
+
* 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.
|
|
15677
|
+
*
|
|
15678
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet)
|
|
15679
|
+
*/
|
|
15680
|
+
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
15681
|
+
/**
|
|
15682
|
+
* 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.
|
|
15683
|
+
*
|
|
15684
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15685
|
+
*/
|
|
15686
|
+
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15687
|
+
/**
|
|
15688
|
+
* 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.
|
|
15689
|
+
*
|
|
15690
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
|
|
15691
|
+
*/
|
|
15692
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
15693
|
+
/**
|
|
15694
|
+
* 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.
|
|
15695
|
+
*
|
|
15696
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
|
|
15697
|
+
*/
|
|
15698
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
15699
|
+
/**
|
|
15700
|
+
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15701
|
+
*
|
|
15702
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler)
|
|
15703
|
+
*/
|
|
15704
|
+
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
15705
|
+
/**
|
|
15706
|
+
* The **`createShaderModule()`** method of the GPUDevice interface creates a GPUShaderModule from a string of WGSL source code.
|
|
15707
|
+
*
|
|
15708
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule)
|
|
15709
|
+
*/
|
|
15710
|
+
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
15711
|
+
/**
|
|
15712
|
+
* 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.
|
|
15713
|
+
*
|
|
15714
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture)
|
|
15715
|
+
*/
|
|
15716
|
+
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
15717
|
+
/**
|
|
15718
|
+
* The **`destroy()`** method of the GPUDevice interface destroys the device, preventing further operations on it.
|
|
15719
|
+
*
|
|
15720
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy)
|
|
15721
|
+
*/
|
|
15722
|
+
destroy(): void;
|
|
15723
|
+
/**
|
|
15724
|
+
* 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.
|
|
15725
|
+
*
|
|
15726
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture)
|
|
15727
|
+
*/
|
|
15728
|
+
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
15729
|
+
/**
|
|
15730
|
+
* 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.
|
|
15731
|
+
*
|
|
15732
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope)
|
|
15733
|
+
*/
|
|
15734
|
+
popErrorScope(): Promise<GPUError | null>;
|
|
15735
|
+
/**
|
|
15736
|
+
* 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.
|
|
15737
|
+
*
|
|
15738
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope)
|
|
15739
|
+
*/
|
|
15740
|
+
pushErrorScope(filter: GPUErrorFilter): void;
|
|
15741
|
+
addEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
15742
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
15743
|
+
removeEventListener<K extends keyof GPUDeviceEventMap>(type: K, listener: (this: GPUDevice, ev: GPUDeviceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
15744
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
15745
|
+
}
|
|
15746
|
+
|
|
15747
|
+
declare var GPUDevice: {
|
|
15748
|
+
prototype: GPUDevice;
|
|
15749
|
+
new(): GPUDevice;
|
|
15750
|
+
};
|
|
15751
|
+
|
|
15074
15752
|
/**
|
|
15075
15753
|
* 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
15754
|
* Available only in secure contexts.
|
|
@@ -15235,6 +15913,50 @@ declare var GPUQuerySet: {
|
|
|
15235
15913
|
new(): GPUQuerySet;
|
|
15236
15914
|
};
|
|
15237
15915
|
|
|
15916
|
+
/**
|
|
15917
|
+
* The **`GPUQueue`** interface of the WebGPU API controls execution of encoded commands on the GPU.
|
|
15918
|
+
* Available only in secure contexts.
|
|
15919
|
+
*
|
|
15920
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
15921
|
+
*/
|
|
15922
|
+
interface GPUQueue extends GPUObjectBase {
|
|
15923
|
+
/**
|
|
15924
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
15925
|
+
*
|
|
15926
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
15927
|
+
*/
|
|
15928
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
15929
|
+
/**
|
|
15930
|
+
* 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.
|
|
15931
|
+
*
|
|
15932
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone)
|
|
15933
|
+
*/
|
|
15934
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
15935
|
+
/**
|
|
15936
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
15937
|
+
*
|
|
15938
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
15939
|
+
*/
|
|
15940
|
+
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
15941
|
+
/**
|
|
15942
|
+
* The **`writeBuffer()`** method of the GPUQueue interface writes a provided data source into a given GPUBuffer.
|
|
15943
|
+
*
|
|
15944
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer)
|
|
15945
|
+
*/
|
|
15946
|
+
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
15947
|
+
/**
|
|
15948
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
15949
|
+
*
|
|
15950
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
15951
|
+
*/
|
|
15952
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
15953
|
+
}
|
|
15954
|
+
|
|
15955
|
+
declare var GPUQueue: {
|
|
15956
|
+
prototype: GPUQueue;
|
|
15957
|
+
new(): GPUQueue;
|
|
15958
|
+
};
|
|
15959
|
+
|
|
15238
15960
|
/**
|
|
15239
15961
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15240
15962
|
* Available only in secure contexts.
|
|
@@ -20597,6 +21319,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
20597
21319
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
20598
21320
|
*/
|
|
20599
21321
|
shadowRootClonable: boolean;
|
|
21322
|
+
shadowRootCustomElementRegistry: string;
|
|
20600
21323
|
/**
|
|
20601
21324
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
20602
21325
|
*
|
|
@@ -24954,11 +25677,17 @@ declare var NavigationHistoryEntry: {
|
|
|
24954
25677
|
};
|
|
24955
25678
|
|
|
24956
25679
|
/**
|
|
24957
|
-
* The **`NavigationPrecommitController`** interface of the Navigation API
|
|
25680
|
+
* The **`NavigationPrecommitController`** interface of the Navigation API is passed as an argument to a navigation precommit handler callback.
|
|
24958
25681
|
*
|
|
24959
25682
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
24960
25683
|
*/
|
|
24961
25684
|
interface NavigationPrecommitController {
|
|
25685
|
+
/**
|
|
25686
|
+
* 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.
|
|
25687
|
+
*
|
|
25688
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
|
|
25689
|
+
*/
|
|
25690
|
+
addHandler(handler: NavigationInterceptHandler): void;
|
|
24962
25691
|
/**
|
|
24963
25692
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
24964
25693
|
*
|
|
@@ -25047,7 +25776,7 @@ declare var NavigationTransition: {
|
|
|
25047
25776
|
*
|
|
25048
25777
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25049
25778
|
*/
|
|
25050
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25779
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25051
25780
|
/**
|
|
25052
25781
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25053
25782
|
* Available only in secure contexts.
|
|
@@ -25212,6 +25941,15 @@ interface NavigatorCookies {
|
|
|
25212
25941
|
readonly cookieEnabled: boolean;
|
|
25213
25942
|
}
|
|
25214
25943
|
|
|
25944
|
+
interface NavigatorGPU {
|
|
25945
|
+
/**
|
|
25946
|
+
* Available only in secure contexts.
|
|
25947
|
+
*
|
|
25948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
25949
|
+
*/
|
|
25950
|
+
readonly gpu: GPU;
|
|
25951
|
+
}
|
|
25952
|
+
|
|
25215
25953
|
interface NavigatorID {
|
|
25216
25954
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25217
25955
|
readonly appCodeName: string;
|
|
@@ -28018,6 +28756,12 @@ declare var PushManager: {
|
|
|
28018
28756
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
28019
28757
|
};
|
|
28020
28758
|
|
|
28759
|
+
/** Available only in secure contexts. */
|
|
28760
|
+
interface PushManagerAttribute {
|
|
28761
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
28762
|
+
readonly pushManager: PushManager;
|
|
28763
|
+
}
|
|
28764
|
+
|
|
28021
28765
|
/**
|
|
28022
28766
|
* 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
28767
|
* Available only in secure contexts.
|
|
@@ -34436,7 +35180,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
34436
35180
|
*
|
|
34437
35181
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
34438
35182
|
*/
|
|
34439
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
35183
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
34440
35184
|
/**
|
|
34441
35185
|
* 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
35186
|
*
|
|
@@ -35985,7 +36729,7 @@ interface TextTrackCueEventMap {
|
|
|
35985
36729
|
}
|
|
35986
36730
|
|
|
35987
36731
|
/**
|
|
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.
|
|
36732
|
+
* 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
36733
|
*
|
|
35990
36734
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
|
|
35991
36735
|
*/
|
|
@@ -37408,7 +38152,7 @@ interface ViewTransition {
|
|
|
37408
38152
|
*
|
|
37409
38153
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/types)
|
|
37410
38154
|
*/
|
|
37411
|
-
types: ViewTransitionTypeSet;
|
|
38155
|
+
readonly types: ViewTransitionTypeSet;
|
|
37412
38156
|
/**
|
|
37413
38157
|
* 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
38158
|
*
|
|
@@ -41774,7 +42518,7 @@ declare namespace WebAssembly {
|
|
|
41774
42518
|
*
|
|
41775
42519
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
41776
42520
|
*/
|
|
41777
|
-
getArg(index: number): any;
|
|
42521
|
+
getArg(exceptionTag: Tag, index: number): any;
|
|
41778
42522
|
/**
|
|
41779
42523
|
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
41780
42524
|
*
|
|
@@ -43426,13 +44170,24 @@ type GLsizei = number;
|
|
|
43426
44170
|
type GLsizeiptr = number;
|
|
43427
44171
|
type GLuint = number;
|
|
43428
44172
|
type GLuint64 = number;
|
|
44173
|
+
type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer | GPUBufferBinding | GPUExternalTexture;
|
|
43429
44174
|
type GPUBufferDynamicOffset = number;
|
|
44175
|
+
type GPUBufferUsageFlags = number;
|
|
43430
44176
|
type GPUColor = number[] | GPUColorDict;
|
|
44177
|
+
type GPUColorWriteFlags = number;
|
|
44178
|
+
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
44179
|
+
type GPUDepthBias = number;
|
|
44180
|
+
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
43431
44181
|
type GPUFlagsConstant = number;
|
|
43432
44182
|
type GPUIndex32 = number;
|
|
43433
44183
|
type GPUIntegerCoordinate = number;
|
|
43434
44184
|
type GPUIntegerCoordinateOut = number;
|
|
43435
44185
|
type GPUMapModeFlags = number;
|
|
44186
|
+
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
44187
|
+
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
44188
|
+
type GPUPipelineConstantValue = number;
|
|
44189
|
+
type GPUSampleMask = number;
|
|
44190
|
+
type GPUShaderStageFlags = number;
|
|
43436
44191
|
type GPUSignedOffset32 = number;
|
|
43437
44192
|
type GPUSize32 = number;
|
|
43438
44193
|
type GPUSize32Out = number;
|
|
@@ -43454,7 +44209,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
|
|
|
43454
44209
|
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
|
|
43455
44210
|
type MutationRecordType = "attributes" | "characterData" | "childList";
|
|
43456
44211
|
type NamedCurve = string;
|
|
43457
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
44212
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43458
44213
|
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
|
|
43459
44214
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
43460
44215
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
|
@@ -43466,7 +44221,7 @@ type RTCRtpSenderTransform = RTCRtpScriptTransform;
|
|
|
43466
44221
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
43467
44222
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
43468
44223
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
43469
|
-
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
44224
|
+
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
|
|
43470
44225
|
type ReportList = Report[];
|
|
43471
44226
|
type RequestInfo = Request | string;
|
|
43472
44227
|
type SanitizerAttribute = string | SanitizerAttributeNamespace;
|
|
@@ -43546,16 +44301,40 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
43546
44301
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
43547
44302
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
43548
44303
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44304
|
+
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44305
|
+
type GPUAutoLayoutMode = "auto";
|
|
44306
|
+
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";
|
|
44307
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44308
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
43549
44309
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44310
|
+
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44311
|
+
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44312
|
+
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
43550
44313
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
44314
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
43551
44315
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44316
|
+
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44317
|
+
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";
|
|
44318
|
+
type GPUFilterMode = "linear" | "nearest";
|
|
44319
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
43552
44320
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44321
|
+
type GPULoadOp = "clear" | "load";
|
|
44322
|
+
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
43553
44323
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44324
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44325
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
43554
44326
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44327
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44328
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44329
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44330
|
+
type GPUStoreOp = "discard" | "store";
|
|
43555
44331
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43556
44332
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43557
44333
|
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";
|
|
44334
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
43558
44335
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44336
|
+
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";
|
|
44337
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
43559
44338
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
43560
44339
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
43561
44340
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|
|
@@ -43845,6 +44624,48 @@ interface GPUBindingCommandsMixin {
|
|
|
43845
44624
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
43846
44625
|
}
|
|
43847
44626
|
|
|
44627
|
+
interface GPUCommandEncoder {
|
|
44628
|
+
/**
|
|
44629
|
+
* The **`copyBufferToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUBuffer to a GPUTexture.
|
|
44630
|
+
*
|
|
44631
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)
|
|
44632
|
+
*/
|
|
44633
|
+
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44634
|
+
/**
|
|
44635
|
+
* The **`copyTextureToBuffer()`** method of the GPUCommandEncoder interface encodes a command that copies data from a GPUTexture to a GPUBuffer.
|
|
44636
|
+
*
|
|
44637
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)
|
|
44638
|
+
*/
|
|
44639
|
+
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44640
|
+
/**
|
|
44641
|
+
* The **`copyTextureToTexture()`** method of the GPUCommandEncoder interface encodes a command that copies data from one GPUTexture to another.
|
|
44642
|
+
*
|
|
44643
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)
|
|
44644
|
+
*/
|
|
44645
|
+
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44646
|
+
}
|
|
44647
|
+
|
|
44648
|
+
interface GPUQueue {
|
|
44649
|
+
/**
|
|
44650
|
+
* The **`copyExternalImageToTexture()`** method of the GPUQueue interface copies a snapshot taken from a source image, video, or canvas into a given GPUTexture.
|
|
44651
|
+
*
|
|
44652
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture)
|
|
44653
|
+
*/
|
|
44654
|
+
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: Iterable<GPUIntegerCoordinate>): void;
|
|
44655
|
+
/**
|
|
44656
|
+
* The **`submit()`** method of the GPUQueue interface schedules the execution of command buffers represented by one or more GPUCommandBuffer objects by the GPU.
|
|
44657
|
+
*
|
|
44658
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit)
|
|
44659
|
+
*/
|
|
44660
|
+
submit(commandBuffers: Iterable<GPUCommandBuffer>): void;
|
|
44661
|
+
/**
|
|
44662
|
+
* The **`writeTexture()`** method of the GPUQueue interface writes a provided data source into a given GPUTexture.
|
|
44663
|
+
*
|
|
44664
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture)
|
|
44665
|
+
*/
|
|
44666
|
+
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: Iterable<GPUIntegerCoordinate>): void;
|
|
44667
|
+
}
|
|
44668
|
+
|
|
43848
44669
|
interface GPURenderPassEncoder {
|
|
43849
44670
|
/**
|
|
43850
44671
|
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|