@types/web 0.0.334 → 0.0.336
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +258 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +258 -1
- package/ts5.6/index.d.ts +258 -1
- package/ts5.9/index.d.ts +258 -1
package/ts5.5/index.d.ts
CHANGED
|
@@ -815,12 +815,43 @@ interface GPUBindGroupEntry {
|
|
|
815
815
|
resource: GPUBindingResource;
|
|
816
816
|
}
|
|
817
817
|
|
|
818
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
819
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
interface GPUBindGroupLayoutEntry {
|
|
823
|
+
binding: GPUIndex32;
|
|
824
|
+
buffer?: GPUBufferBindingLayout;
|
|
825
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
826
|
+
sampler?: GPUSamplerBindingLayout;
|
|
827
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
828
|
+
texture?: GPUTextureBindingLayout;
|
|
829
|
+
visibility: GPUShaderStageFlags;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
interface GPUBlendComponent {
|
|
833
|
+
dstFactor?: GPUBlendFactor;
|
|
834
|
+
operation?: GPUBlendOperation;
|
|
835
|
+
srcFactor?: GPUBlendFactor;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
interface GPUBlendState {
|
|
839
|
+
alpha: GPUBlendComponent;
|
|
840
|
+
color: GPUBlendComponent;
|
|
841
|
+
}
|
|
842
|
+
|
|
818
843
|
interface GPUBufferBinding {
|
|
819
844
|
buffer: GPUBuffer;
|
|
820
845
|
offset?: GPUSize64;
|
|
821
846
|
size?: GPUSize64;
|
|
822
847
|
}
|
|
823
848
|
|
|
849
|
+
interface GPUBufferBindingLayout {
|
|
850
|
+
hasDynamicOffset?: boolean;
|
|
851
|
+
minBindingSize?: GPUSize64;
|
|
852
|
+
type?: GPUBufferBindingType;
|
|
853
|
+
}
|
|
854
|
+
|
|
824
855
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
825
856
|
mappedAtCreation?: boolean;
|
|
826
857
|
size: GPUSize64;
|
|
@@ -848,6 +879,12 @@ interface GPUColorDict {
|
|
|
848
879
|
r: number;
|
|
849
880
|
}
|
|
850
881
|
|
|
882
|
+
interface GPUColorTargetState {
|
|
883
|
+
blend?: GPUBlendState;
|
|
884
|
+
format: GPUTextureFormat;
|
|
885
|
+
writeMask?: GPUColorWriteFlags;
|
|
886
|
+
}
|
|
887
|
+
|
|
851
888
|
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
852
889
|
}
|
|
853
890
|
|
|
@@ -879,17 +916,49 @@ interface GPUCopyExternalImageSourceInfo {
|
|
|
879
916
|
source: GPUCopyExternalImageSource;
|
|
880
917
|
}
|
|
881
918
|
|
|
919
|
+
interface GPUDepthStencilState {
|
|
920
|
+
depthBias?: GPUDepthBias;
|
|
921
|
+
depthBiasClamp?: number;
|
|
922
|
+
depthBiasSlopeScale?: number;
|
|
923
|
+
depthCompare?: GPUCompareFunction;
|
|
924
|
+
depthWriteEnabled?: boolean;
|
|
925
|
+
format: GPUTextureFormat;
|
|
926
|
+
stencilBack?: GPUStencilFaceState;
|
|
927
|
+
stencilFront?: GPUStencilFaceState;
|
|
928
|
+
stencilReadMask?: GPUStencilValue;
|
|
929
|
+
stencilWriteMask?: GPUStencilValue;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
933
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
934
|
+
requiredFeatures?: GPUFeatureName[];
|
|
935
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
936
|
+
}
|
|
937
|
+
|
|
882
938
|
interface GPUExtent3DDict {
|
|
883
939
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
884
940
|
height?: GPUIntegerCoordinate;
|
|
885
941
|
width: GPUIntegerCoordinate;
|
|
886
942
|
}
|
|
887
943
|
|
|
944
|
+
interface GPUExternalTextureBindingLayout {
|
|
945
|
+
}
|
|
946
|
+
|
|
888
947
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
889
948
|
colorSpace?: PredefinedColorSpace;
|
|
890
949
|
source: HTMLVideoElement | VideoFrame;
|
|
891
950
|
}
|
|
892
951
|
|
|
952
|
+
interface GPUFragmentState extends GPUProgrammableStage {
|
|
953
|
+
targets: (GPUColorTargetState | null)[];
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
interface GPUMultisampleState {
|
|
957
|
+
alphaToCoverageEnabled?: boolean;
|
|
958
|
+
count?: GPUSize32;
|
|
959
|
+
mask?: GPUSampleMask;
|
|
960
|
+
}
|
|
961
|
+
|
|
893
962
|
interface GPUObjectDescriptorBase {
|
|
894
963
|
label?: string;
|
|
895
964
|
}
|
|
@@ -917,6 +986,14 @@ interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
|
917
986
|
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
918
987
|
}
|
|
919
988
|
|
|
989
|
+
interface GPUPrimitiveState {
|
|
990
|
+
cullMode?: GPUCullMode;
|
|
991
|
+
frontFace?: GPUFrontFace;
|
|
992
|
+
stripIndexFormat?: GPUIndexFormat;
|
|
993
|
+
topology?: GPUPrimitiveTopology;
|
|
994
|
+
unclippedDepth?: boolean;
|
|
995
|
+
}
|
|
996
|
+
|
|
920
997
|
interface GPUProgrammableStage {
|
|
921
998
|
constants?: Record<string, GPUPipelineConstantValue>;
|
|
922
999
|
entryPoint?: string;
|
|
@@ -928,6 +1005,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
928
1005
|
type: GPUQueryType;
|
|
929
1006
|
}
|
|
930
1007
|
|
|
1008
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
1009
|
+
}
|
|
1010
|
+
|
|
931
1011
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
932
1012
|
}
|
|
933
1013
|
|
|
@@ -977,6 +1057,23 @@ interface GPURenderPassTimestampWrites {
|
|
|
977
1057
|
querySet: GPUQuerySet;
|
|
978
1058
|
}
|
|
979
1059
|
|
|
1060
|
+
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
1061
|
+
depthStencil?: GPUDepthStencilState;
|
|
1062
|
+
fragment?: GPUFragmentState;
|
|
1063
|
+
multisample?: GPUMultisampleState;
|
|
1064
|
+
primitive?: GPUPrimitiveState;
|
|
1065
|
+
vertex: GPUVertexState;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
interface GPURequestAdapterOptions {
|
|
1069
|
+
forceFallbackAdapter?: boolean;
|
|
1070
|
+
powerPreference?: GPUPowerPreference;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface GPUSamplerBindingLayout {
|
|
1074
|
+
type?: GPUSamplerBindingType;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
980
1077
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
981
1078
|
addressModeU?: GPUAddressMode;
|
|
982
1079
|
addressModeV?: GPUAddressMode;
|
|
@@ -994,6 +1091,19 @@ interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
|
994
1091
|
code: string;
|
|
995
1092
|
}
|
|
996
1093
|
|
|
1094
|
+
interface GPUStencilFaceState {
|
|
1095
|
+
compare?: GPUCompareFunction;
|
|
1096
|
+
depthFailOp?: GPUStencilOperation;
|
|
1097
|
+
failOp?: GPUStencilOperation;
|
|
1098
|
+
passOp?: GPUStencilOperation;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
interface GPUStorageTextureBindingLayout {
|
|
1102
|
+
access?: GPUStorageTextureAccess;
|
|
1103
|
+
format: GPUTextureFormat;
|
|
1104
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
997
1107
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
998
1108
|
buffer: GPUBuffer;
|
|
999
1109
|
}
|
|
@@ -1011,6 +1121,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
1011
1121
|
texture: GPUTexture;
|
|
1012
1122
|
}
|
|
1013
1123
|
|
|
1124
|
+
interface GPUTextureBindingLayout {
|
|
1125
|
+
multisampled?: boolean;
|
|
1126
|
+
sampleType?: GPUTextureSampleType;
|
|
1127
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1014
1130
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1015
1131
|
dimension?: GPUTextureDimension;
|
|
1016
1132
|
format: GPUTextureFormat;
|
|
@@ -1036,6 +1152,22 @@ interface GPUUncapturedErrorEventInit extends EventInit {
|
|
|
1036
1152
|
error: GPUError;
|
|
1037
1153
|
}
|
|
1038
1154
|
|
|
1155
|
+
interface GPUVertexAttribute {
|
|
1156
|
+
format: GPUVertexFormat;
|
|
1157
|
+
offset: GPUSize64;
|
|
1158
|
+
shaderLocation: GPUIndex32;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
interface GPUVertexBufferLayout {
|
|
1162
|
+
arrayStride: GPUSize64;
|
|
1163
|
+
attributes: GPUVertexAttribute[];
|
|
1164
|
+
stepMode?: GPUVertexStepMode;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
interface GPUVertexState extends GPUProgrammableStage {
|
|
1168
|
+
buffers?: (GPUVertexBufferLayout | null)[];
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1039
1171
|
interface GainOptions extends AudioNodeOptions {
|
|
1040
1172
|
gain?: number;
|
|
1041
1173
|
}
|
|
@@ -11090,6 +11222,7 @@ interface CustomElementRegistry {
|
|
|
11090
11222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
11091
11223
|
*/
|
|
11092
11224
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11225
|
+
initialize(root: Node): void;
|
|
11093
11226
|
/**
|
|
11094
11227
|
* 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.
|
|
11095
11228
|
*
|
|
@@ -13087,6 +13220,7 @@ interface DocumentOrShadowRoot {
|
|
|
13087
13220
|
readonly activeElement: Element | null;
|
|
13088
13221
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
13089
13222
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13223
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13090
13224
|
/**
|
|
13091
13225
|
* Returns document's fullscreen element.
|
|
13092
13226
|
*
|
|
@@ -13395,6 +13529,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13395
13529
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13396
13530
|
*/
|
|
13397
13531
|
readonly currentCSSZoom: number;
|
|
13532
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13398
13533
|
/**
|
|
13399
13534
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13400
13535
|
*
|
|
@@ -14951,6 +15086,76 @@ declare var FragmentDirective: {
|
|
|
14951
15086
|
new(): FragmentDirective;
|
|
14952
15087
|
};
|
|
14953
15088
|
|
|
15089
|
+
/**
|
|
15090
|
+
* 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.
|
|
15091
|
+
* Available only in secure contexts.
|
|
15092
|
+
*
|
|
15093
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
15094
|
+
*/
|
|
15095
|
+
interface GPU {
|
|
15096
|
+
/**
|
|
15097
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
15098
|
+
*
|
|
15099
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
15100
|
+
*/
|
|
15101
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
15102
|
+
/**
|
|
15103
|
+
* 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.
|
|
15104
|
+
*
|
|
15105
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
15106
|
+
*/
|
|
15107
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
15108
|
+
/**
|
|
15109
|
+
* 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.
|
|
15110
|
+
*
|
|
15111
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
15112
|
+
*/
|
|
15113
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
15114
|
+
}
|
|
15115
|
+
|
|
15116
|
+
declare var GPU: {
|
|
15117
|
+
prototype: GPU;
|
|
15118
|
+
new(): GPU;
|
|
15119
|
+
};
|
|
15120
|
+
|
|
15121
|
+
/**
|
|
15122
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15123
|
+
* Available only in secure contexts.
|
|
15124
|
+
*
|
|
15125
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
15126
|
+
*/
|
|
15127
|
+
interface GPUAdapter {
|
|
15128
|
+
/**
|
|
15129
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
15130
|
+
*
|
|
15131
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
15132
|
+
*/
|
|
15133
|
+
readonly features: GPUSupportedFeatures;
|
|
15134
|
+
/**
|
|
15135
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
15136
|
+
*
|
|
15137
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
15138
|
+
*/
|
|
15139
|
+
readonly info: GPUAdapterInfo;
|
|
15140
|
+
/**
|
|
15141
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
15142
|
+
*
|
|
15143
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
15144
|
+
*/
|
|
15145
|
+
readonly limits: GPUSupportedLimits;
|
|
15146
|
+
/**
|
|
15147
|
+
* 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.
|
|
15148
|
+
*
|
|
15149
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
15150
|
+
*/
|
|
15151
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
15152
|
+
}
|
|
15153
|
+
|
|
15154
|
+
declare var GPUAdapter: {
|
|
15155
|
+
prototype: GPUAdapter;
|
|
15156
|
+
new(): GPUAdapter;
|
|
15157
|
+
};
|
|
15158
|
+
|
|
14954
15159
|
/**
|
|
14955
15160
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
14956
15161
|
* Available only in secure contexts.
|
|
@@ -15404,6 +15609,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15404
15609
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15405
15610
|
*/
|
|
15406
15611
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15612
|
+
/**
|
|
15613
|
+
* 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.
|
|
15614
|
+
*
|
|
15615
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
15616
|
+
*/
|
|
15617
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
15407
15618
|
/**
|
|
15408
15619
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15409
15620
|
*
|
|
@@ -15446,6 +15657,18 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15446
15657
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder)
|
|
15447
15658
|
*/
|
|
15448
15659
|
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
15660
|
+
/**
|
|
15661
|
+
* 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.
|
|
15662
|
+
*
|
|
15663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline)
|
|
15664
|
+
*/
|
|
15665
|
+
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
15666
|
+
/**
|
|
15667
|
+
* 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.
|
|
15668
|
+
*
|
|
15669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync)
|
|
15670
|
+
*/
|
|
15671
|
+
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
15449
15672
|
/**
|
|
15450
15673
|
* The **`createSampler()`** method of the GPUDevice interface creates a GPUSampler, which controls how shaders transform and filter texture resource data.
|
|
15451
15674
|
*
|
|
@@ -21059,6 +21282,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
21059
21282
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
21060
21283
|
*/
|
|
21061
21284
|
shadowRootClonable: boolean;
|
|
21285
|
+
shadowRootCustomElementRegistry: string;
|
|
21062
21286
|
/**
|
|
21063
21287
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
21064
21288
|
*
|
|
@@ -25421,6 +25645,12 @@ declare var NavigationHistoryEntry: {
|
|
|
25421
25645
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
25422
25646
|
*/
|
|
25423
25647
|
interface NavigationPrecommitController {
|
|
25648
|
+
/**
|
|
25649
|
+
* 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.
|
|
25650
|
+
*
|
|
25651
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
|
|
25652
|
+
*/
|
|
25653
|
+
addHandler(handler: NavigationInterceptHandler): void;
|
|
25424
25654
|
/**
|
|
25425
25655
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
25426
25656
|
*
|
|
@@ -25509,7 +25739,7 @@ declare var NavigationTransition: {
|
|
|
25509
25739
|
*
|
|
25510
25740
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25511
25741
|
*/
|
|
25512
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25742
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25513
25743
|
/**
|
|
25514
25744
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25515
25745
|
* Available only in secure contexts.
|
|
@@ -25674,6 +25904,15 @@ interface NavigatorCookies {
|
|
|
25674
25904
|
readonly cookieEnabled: boolean;
|
|
25675
25905
|
}
|
|
25676
25906
|
|
|
25907
|
+
interface NavigatorGPU {
|
|
25908
|
+
/**
|
|
25909
|
+
* Available only in secure contexts.
|
|
25910
|
+
*
|
|
25911
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
25912
|
+
*/
|
|
25913
|
+
readonly gpu: GPU;
|
|
25914
|
+
}
|
|
25915
|
+
|
|
25677
25916
|
interface NavigatorID {
|
|
25678
25917
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25679
25918
|
readonly appCodeName: string;
|
|
@@ -43896,7 +44135,9 @@ type GPUBindingResource = GPUSampler | GPUTexture | GPUTextureView | GPUBuffer |
|
|
|
43896
44135
|
type GPUBufferDynamicOffset = number;
|
|
43897
44136
|
type GPUBufferUsageFlags = number;
|
|
43898
44137
|
type GPUColor = number[] | GPUColorDict;
|
|
44138
|
+
type GPUColorWriteFlags = number;
|
|
43899
44139
|
type GPUCopyExternalImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLVideoElement | VideoFrame | HTMLCanvasElement | OffscreenCanvas;
|
|
44140
|
+
type GPUDepthBias = number;
|
|
43900
44141
|
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
43901
44142
|
type GPUFlagsConstant = number;
|
|
43902
44143
|
type GPUIndex32 = number;
|
|
@@ -43906,6 +44147,8 @@ type GPUMapModeFlags = number;
|
|
|
43906
44147
|
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
43907
44148
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
43908
44149
|
type GPUPipelineConstantValue = number;
|
|
44150
|
+
type GPUSampleMask = number;
|
|
44151
|
+
type GPUShaderStageFlags = number;
|
|
43909
44152
|
type GPUSignedOffset32 = number;
|
|
43910
44153
|
type GPUSize32 = number;
|
|
43911
44154
|
type GPUSize32Out = number;
|
|
@@ -44021,24 +44264,38 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
44021
44264
|
type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
44022
44265
|
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
44023
44266
|
type GPUAutoLayoutMode = "auto";
|
|
44267
|
+
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";
|
|
44268
|
+
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44269
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
44024
44270
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44025
44271
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44026
44272
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
44027
44273
|
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
44028
44274
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
44275
|
+
type GPUCullMode = "back" | "front" | "none";
|
|
44029
44276
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44030
44277
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44278
|
+
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";
|
|
44031
44279
|
type GPUFilterMode = "linear" | "nearest";
|
|
44280
|
+
type GPUFrontFace = "ccw" | "cw";
|
|
44032
44281
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44033
44282
|
type GPULoadOp = "clear" | "load";
|
|
44034
44283
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
44035
44284
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44285
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44286
|
+
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
44036
44287
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44288
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44289
|
+
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44290
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44037
44291
|
type GPUStoreOp = "discard" | "store";
|
|
44038
44292
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
44039
44293
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
44040
44294
|
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";
|
|
44295
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
44041
44296
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44297
|
+
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";
|
|
44298
|
+
type GPUVertexStepMode = "instance" | "vertex";
|
|
44042
44299
|
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
|
|
44043
44300
|
type GamepadHapticsResult = "complete" | "preempted";
|
|
44044
44301
|
type GamepadMappingType = "" | "standard" | "xr-standard";
|