@types/web 0.0.335 → 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 +156 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +156 -1
- package/ts5.6/index.d.ts +156 -1
- package/ts5.9/index.d.ts +156 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.336 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.336.
|
package/index.d.ts
CHANGED
|
@@ -818,6 +818,20 @@ interface GPUBindGroupEntry {
|
|
|
818
818
|
resource: GPUBindingResource;
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
+
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
822
|
+
entries: GPUBindGroupLayoutEntry[];
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
interface GPUBindGroupLayoutEntry {
|
|
826
|
+
binding: GPUIndex32;
|
|
827
|
+
buffer?: GPUBufferBindingLayout;
|
|
828
|
+
externalTexture?: GPUExternalTextureBindingLayout;
|
|
829
|
+
sampler?: GPUSamplerBindingLayout;
|
|
830
|
+
storageTexture?: GPUStorageTextureBindingLayout;
|
|
831
|
+
texture?: GPUTextureBindingLayout;
|
|
832
|
+
visibility: GPUShaderStageFlags;
|
|
833
|
+
}
|
|
834
|
+
|
|
821
835
|
interface GPUBlendComponent {
|
|
822
836
|
dstFactor?: GPUBlendFactor;
|
|
823
837
|
operation?: GPUBlendOperation;
|
|
@@ -835,6 +849,12 @@ interface GPUBufferBinding {
|
|
|
835
849
|
size?: GPUSize64;
|
|
836
850
|
}
|
|
837
851
|
|
|
852
|
+
interface GPUBufferBindingLayout {
|
|
853
|
+
hasDynamicOffset?: boolean;
|
|
854
|
+
minBindingSize?: GPUSize64;
|
|
855
|
+
type?: GPUBufferBindingType;
|
|
856
|
+
}
|
|
857
|
+
|
|
838
858
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
839
859
|
mappedAtCreation?: boolean;
|
|
840
860
|
size: GPUSize64;
|
|
@@ -912,12 +932,21 @@ interface GPUDepthStencilState {
|
|
|
912
932
|
stencilWriteMask?: GPUStencilValue;
|
|
913
933
|
}
|
|
914
934
|
|
|
935
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
936
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
937
|
+
requiredFeatures?: GPUFeatureName[];
|
|
938
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
939
|
+
}
|
|
940
|
+
|
|
915
941
|
interface GPUExtent3DDict {
|
|
916
942
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
917
943
|
height?: GPUIntegerCoordinate;
|
|
918
944
|
width: GPUIntegerCoordinate;
|
|
919
945
|
}
|
|
920
946
|
|
|
947
|
+
interface GPUExternalTextureBindingLayout {
|
|
948
|
+
}
|
|
949
|
+
|
|
921
950
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
922
951
|
colorSpace?: PredefinedColorSpace;
|
|
923
952
|
source: HTMLVideoElement | VideoFrame;
|
|
@@ -979,6 +1008,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
979
1008
|
type: GPUQueryType;
|
|
980
1009
|
}
|
|
981
1010
|
|
|
1011
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
1012
|
+
}
|
|
1013
|
+
|
|
982
1014
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
983
1015
|
}
|
|
984
1016
|
|
|
@@ -1036,6 +1068,15 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
|
1036
1068
|
vertex: GPUVertexState;
|
|
1037
1069
|
}
|
|
1038
1070
|
|
|
1071
|
+
interface GPURequestAdapterOptions {
|
|
1072
|
+
forceFallbackAdapter?: boolean;
|
|
1073
|
+
powerPreference?: GPUPowerPreference;
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
interface GPUSamplerBindingLayout {
|
|
1077
|
+
type?: GPUSamplerBindingType;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1039
1080
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
1040
1081
|
addressModeU?: GPUAddressMode;
|
|
1041
1082
|
addressModeV?: GPUAddressMode;
|
|
@@ -1060,6 +1101,12 @@ interface GPUStencilFaceState {
|
|
|
1060
1101
|
passOp?: GPUStencilOperation;
|
|
1061
1102
|
}
|
|
1062
1103
|
|
|
1104
|
+
interface GPUStorageTextureBindingLayout {
|
|
1105
|
+
access?: GPUStorageTextureAccess;
|
|
1106
|
+
format: GPUTextureFormat;
|
|
1107
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1063
1110
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
1064
1111
|
buffer: GPUBuffer;
|
|
1065
1112
|
}
|
|
@@ -1077,6 +1124,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
1077
1124
|
texture: GPUTexture;
|
|
1078
1125
|
}
|
|
1079
1126
|
|
|
1127
|
+
interface GPUTextureBindingLayout {
|
|
1128
|
+
multisampled?: boolean;
|
|
1129
|
+
sampleType?: GPUTextureSampleType;
|
|
1130
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1080
1133
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1081
1134
|
dimension?: GPUTextureDimension;
|
|
1082
1135
|
format: GPUTextureFormat;
|
|
@@ -11180,6 +11233,7 @@ interface CustomElementRegistry {
|
|
|
11180
11233
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
11181
11234
|
*/
|
|
11182
11235
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11236
|
+
initialize(root: Node): void;
|
|
11183
11237
|
/**
|
|
11184
11238
|
* 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.
|
|
11185
11239
|
*
|
|
@@ -13177,6 +13231,7 @@ interface DocumentOrShadowRoot {
|
|
|
13177
13231
|
readonly activeElement: Element | null;
|
|
13178
13232
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
13179
13233
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13234
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13180
13235
|
/**
|
|
13181
13236
|
* Returns document's fullscreen element.
|
|
13182
13237
|
*
|
|
@@ -13486,6 +13541,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13486
13541
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13487
13542
|
*/
|
|
13488
13543
|
readonly currentCSSZoom: number;
|
|
13544
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13489
13545
|
/**
|
|
13490
13546
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13491
13547
|
*
|
|
@@ -15044,6 +15100,76 @@ declare var FragmentDirective: {
|
|
|
15044
15100
|
new(): FragmentDirective;
|
|
15045
15101
|
};
|
|
15046
15102
|
|
|
15103
|
+
/**
|
|
15104
|
+
* 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.
|
|
15105
|
+
* Available only in secure contexts.
|
|
15106
|
+
*
|
|
15107
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
15108
|
+
*/
|
|
15109
|
+
interface GPU {
|
|
15110
|
+
/**
|
|
15111
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
15112
|
+
*
|
|
15113
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
15114
|
+
*/
|
|
15115
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
15116
|
+
/**
|
|
15117
|
+
* 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.
|
|
15118
|
+
*
|
|
15119
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
15120
|
+
*/
|
|
15121
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
15122
|
+
/**
|
|
15123
|
+
* 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.
|
|
15124
|
+
*
|
|
15125
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
15126
|
+
*/
|
|
15127
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
15128
|
+
}
|
|
15129
|
+
|
|
15130
|
+
declare var GPU: {
|
|
15131
|
+
prototype: GPU;
|
|
15132
|
+
new(): GPU;
|
|
15133
|
+
};
|
|
15134
|
+
|
|
15135
|
+
/**
|
|
15136
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15137
|
+
* Available only in secure contexts.
|
|
15138
|
+
*
|
|
15139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
15140
|
+
*/
|
|
15141
|
+
interface GPUAdapter {
|
|
15142
|
+
/**
|
|
15143
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
15144
|
+
*
|
|
15145
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
15146
|
+
*/
|
|
15147
|
+
readonly features: GPUSupportedFeatures;
|
|
15148
|
+
/**
|
|
15149
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
15150
|
+
*
|
|
15151
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
15152
|
+
*/
|
|
15153
|
+
readonly info: GPUAdapterInfo;
|
|
15154
|
+
/**
|
|
15155
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
15156
|
+
*
|
|
15157
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
15158
|
+
*/
|
|
15159
|
+
readonly limits: GPUSupportedLimits;
|
|
15160
|
+
/**
|
|
15161
|
+
* 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.
|
|
15162
|
+
*
|
|
15163
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
15164
|
+
*/
|
|
15165
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
15166
|
+
}
|
|
15167
|
+
|
|
15168
|
+
declare var GPUAdapter: {
|
|
15169
|
+
prototype: GPUAdapter;
|
|
15170
|
+
new(): GPUAdapter;
|
|
15171
|
+
};
|
|
15172
|
+
|
|
15047
15173
|
/**
|
|
15048
15174
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
15049
15175
|
* Available only in secure contexts.
|
|
@@ -15497,6 +15623,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15497
15623
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15498
15624
|
*/
|
|
15499
15625
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15626
|
+
/**
|
|
15627
|
+
* 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.
|
|
15628
|
+
*
|
|
15629
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
15630
|
+
*/
|
|
15631
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
15500
15632
|
/**
|
|
15501
15633
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15502
15634
|
*
|
|
@@ -21174,6 +21306,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
21174
21306
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
21175
21307
|
*/
|
|
21176
21308
|
shadowRootClonable: boolean;
|
|
21309
|
+
shadowRootCustomElementRegistry: string;
|
|
21177
21310
|
/**
|
|
21178
21311
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
21179
21312
|
*
|
|
@@ -25536,6 +25669,12 @@ declare var NavigationHistoryEntry: {
|
|
|
25536
25669
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
25537
25670
|
*/
|
|
25538
25671
|
interface NavigationPrecommitController {
|
|
25672
|
+
/**
|
|
25673
|
+
* 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.
|
|
25674
|
+
*
|
|
25675
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
|
|
25676
|
+
*/
|
|
25677
|
+
addHandler(handler: NavigationInterceptHandler): void;
|
|
25539
25678
|
/**
|
|
25540
25679
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
25541
25680
|
*
|
|
@@ -25624,7 +25763,7 @@ declare var NavigationTransition: {
|
|
|
25624
25763
|
*
|
|
25625
25764
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25626
25765
|
*/
|
|
25627
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25766
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25628
25767
|
/**
|
|
25629
25768
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25630
25769
|
* Available only in secure contexts.
|
|
@@ -25789,6 +25928,15 @@ interface NavigatorCookies {
|
|
|
25789
25928
|
readonly cookieEnabled: boolean;
|
|
25790
25929
|
}
|
|
25791
25930
|
|
|
25931
|
+
interface NavigatorGPU {
|
|
25932
|
+
/**
|
|
25933
|
+
* Available only in secure contexts.
|
|
25934
|
+
*
|
|
25935
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
25936
|
+
*/
|
|
25937
|
+
readonly gpu: GPU;
|
|
25938
|
+
}
|
|
25939
|
+
|
|
25792
25940
|
interface NavigatorID {
|
|
25793
25941
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25794
25942
|
readonly appCodeName: string;
|
|
@@ -44026,6 +44174,7 @@ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
|
44026
44174
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
44027
44175
|
type GPUPipelineConstantValue = number;
|
|
44028
44176
|
type GPUSampleMask = number;
|
|
44177
|
+
type GPUShaderStageFlags = number;
|
|
44029
44178
|
type GPUSignedOffset32 = number;
|
|
44030
44179
|
type GPUSize32 = number;
|
|
44031
44180
|
type GPUSize32Out = number;
|
|
@@ -44143,6 +44292,7 @@ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
|
44143
44292
|
type GPUAutoLayoutMode = "auto";
|
|
44144
44293
|
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";
|
|
44145
44294
|
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44295
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
44146
44296
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44147
44297
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44148
44298
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
@@ -44151,19 +44301,24 @@ type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
|
44151
44301
|
type GPUCullMode = "back" | "front" | "none";
|
|
44152
44302
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44153
44303
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44304
|
+
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";
|
|
44154
44305
|
type GPUFilterMode = "linear" | "nearest";
|
|
44155
44306
|
type GPUFrontFace = "ccw" | "cw";
|
|
44156
44307
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44157
44308
|
type GPULoadOp = "clear" | "load";
|
|
44158
44309
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
44159
44310
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44311
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44160
44312
|
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
44161
44313
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44314
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44162
44315
|
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44316
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44163
44317
|
type GPUStoreOp = "discard" | "store";
|
|
44164
44318
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
44165
44319
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
44166
44320
|
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";
|
|
44321
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
44167
44322
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44168
44323
|
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";
|
|
44169
44324
|
type GPUVertexStepMode = "instance" | "vertex";
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -815,6 +815,20 @@ 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
|
+
|
|
818
832
|
interface GPUBlendComponent {
|
|
819
833
|
dstFactor?: GPUBlendFactor;
|
|
820
834
|
operation?: GPUBlendOperation;
|
|
@@ -832,6 +846,12 @@ interface GPUBufferBinding {
|
|
|
832
846
|
size?: GPUSize64;
|
|
833
847
|
}
|
|
834
848
|
|
|
849
|
+
interface GPUBufferBindingLayout {
|
|
850
|
+
hasDynamicOffset?: boolean;
|
|
851
|
+
minBindingSize?: GPUSize64;
|
|
852
|
+
type?: GPUBufferBindingType;
|
|
853
|
+
}
|
|
854
|
+
|
|
835
855
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
836
856
|
mappedAtCreation?: boolean;
|
|
837
857
|
size: GPUSize64;
|
|
@@ -909,12 +929,21 @@ interface GPUDepthStencilState {
|
|
|
909
929
|
stencilWriteMask?: GPUStencilValue;
|
|
910
930
|
}
|
|
911
931
|
|
|
932
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
933
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
934
|
+
requiredFeatures?: GPUFeatureName[];
|
|
935
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
936
|
+
}
|
|
937
|
+
|
|
912
938
|
interface GPUExtent3DDict {
|
|
913
939
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
914
940
|
height?: GPUIntegerCoordinate;
|
|
915
941
|
width: GPUIntegerCoordinate;
|
|
916
942
|
}
|
|
917
943
|
|
|
944
|
+
interface GPUExternalTextureBindingLayout {
|
|
945
|
+
}
|
|
946
|
+
|
|
918
947
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
919
948
|
colorSpace?: PredefinedColorSpace;
|
|
920
949
|
source: HTMLVideoElement | VideoFrame;
|
|
@@ -976,6 +1005,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
976
1005
|
type: GPUQueryType;
|
|
977
1006
|
}
|
|
978
1007
|
|
|
1008
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
1009
|
+
}
|
|
1010
|
+
|
|
979
1011
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
980
1012
|
}
|
|
981
1013
|
|
|
@@ -1033,6 +1065,15 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
|
1033
1065
|
vertex: GPUVertexState;
|
|
1034
1066
|
}
|
|
1035
1067
|
|
|
1068
|
+
interface GPURequestAdapterOptions {
|
|
1069
|
+
forceFallbackAdapter?: boolean;
|
|
1070
|
+
powerPreference?: GPUPowerPreference;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface GPUSamplerBindingLayout {
|
|
1074
|
+
type?: GPUSamplerBindingType;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1036
1077
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
1037
1078
|
addressModeU?: GPUAddressMode;
|
|
1038
1079
|
addressModeV?: GPUAddressMode;
|
|
@@ -1057,6 +1098,12 @@ interface GPUStencilFaceState {
|
|
|
1057
1098
|
passOp?: GPUStencilOperation;
|
|
1058
1099
|
}
|
|
1059
1100
|
|
|
1101
|
+
interface GPUStorageTextureBindingLayout {
|
|
1102
|
+
access?: GPUStorageTextureAccess;
|
|
1103
|
+
format: GPUTextureFormat;
|
|
1104
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1060
1107
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
1061
1108
|
buffer: GPUBuffer;
|
|
1062
1109
|
}
|
|
@@ -1074,6 +1121,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
1074
1121
|
texture: GPUTexture;
|
|
1075
1122
|
}
|
|
1076
1123
|
|
|
1124
|
+
interface GPUTextureBindingLayout {
|
|
1125
|
+
multisampled?: boolean;
|
|
1126
|
+
sampleType?: GPUTextureSampleType;
|
|
1127
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1077
1130
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1078
1131
|
dimension?: GPUTextureDimension;
|
|
1079
1132
|
format: GPUTextureFormat;
|
|
@@ -11169,6 +11222,7 @@ interface CustomElementRegistry {
|
|
|
11169
11222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
11170
11223
|
*/
|
|
11171
11224
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11225
|
+
initialize(root: Node): void;
|
|
11172
11226
|
/**
|
|
11173
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.
|
|
11174
11228
|
*
|
|
@@ -13166,6 +13220,7 @@ interface DocumentOrShadowRoot {
|
|
|
13166
13220
|
readonly activeElement: Element | null;
|
|
13167
13221
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
13168
13222
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13223
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13169
13224
|
/**
|
|
13170
13225
|
* Returns document's fullscreen element.
|
|
13171
13226
|
*
|
|
@@ -13474,6 +13529,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13474
13529
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13475
13530
|
*/
|
|
13476
13531
|
readonly currentCSSZoom: number;
|
|
13532
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13477
13533
|
/**
|
|
13478
13534
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13479
13535
|
*
|
|
@@ -15030,6 +15086,76 @@ declare var FragmentDirective: {
|
|
|
15030
15086
|
new(): FragmentDirective;
|
|
15031
15087
|
};
|
|
15032
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
|
+
|
|
15033
15159
|
/**
|
|
15034
15160
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
15035
15161
|
* Available only in secure contexts.
|
|
@@ -15483,6 +15609,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15483
15609
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15484
15610
|
*/
|
|
15485
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;
|
|
15486
15618
|
/**
|
|
15487
15619
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15488
15620
|
*
|
|
@@ -21150,6 +21282,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
21150
21282
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
21151
21283
|
*/
|
|
21152
21284
|
shadowRootClonable: boolean;
|
|
21285
|
+
shadowRootCustomElementRegistry: string;
|
|
21153
21286
|
/**
|
|
21154
21287
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
21155
21288
|
*
|
|
@@ -25512,6 +25645,12 @@ declare var NavigationHistoryEntry: {
|
|
|
25512
25645
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
25513
25646
|
*/
|
|
25514
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;
|
|
25515
25654
|
/**
|
|
25516
25655
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
25517
25656
|
*
|
|
@@ -25600,7 +25739,7 @@ declare var NavigationTransition: {
|
|
|
25600
25739
|
*
|
|
25601
25740
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25602
25741
|
*/
|
|
25603
|
-
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 {
|
|
25604
25743
|
/**
|
|
25605
25744
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25606
25745
|
* Available only in secure contexts.
|
|
@@ -25765,6 +25904,15 @@ interface NavigatorCookies {
|
|
|
25765
25904
|
readonly cookieEnabled: boolean;
|
|
25766
25905
|
}
|
|
25767
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
|
+
|
|
25768
25916
|
interface NavigatorID {
|
|
25769
25917
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25770
25918
|
readonly appCodeName: string;
|
|
@@ -44000,6 +44148,7 @@ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
|
44000
44148
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
44001
44149
|
type GPUPipelineConstantValue = number;
|
|
44002
44150
|
type GPUSampleMask = number;
|
|
44151
|
+
type GPUShaderStageFlags = number;
|
|
44003
44152
|
type GPUSignedOffset32 = number;
|
|
44004
44153
|
type GPUSize32 = number;
|
|
44005
44154
|
type GPUSize32Out = number;
|
|
@@ -44117,6 +44266,7 @@ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
|
44117
44266
|
type GPUAutoLayoutMode = "auto";
|
|
44118
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";
|
|
44119
44268
|
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44269
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
44120
44270
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44121
44271
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44122
44272
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
@@ -44125,19 +44275,24 @@ type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
|
44125
44275
|
type GPUCullMode = "back" | "front" | "none";
|
|
44126
44276
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44127
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";
|
|
44128
44279
|
type GPUFilterMode = "linear" | "nearest";
|
|
44129
44280
|
type GPUFrontFace = "ccw" | "cw";
|
|
44130
44281
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44131
44282
|
type GPULoadOp = "clear" | "load";
|
|
44132
44283
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
44133
44284
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44285
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44134
44286
|
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
44135
44287
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44288
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44136
44289
|
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44290
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44137
44291
|
type GPUStoreOp = "discard" | "store";
|
|
44138
44292
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
44139
44293
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
44140
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";
|
|
44141
44296
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44142
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";
|
|
44143
44298
|
type GPUVertexStepMode = "instance" | "vertex";
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -815,6 +815,20 @@ 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
|
+
|
|
818
832
|
interface GPUBlendComponent {
|
|
819
833
|
dstFactor?: GPUBlendFactor;
|
|
820
834
|
operation?: GPUBlendOperation;
|
|
@@ -832,6 +846,12 @@ interface GPUBufferBinding {
|
|
|
832
846
|
size?: GPUSize64;
|
|
833
847
|
}
|
|
834
848
|
|
|
849
|
+
interface GPUBufferBindingLayout {
|
|
850
|
+
hasDynamicOffset?: boolean;
|
|
851
|
+
minBindingSize?: GPUSize64;
|
|
852
|
+
type?: GPUBufferBindingType;
|
|
853
|
+
}
|
|
854
|
+
|
|
835
855
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
836
856
|
mappedAtCreation?: boolean;
|
|
837
857
|
size: GPUSize64;
|
|
@@ -909,12 +929,21 @@ interface GPUDepthStencilState {
|
|
|
909
929
|
stencilWriteMask?: GPUStencilValue;
|
|
910
930
|
}
|
|
911
931
|
|
|
932
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
933
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
934
|
+
requiredFeatures?: GPUFeatureName[];
|
|
935
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
936
|
+
}
|
|
937
|
+
|
|
912
938
|
interface GPUExtent3DDict {
|
|
913
939
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
914
940
|
height?: GPUIntegerCoordinate;
|
|
915
941
|
width: GPUIntegerCoordinate;
|
|
916
942
|
}
|
|
917
943
|
|
|
944
|
+
interface GPUExternalTextureBindingLayout {
|
|
945
|
+
}
|
|
946
|
+
|
|
918
947
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
919
948
|
colorSpace?: PredefinedColorSpace;
|
|
920
949
|
source: HTMLVideoElement | VideoFrame;
|
|
@@ -976,6 +1005,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
976
1005
|
type: GPUQueryType;
|
|
977
1006
|
}
|
|
978
1007
|
|
|
1008
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
1009
|
+
}
|
|
1010
|
+
|
|
979
1011
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
980
1012
|
}
|
|
981
1013
|
|
|
@@ -1033,6 +1065,15 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
|
1033
1065
|
vertex: GPUVertexState;
|
|
1034
1066
|
}
|
|
1035
1067
|
|
|
1068
|
+
interface GPURequestAdapterOptions {
|
|
1069
|
+
forceFallbackAdapter?: boolean;
|
|
1070
|
+
powerPreference?: GPUPowerPreference;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface GPUSamplerBindingLayout {
|
|
1074
|
+
type?: GPUSamplerBindingType;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1036
1077
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
1037
1078
|
addressModeU?: GPUAddressMode;
|
|
1038
1079
|
addressModeV?: GPUAddressMode;
|
|
@@ -1057,6 +1098,12 @@ interface GPUStencilFaceState {
|
|
|
1057
1098
|
passOp?: GPUStencilOperation;
|
|
1058
1099
|
}
|
|
1059
1100
|
|
|
1101
|
+
interface GPUStorageTextureBindingLayout {
|
|
1102
|
+
access?: GPUStorageTextureAccess;
|
|
1103
|
+
format: GPUTextureFormat;
|
|
1104
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1060
1107
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
1061
1108
|
buffer: GPUBuffer;
|
|
1062
1109
|
}
|
|
@@ -1074,6 +1121,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
1074
1121
|
texture: GPUTexture;
|
|
1075
1122
|
}
|
|
1076
1123
|
|
|
1124
|
+
interface GPUTextureBindingLayout {
|
|
1125
|
+
multisampled?: boolean;
|
|
1126
|
+
sampleType?: GPUTextureSampleType;
|
|
1127
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1077
1130
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1078
1131
|
dimension?: GPUTextureDimension;
|
|
1079
1132
|
format: GPUTextureFormat;
|
|
@@ -11177,6 +11230,7 @@ interface CustomElementRegistry {
|
|
|
11177
11230
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
11178
11231
|
*/
|
|
11179
11232
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11233
|
+
initialize(root: Node): void;
|
|
11180
11234
|
/**
|
|
11181
11235
|
* 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.
|
|
11182
11236
|
*
|
|
@@ -13174,6 +13228,7 @@ interface DocumentOrShadowRoot {
|
|
|
13174
13228
|
readonly activeElement: Element | null;
|
|
13175
13229
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
13176
13230
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13231
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13177
13232
|
/**
|
|
13178
13233
|
* Returns document's fullscreen element.
|
|
13179
13234
|
*
|
|
@@ -13483,6 +13538,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13483
13538
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13484
13539
|
*/
|
|
13485
13540
|
readonly currentCSSZoom: number;
|
|
13541
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13486
13542
|
/**
|
|
13487
13543
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13488
13544
|
*
|
|
@@ -15041,6 +15097,76 @@ declare var FragmentDirective: {
|
|
|
15041
15097
|
new(): FragmentDirective;
|
|
15042
15098
|
};
|
|
15043
15099
|
|
|
15100
|
+
/**
|
|
15101
|
+
* 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.
|
|
15102
|
+
* Available only in secure contexts.
|
|
15103
|
+
*
|
|
15104
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
15105
|
+
*/
|
|
15106
|
+
interface GPU {
|
|
15107
|
+
/**
|
|
15108
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
15109
|
+
*
|
|
15110
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
15111
|
+
*/
|
|
15112
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
15113
|
+
/**
|
|
15114
|
+
* 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.
|
|
15115
|
+
*
|
|
15116
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
15117
|
+
*/
|
|
15118
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
15119
|
+
/**
|
|
15120
|
+
* 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.
|
|
15121
|
+
*
|
|
15122
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
15123
|
+
*/
|
|
15124
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
15125
|
+
}
|
|
15126
|
+
|
|
15127
|
+
declare var GPU: {
|
|
15128
|
+
prototype: GPU;
|
|
15129
|
+
new(): GPU;
|
|
15130
|
+
};
|
|
15131
|
+
|
|
15132
|
+
/**
|
|
15133
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15134
|
+
* Available only in secure contexts.
|
|
15135
|
+
*
|
|
15136
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
15137
|
+
*/
|
|
15138
|
+
interface GPUAdapter {
|
|
15139
|
+
/**
|
|
15140
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
15141
|
+
*
|
|
15142
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
15143
|
+
*/
|
|
15144
|
+
readonly features: GPUSupportedFeatures;
|
|
15145
|
+
/**
|
|
15146
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
15147
|
+
*
|
|
15148
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
15149
|
+
*/
|
|
15150
|
+
readonly info: GPUAdapterInfo;
|
|
15151
|
+
/**
|
|
15152
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
15153
|
+
*
|
|
15154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
15155
|
+
*/
|
|
15156
|
+
readonly limits: GPUSupportedLimits;
|
|
15157
|
+
/**
|
|
15158
|
+
* 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.
|
|
15159
|
+
*
|
|
15160
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
15161
|
+
*/
|
|
15162
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
15163
|
+
}
|
|
15164
|
+
|
|
15165
|
+
declare var GPUAdapter: {
|
|
15166
|
+
prototype: GPUAdapter;
|
|
15167
|
+
new(): GPUAdapter;
|
|
15168
|
+
};
|
|
15169
|
+
|
|
15044
15170
|
/**
|
|
15045
15171
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
15046
15172
|
* Available only in secure contexts.
|
|
@@ -15494,6 +15620,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15494
15620
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15495
15621
|
*/
|
|
15496
15622
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15623
|
+
/**
|
|
15624
|
+
* 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.
|
|
15625
|
+
*
|
|
15626
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
15627
|
+
*/
|
|
15628
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
15497
15629
|
/**
|
|
15498
15630
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15499
15631
|
*
|
|
@@ -21171,6 +21303,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
21171
21303
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
21172
21304
|
*/
|
|
21173
21305
|
shadowRootClonable: boolean;
|
|
21306
|
+
shadowRootCustomElementRegistry: string;
|
|
21174
21307
|
/**
|
|
21175
21308
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
21176
21309
|
*
|
|
@@ -25533,6 +25666,12 @@ declare var NavigationHistoryEntry: {
|
|
|
25533
25666
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
25534
25667
|
*/
|
|
25535
25668
|
interface NavigationPrecommitController {
|
|
25669
|
+
/**
|
|
25670
|
+
* 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.
|
|
25671
|
+
*
|
|
25672
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
|
|
25673
|
+
*/
|
|
25674
|
+
addHandler(handler: NavigationInterceptHandler): void;
|
|
25536
25675
|
/**
|
|
25537
25676
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
25538
25677
|
*
|
|
@@ -25621,7 +25760,7 @@ declare var NavigationTransition: {
|
|
|
25621
25760
|
*
|
|
25622
25761
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25623
25762
|
*/
|
|
25624
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25763
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25625
25764
|
/**
|
|
25626
25765
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25627
25766
|
* Available only in secure contexts.
|
|
@@ -25786,6 +25925,15 @@ interface NavigatorCookies {
|
|
|
25786
25925
|
readonly cookieEnabled: boolean;
|
|
25787
25926
|
}
|
|
25788
25927
|
|
|
25928
|
+
interface NavigatorGPU {
|
|
25929
|
+
/**
|
|
25930
|
+
* Available only in secure contexts.
|
|
25931
|
+
*
|
|
25932
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
25933
|
+
*/
|
|
25934
|
+
readonly gpu: GPU;
|
|
25935
|
+
}
|
|
25936
|
+
|
|
25789
25937
|
interface NavigatorID {
|
|
25790
25938
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25791
25939
|
readonly appCodeName: string;
|
|
@@ -44023,6 +44171,7 @@ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
|
44023
44171
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
44024
44172
|
type GPUPipelineConstantValue = number;
|
|
44025
44173
|
type GPUSampleMask = number;
|
|
44174
|
+
type GPUShaderStageFlags = number;
|
|
44026
44175
|
type GPUSignedOffset32 = number;
|
|
44027
44176
|
type GPUSize32 = number;
|
|
44028
44177
|
type GPUSize32Out = number;
|
|
@@ -44140,6 +44289,7 @@ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
|
44140
44289
|
type GPUAutoLayoutMode = "auto";
|
|
44141
44290
|
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";
|
|
44142
44291
|
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44292
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
44143
44293
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44144
44294
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44145
44295
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
@@ -44148,19 +44298,24 @@ type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
|
44148
44298
|
type GPUCullMode = "back" | "front" | "none";
|
|
44149
44299
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44150
44300
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44301
|
+
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";
|
|
44151
44302
|
type GPUFilterMode = "linear" | "nearest";
|
|
44152
44303
|
type GPUFrontFace = "ccw" | "cw";
|
|
44153
44304
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44154
44305
|
type GPULoadOp = "clear" | "load";
|
|
44155
44306
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
44156
44307
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44308
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44157
44309
|
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
44158
44310
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44311
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44159
44312
|
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44313
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44160
44314
|
type GPUStoreOp = "discard" | "store";
|
|
44161
44315
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
44162
44316
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
44163
44317
|
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";
|
|
44318
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
44164
44319
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44165
44320
|
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";
|
|
44166
44321
|
type GPUVertexStepMode = "instance" | "vertex";
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -815,6 +815,20 @@ 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
|
+
|
|
818
832
|
interface GPUBlendComponent {
|
|
819
833
|
dstFactor?: GPUBlendFactor;
|
|
820
834
|
operation?: GPUBlendOperation;
|
|
@@ -832,6 +846,12 @@ interface GPUBufferBinding {
|
|
|
832
846
|
size?: GPUSize64;
|
|
833
847
|
}
|
|
834
848
|
|
|
849
|
+
interface GPUBufferBindingLayout {
|
|
850
|
+
hasDynamicOffset?: boolean;
|
|
851
|
+
minBindingSize?: GPUSize64;
|
|
852
|
+
type?: GPUBufferBindingType;
|
|
853
|
+
}
|
|
854
|
+
|
|
835
855
|
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
836
856
|
mappedAtCreation?: boolean;
|
|
837
857
|
size: GPUSize64;
|
|
@@ -909,12 +929,21 @@ interface GPUDepthStencilState {
|
|
|
909
929
|
stencilWriteMask?: GPUStencilValue;
|
|
910
930
|
}
|
|
911
931
|
|
|
932
|
+
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
933
|
+
defaultQueue?: GPUQueueDescriptor;
|
|
934
|
+
requiredFeatures?: GPUFeatureName[];
|
|
935
|
+
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
936
|
+
}
|
|
937
|
+
|
|
912
938
|
interface GPUExtent3DDict {
|
|
913
939
|
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
914
940
|
height?: GPUIntegerCoordinate;
|
|
915
941
|
width: GPUIntegerCoordinate;
|
|
916
942
|
}
|
|
917
943
|
|
|
944
|
+
interface GPUExternalTextureBindingLayout {
|
|
945
|
+
}
|
|
946
|
+
|
|
918
947
|
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
919
948
|
colorSpace?: PredefinedColorSpace;
|
|
920
949
|
source: HTMLVideoElement | VideoFrame;
|
|
@@ -976,6 +1005,9 @@ interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
|
976
1005
|
type: GPUQueryType;
|
|
977
1006
|
}
|
|
978
1007
|
|
|
1008
|
+
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
1009
|
+
}
|
|
1010
|
+
|
|
979
1011
|
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
980
1012
|
}
|
|
981
1013
|
|
|
@@ -1033,6 +1065,15 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
|
1033
1065
|
vertex: GPUVertexState;
|
|
1034
1066
|
}
|
|
1035
1067
|
|
|
1068
|
+
interface GPURequestAdapterOptions {
|
|
1069
|
+
forceFallbackAdapter?: boolean;
|
|
1070
|
+
powerPreference?: GPUPowerPreference;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
interface GPUSamplerBindingLayout {
|
|
1074
|
+
type?: GPUSamplerBindingType;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1036
1077
|
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
1037
1078
|
addressModeU?: GPUAddressMode;
|
|
1038
1079
|
addressModeV?: GPUAddressMode;
|
|
@@ -1057,6 +1098,12 @@ interface GPUStencilFaceState {
|
|
|
1057
1098
|
passOp?: GPUStencilOperation;
|
|
1058
1099
|
}
|
|
1059
1100
|
|
|
1101
|
+
interface GPUStorageTextureBindingLayout {
|
|
1102
|
+
access?: GPUStorageTextureAccess;
|
|
1103
|
+
format: GPUTextureFormat;
|
|
1104
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1060
1107
|
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
1061
1108
|
buffer: GPUBuffer;
|
|
1062
1109
|
}
|
|
@@ -1074,6 +1121,12 @@ interface GPUTexelCopyTextureInfo {
|
|
|
1074
1121
|
texture: GPUTexture;
|
|
1075
1122
|
}
|
|
1076
1123
|
|
|
1124
|
+
interface GPUTextureBindingLayout {
|
|
1125
|
+
multisampled?: boolean;
|
|
1126
|
+
sampleType?: GPUTextureSampleType;
|
|
1127
|
+
viewDimension?: GPUTextureViewDimension;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1077
1130
|
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
1078
1131
|
dimension?: GPUTextureDimension;
|
|
1079
1132
|
format: GPUTextureFormat;
|
|
@@ -11177,6 +11230,7 @@ interface CustomElementRegistry {
|
|
|
11177
11230
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
|
|
11178
11231
|
*/
|
|
11179
11232
|
getName(constructor: CustomElementConstructor): string | null;
|
|
11233
|
+
initialize(root: Node): void;
|
|
11180
11234
|
/**
|
|
11181
11235
|
* 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.
|
|
11182
11236
|
*
|
|
@@ -13174,6 +13228,7 @@ interface DocumentOrShadowRoot {
|
|
|
13174
13228
|
readonly activeElement: Element | null;
|
|
13175
13229
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
|
|
13176
13230
|
adoptedStyleSheets: CSSStyleSheet[];
|
|
13231
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13177
13232
|
/**
|
|
13178
13233
|
* Returns document's fullscreen element.
|
|
13179
13234
|
*
|
|
@@ -13483,6 +13538,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTyp
|
|
|
13483
13538
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
|
|
13484
13539
|
*/
|
|
13485
13540
|
readonly currentCSSZoom: number;
|
|
13541
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
13486
13542
|
/**
|
|
13487
13543
|
* The **`id`** property of the Element interface represents the element's identifier, reflecting the id global attribute.
|
|
13488
13544
|
*
|
|
@@ -15041,6 +15097,76 @@ declare var FragmentDirective: {
|
|
|
15041
15097
|
new(): FragmentDirective;
|
|
15042
15098
|
};
|
|
15043
15099
|
|
|
15100
|
+
/**
|
|
15101
|
+
* 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.
|
|
15102
|
+
* Available only in secure contexts.
|
|
15103
|
+
*
|
|
15104
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
15105
|
+
*/
|
|
15106
|
+
interface GPU {
|
|
15107
|
+
/**
|
|
15108
|
+
* The **`wgslLanguageFeatures`** read-only property of the GPU interface returns a WGSLLanguageFeatures object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
15109
|
+
*
|
|
15110
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures)
|
|
15111
|
+
*/
|
|
15112
|
+
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
15113
|
+
/**
|
|
15114
|
+
* 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.
|
|
15115
|
+
*
|
|
15116
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat)
|
|
15117
|
+
*/
|
|
15118
|
+
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
15119
|
+
/**
|
|
15120
|
+
* 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.
|
|
15121
|
+
*
|
|
15122
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter)
|
|
15123
|
+
*/
|
|
15124
|
+
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
15125
|
+
}
|
|
15126
|
+
|
|
15127
|
+
declare var GPU: {
|
|
15128
|
+
prototype: GPU;
|
|
15129
|
+
new(): GPU;
|
|
15130
|
+
};
|
|
15131
|
+
|
|
15132
|
+
/**
|
|
15133
|
+
* The **`GPUAdapter`** interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits.
|
|
15134
|
+
* Available only in secure contexts.
|
|
15135
|
+
*
|
|
15136
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
15137
|
+
*/
|
|
15138
|
+
interface GPUAdapter {
|
|
15139
|
+
/**
|
|
15140
|
+
* The **`features`** read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.
|
|
15141
|
+
*
|
|
15142
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features)
|
|
15143
|
+
*/
|
|
15144
|
+
readonly features: GPUSupportedFeatures;
|
|
15145
|
+
/**
|
|
15146
|
+
* The **`info`** read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.
|
|
15147
|
+
*
|
|
15148
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info)
|
|
15149
|
+
*/
|
|
15150
|
+
readonly info: GPUAdapterInfo;
|
|
15151
|
+
/**
|
|
15152
|
+
* The **`limits`** read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.
|
|
15153
|
+
*
|
|
15154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits)
|
|
15155
|
+
*/
|
|
15156
|
+
readonly limits: GPUSupportedLimits;
|
|
15157
|
+
/**
|
|
15158
|
+
* 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.
|
|
15159
|
+
*
|
|
15160
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice)
|
|
15161
|
+
*/
|
|
15162
|
+
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
15163
|
+
}
|
|
15164
|
+
|
|
15165
|
+
declare var GPUAdapter: {
|
|
15166
|
+
prototype: GPUAdapter;
|
|
15167
|
+
new(): GPUAdapter;
|
|
15168
|
+
};
|
|
15169
|
+
|
|
15044
15170
|
/**
|
|
15045
15171
|
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
15046
15172
|
* Available only in secure contexts.
|
|
@@ -15494,6 +15620,12 @@ interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
|
15494
15620
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup)
|
|
15495
15621
|
*/
|
|
15496
15622
|
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
15623
|
+
/**
|
|
15624
|
+
* 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.
|
|
15625
|
+
*
|
|
15626
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout)
|
|
15627
|
+
*/
|
|
15628
|
+
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
15497
15629
|
/**
|
|
15498
15630
|
* The **`createBuffer()`** method of the GPUDevice interface creates a GPUBuffer in which to store raw data to use in GPU operations.
|
|
15499
15631
|
*
|
|
@@ -21171,6 +21303,7 @@ interface HTMLTemplateElement extends HTMLElement {
|
|
|
21171
21303
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
|
|
21172
21304
|
*/
|
|
21173
21305
|
shadowRootClonable: boolean;
|
|
21306
|
+
shadowRootCustomElementRegistry: string;
|
|
21174
21307
|
/**
|
|
21175
21308
|
* The **`shadowRootDelegatesFocus`** property of the HTMLTemplateElement interface reflects the value of the shadowrootdelegatesfocus attribute of the associated <template> element.
|
|
21176
21309
|
*
|
|
@@ -25533,6 +25666,12 @@ declare var NavigationHistoryEntry: {
|
|
|
25533
25666
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController)
|
|
25534
25667
|
*/
|
|
25535
25668
|
interface NavigationPrecommitController {
|
|
25669
|
+
/**
|
|
25670
|
+
* 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.
|
|
25671
|
+
*
|
|
25672
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPrecommitController/addHandler)
|
|
25673
|
+
*/
|
|
25674
|
+
addHandler(handler: NavigationInterceptHandler): void;
|
|
25536
25675
|
/**
|
|
25537
25676
|
* The **`redirect()`** method of the NavigationPrecommitController interface redirects the browser to a specified URL and specifies history behavior and any desired state information.
|
|
25538
25677
|
*
|
|
@@ -25621,7 +25760,7 @@ declare var NavigationTransition: {
|
|
|
25621
25760
|
*
|
|
25622
25761
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
|
|
25623
25762
|
*/
|
|
25624
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25763
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
25625
25764
|
/**
|
|
25626
25765
|
* The **`clipboard`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
|
|
25627
25766
|
* Available only in secure contexts.
|
|
@@ -25786,6 +25925,15 @@ interface NavigatorCookies {
|
|
|
25786
25925
|
readonly cookieEnabled: boolean;
|
|
25787
25926
|
}
|
|
25788
25927
|
|
|
25928
|
+
interface NavigatorGPU {
|
|
25929
|
+
/**
|
|
25930
|
+
* Available only in secure contexts.
|
|
25931
|
+
*
|
|
25932
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
25933
|
+
*/
|
|
25934
|
+
readonly gpu: GPU;
|
|
25935
|
+
}
|
|
25936
|
+
|
|
25789
25937
|
interface NavigatorID {
|
|
25790
25938
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName) */
|
|
25791
25939
|
readonly appCodeName: string;
|
|
@@ -44023,6 +44171,7 @@ type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
|
44023
44171
|
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
44024
44172
|
type GPUPipelineConstantValue = number;
|
|
44025
44173
|
type GPUSampleMask = number;
|
|
44174
|
+
type GPUShaderStageFlags = number;
|
|
44026
44175
|
type GPUSignedOffset32 = number;
|
|
44027
44176
|
type GPUSize32 = number;
|
|
44028
44177
|
type GPUSize32Out = number;
|
|
@@ -44140,6 +44289,7 @@ type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
|
44140
44289
|
type GPUAutoLayoutMode = "auto";
|
|
44141
44290
|
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";
|
|
44142
44291
|
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
44292
|
+
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
44143
44293
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
44144
44294
|
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
44145
44295
|
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
@@ -44148,19 +44298,24 @@ type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
|
44148
44298
|
type GPUCullMode = "back" | "front" | "none";
|
|
44149
44299
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
44150
44300
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
44301
|
+
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";
|
|
44151
44302
|
type GPUFilterMode = "linear" | "nearest";
|
|
44152
44303
|
type GPUFrontFace = "ccw" | "cw";
|
|
44153
44304
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
44154
44305
|
type GPULoadOp = "clear" | "load";
|
|
44155
44306
|
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
44156
44307
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
44308
|
+
type GPUPowerPreference = "high-performance" | "low-power";
|
|
44157
44309
|
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
44158
44310
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
44311
|
+
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
44159
44312
|
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
44313
|
+
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
44160
44314
|
type GPUStoreOp = "discard" | "store";
|
|
44161
44315
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
44162
44316
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
44163
44317
|
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";
|
|
44318
|
+
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
44164
44319
|
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
44165
44320
|
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";
|
|
44166
44321
|
type GPUVertexStepMode = "instance" | "vertex";
|