@types/web 0.0.320 → 0.0.322
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 +226 -3
- package/package.json +1 -1
- package/ts5.5/index.d.ts +206 -3
- package/ts5.5/iterable.d.ts +20 -0
- package/ts5.6/index.d.ts +206 -3
- package/ts5.6/iterable.d.ts +20 -0
- package/ts5.9/index.d.ts +206 -3
- package/ts5.9/iterable.d.ts +20 -0
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.322 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.322.
|
package/index.d.ts
CHANGED
|
@@ -808,6 +808,13 @@ interface FullscreenOptions {
|
|
|
808
808
|
navigationUI?: FullscreenNavigationUI;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
|
+
interface GPUColorDict {
|
|
812
|
+
a: number;
|
|
813
|
+
b: number;
|
|
814
|
+
g: number;
|
|
815
|
+
r: number;
|
|
816
|
+
}
|
|
817
|
+
|
|
811
818
|
interface GPUObjectDescriptorBase {
|
|
812
819
|
label?: string;
|
|
813
820
|
}
|
|
@@ -816,6 +823,9 @@ interface GPUPipelineErrorInit {
|
|
|
816
823
|
reason: GPUPipelineErrorReason;
|
|
817
824
|
}
|
|
818
825
|
|
|
826
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
827
|
+
}
|
|
828
|
+
|
|
819
829
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
820
830
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
821
831
|
aspect?: GPUTextureAspect;
|
|
@@ -3100,7 +3110,7 @@ interface AbstractRange {
|
|
|
3100
3110
|
*/
|
|
3101
3111
|
readonly endOffset: number;
|
|
3102
3112
|
/**
|
|
3103
|
-
* The read-only **`startContainer`** property of the AbstractRange interface returns the
|
|
3113
|
+
* The read-only **`startContainer`** property of the AbstractRange interface returns the Node in which the start of the range is located.
|
|
3104
3114
|
*
|
|
3105
3115
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
|
|
3106
3116
|
*/
|
|
@@ -8388,7 +8398,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8388
8398
|
*/
|
|
8389
8399
|
scrollMarginTop: string;
|
|
8390
8400
|
/**
|
|
8391
|
-
* The scroll-padding shorthand property sets scroll padding on all sides of an element at once
|
|
8401
|
+
* The scroll-padding shorthand property sets scroll padding on all sides of an element at once. It specifies offsets that define the optimal viewing region of a scrollport within a scroll container.
|
|
8392
8402
|
*
|
|
8393
8403
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/scroll-padding)
|
|
8394
8404
|
*/
|
|
@@ -14785,6 +14795,12 @@ declare var GPUBindGroupLayout: {
|
|
|
14785
14795
|
new(): GPUBindGroupLayout;
|
|
14786
14796
|
};
|
|
14787
14797
|
|
|
14798
|
+
interface GPUBindingCommandsMixin {
|
|
14799
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14800
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14801
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array<ArrayBufferLike>, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
14802
|
+
}
|
|
14803
|
+
|
|
14788
14804
|
/**
|
|
14789
14805
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
14790
14806
|
* Available only in secure contexts.
|
|
@@ -14925,6 +14941,44 @@ declare var GPUCompilationMessage: {
|
|
|
14925
14941
|
new(): GPUCompilationMessage;
|
|
14926
14942
|
};
|
|
14927
14943
|
|
|
14944
|
+
/**
|
|
14945
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
14946
|
+
* Available only in secure contexts.
|
|
14947
|
+
*
|
|
14948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
14949
|
+
*/
|
|
14950
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
14951
|
+
/**
|
|
14952
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14953
|
+
*
|
|
14954
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
14955
|
+
*/
|
|
14956
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
14957
|
+
/**
|
|
14958
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14959
|
+
*
|
|
14960
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
14961
|
+
*/
|
|
14962
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
14963
|
+
/**
|
|
14964
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
14965
|
+
*
|
|
14966
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
14967
|
+
*/
|
|
14968
|
+
end(): void;
|
|
14969
|
+
/**
|
|
14970
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
14971
|
+
*
|
|
14972
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
14973
|
+
*/
|
|
14974
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
14975
|
+
}
|
|
14976
|
+
|
|
14977
|
+
declare var GPUComputePassEncoder: {
|
|
14978
|
+
prototype: GPUComputePassEncoder;
|
|
14979
|
+
new(): GPUComputePassEncoder;
|
|
14980
|
+
};
|
|
14981
|
+
|
|
14928
14982
|
/**
|
|
14929
14983
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14930
14984
|
* Available only in secure contexts.
|
|
@@ -14939,6 +14993,15 @@ declare var GPUComputePipeline: {
|
|
|
14939
14993
|
new(): GPUComputePipeline;
|
|
14940
14994
|
};
|
|
14941
14995
|
|
|
14996
|
+
interface GPUDebugCommandsMixin {
|
|
14997
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
14998
|
+
insertDebugMarker(markerLabel: string): void;
|
|
14999
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
15000
|
+
popDebugGroup(): void;
|
|
15001
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
15002
|
+
pushDebugGroup(groupLabel: string): void;
|
|
15003
|
+
}
|
|
15004
|
+
|
|
14942
15005
|
/**
|
|
14943
15006
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
14944
15007
|
* Available only in secure contexts.
|
|
@@ -15071,6 +15134,38 @@ declare var GPUPipelineLayout: {
|
|
|
15071
15134
|
new(): GPUPipelineLayout;
|
|
15072
15135
|
};
|
|
15073
15136
|
|
|
15137
|
+
/**
|
|
15138
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
15139
|
+
* Available only in secure contexts.
|
|
15140
|
+
*
|
|
15141
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
15142
|
+
*/
|
|
15143
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
15144
|
+
/**
|
|
15145
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
15146
|
+
*
|
|
15147
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
15148
|
+
*/
|
|
15149
|
+
readonly count: GPUSize32Out;
|
|
15150
|
+
/**
|
|
15151
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
15152
|
+
*
|
|
15153
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
15154
|
+
*/
|
|
15155
|
+
readonly type: GPUQueryType;
|
|
15156
|
+
/**
|
|
15157
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
15158
|
+
*
|
|
15159
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
15160
|
+
*/
|
|
15161
|
+
destroy(): void;
|
|
15162
|
+
}
|
|
15163
|
+
|
|
15164
|
+
declare var GPUQuerySet: {
|
|
15165
|
+
prototype: GPUQuerySet;
|
|
15166
|
+
new(): GPUQuerySet;
|
|
15167
|
+
};
|
|
15168
|
+
|
|
15074
15169
|
/**
|
|
15075
15170
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15076
15171
|
* Available only in secure contexts.
|
|
@@ -15085,6 +15180,105 @@ declare var GPURenderBundle: {
|
|
|
15085
15180
|
new(): GPURenderBundle;
|
|
15086
15181
|
};
|
|
15087
15182
|
|
|
15183
|
+
/**
|
|
15184
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
15185
|
+
* Available only in secure contexts.
|
|
15186
|
+
*
|
|
15187
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
15188
|
+
*/
|
|
15189
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15190
|
+
/**
|
|
15191
|
+
* The **`finish()`** method of the GPURenderBundleEncoder interface completes recording of the current render bundle command sequence, returning a GPURenderBundle object that can be passed into a GPURenderPassEncoder.executeBundles() call to execute those commands in a specific render pass.
|
|
15192
|
+
*
|
|
15193
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
15194
|
+
*/
|
|
15195
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
15196
|
+
}
|
|
15197
|
+
|
|
15198
|
+
declare var GPURenderBundleEncoder: {
|
|
15199
|
+
prototype: GPURenderBundleEncoder;
|
|
15200
|
+
new(): GPURenderBundleEncoder;
|
|
15201
|
+
};
|
|
15202
|
+
|
|
15203
|
+
interface GPURenderCommandsMixin {
|
|
15204
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
15205
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
15206
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
15207
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
15208
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
15209
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15210
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
15211
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15212
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
15213
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15214
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
15215
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
15216
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
15217
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15218
|
+
}
|
|
15219
|
+
|
|
15220
|
+
/**
|
|
15221
|
+
* The **`GPURenderPassEncoder`** interface of the WebGPU API encodes commands related to controlling the vertex and fragment shader stages, as issued by a GPURenderPipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
15222
|
+
* Available only in secure contexts.
|
|
15223
|
+
*
|
|
15224
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
15225
|
+
*/
|
|
15226
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15227
|
+
/**
|
|
15228
|
+
* The **`beginOcclusionQuery()`** method of the GPURenderPassEncoder interface begins an occlusion query at the specified index of the relevant GPUQuerySet (provided as the value of the occlusionQuerySet descriptor property when invoking GPUCommandEncoder.beginRenderPass() to run the render pass).
|
|
15229
|
+
*
|
|
15230
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
15231
|
+
*/
|
|
15232
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
15233
|
+
/**
|
|
15234
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
15235
|
+
*
|
|
15236
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
15237
|
+
*/
|
|
15238
|
+
end(): void;
|
|
15239
|
+
/**
|
|
15240
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
15241
|
+
*
|
|
15242
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
15243
|
+
*/
|
|
15244
|
+
endOcclusionQuery(): void;
|
|
15245
|
+
/**
|
|
15246
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
15247
|
+
*
|
|
15248
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
15249
|
+
*/
|
|
15250
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
15251
|
+
/**
|
|
15252
|
+
* The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
|
|
15253
|
+
*
|
|
15254
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
15255
|
+
*/
|
|
15256
|
+
setBlendConstant(color: GPUColor): void;
|
|
15257
|
+
/**
|
|
15258
|
+
* The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded.
|
|
15259
|
+
*
|
|
15260
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
15261
|
+
*/
|
|
15262
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
15263
|
+
/**
|
|
15264
|
+
* The **`setStencilReference()`** method of the GPURenderPassEncoder interface sets the stencil reference value using during stencil tests with the "replace" stencil operation (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the properties defining the various stencil operations).
|
|
15265
|
+
*
|
|
15266
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
15267
|
+
*/
|
|
15268
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
15269
|
+
/**
|
|
15270
|
+
* The **`setViewport()`** method of the GPURenderPassEncoder interface sets the viewport used during the rasterization stage to linearly map from normalized device coordinates to viewport coordinates.
|
|
15271
|
+
*
|
|
15272
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
15273
|
+
*/
|
|
15274
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
15275
|
+
}
|
|
15276
|
+
|
|
15277
|
+
declare var GPURenderPassEncoder: {
|
|
15278
|
+
prototype: GPURenderPassEncoder;
|
|
15279
|
+
new(): GPURenderPassEncoder;
|
|
15280
|
+
};
|
|
15281
|
+
|
|
15088
15282
|
/**
|
|
15089
15283
|
* The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
|
|
15090
15284
|
* Available only in secure contexts.
|
|
@@ -29023,7 +29217,7 @@ declare var RadioNodeList: {
|
|
|
29023
29217
|
*/
|
|
29024
29218
|
interface Range extends AbstractRange {
|
|
29025
29219
|
/**
|
|
29026
|
-
* The **`Range.commonAncestorContainer`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range. This means that if
|
|
29220
|
+
* The **`Range.commonAncestorContainer`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range. This means that if startContainer and endContainer both refer to the same node, this node is the common ancestor container.
|
|
29027
29221
|
*
|
|
29028
29222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
|
|
29029
29223
|
*/
|
|
@@ -42301,6 +42495,7 @@ interface SVGElementTagNameMap {
|
|
|
42301
42495
|
}
|
|
42302
42496
|
|
|
42303
42497
|
interface MathMLElementTagNameMap {
|
|
42498
|
+
"a": MathMLElement;
|
|
42304
42499
|
"annotation": MathMLElement;
|
|
42305
42500
|
"annotation-xml": MathMLElement;
|
|
42306
42501
|
"maction": MathMLElement;
|
|
@@ -43161,13 +43356,19 @@ type GLsizei = number;
|
|
|
43161
43356
|
type GLsizeiptr = number;
|
|
43162
43357
|
type GLuint = number;
|
|
43163
43358
|
type GLuint64 = number;
|
|
43359
|
+
type GPUBufferDynamicOffset = number;
|
|
43360
|
+
type GPUColor = number[] | GPUColorDict;
|
|
43164
43361
|
type GPUFlagsConstant = number;
|
|
43362
|
+
type GPUIndex32 = number;
|
|
43165
43363
|
type GPUIntegerCoordinate = number;
|
|
43166
43364
|
type GPUIntegerCoordinateOut = number;
|
|
43167
43365
|
type GPUMapModeFlags = number;
|
|
43366
|
+
type GPUSignedOffset32 = number;
|
|
43367
|
+
type GPUSize32 = number;
|
|
43168
43368
|
type GPUSize32Out = number;
|
|
43169
43369
|
type GPUSize64 = number;
|
|
43170
43370
|
type GPUSize64Out = number;
|
|
43371
|
+
type GPUStencilValue = number;
|
|
43171
43372
|
type GPUTextureUsageFlags = number;
|
|
43172
43373
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
43173
43374
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43278,7 +43479,9 @@ type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
|
43278
43479
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43279
43480
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43280
43481
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43482
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
43281
43483
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43484
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
43282
43485
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43283
43486
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43284
43487
|
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";
|
|
@@ -43567,6 +43770,26 @@ interface FormData {
|
|
|
43567
43770
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
43568
43771
|
}
|
|
43569
43772
|
|
|
43773
|
+
interface GPUBindingCommandsMixin {
|
|
43774
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
43775
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
43776
|
+
}
|
|
43777
|
+
|
|
43778
|
+
interface GPURenderPassEncoder {
|
|
43779
|
+
/**
|
|
43780
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
43781
|
+
*
|
|
43782
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
43783
|
+
*/
|
|
43784
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
43785
|
+
/**
|
|
43786
|
+
* The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
|
|
43787
|
+
*
|
|
43788
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
43789
|
+
*/
|
|
43790
|
+
setBlendConstant(color: number[]): void;
|
|
43791
|
+
}
|
|
43792
|
+
|
|
43570
43793
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
43571
43794
|
}
|
|
43572
43795
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -805,6 +805,13 @@ interface FullscreenOptions {
|
|
|
805
805
|
navigationUI?: FullscreenNavigationUI;
|
|
806
806
|
}
|
|
807
807
|
|
|
808
|
+
interface GPUColorDict {
|
|
809
|
+
a: number;
|
|
810
|
+
b: number;
|
|
811
|
+
g: number;
|
|
812
|
+
r: number;
|
|
813
|
+
}
|
|
814
|
+
|
|
808
815
|
interface GPUObjectDescriptorBase {
|
|
809
816
|
label?: string;
|
|
810
817
|
}
|
|
@@ -813,6 +820,9 @@ interface GPUPipelineErrorInit {
|
|
|
813
820
|
reason: GPUPipelineErrorReason;
|
|
814
821
|
}
|
|
815
822
|
|
|
823
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
824
|
+
}
|
|
825
|
+
|
|
816
826
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
817
827
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
818
828
|
aspect?: GPUTextureAspect;
|
|
@@ -3097,7 +3107,7 @@ interface AbstractRange {
|
|
|
3097
3107
|
*/
|
|
3098
3108
|
readonly endOffset: number;
|
|
3099
3109
|
/**
|
|
3100
|
-
* The read-only **`startContainer`** property of the AbstractRange interface returns the
|
|
3110
|
+
* The read-only **`startContainer`** property of the AbstractRange interface returns the Node in which the start of the range is located.
|
|
3101
3111
|
*
|
|
3102
3112
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
|
|
3103
3113
|
*/
|
|
@@ -8378,7 +8388,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8378
8388
|
*/
|
|
8379
8389
|
scrollMarginTop: string;
|
|
8380
8390
|
/**
|
|
8381
|
-
* The scroll-padding shorthand property sets scroll padding on all sides of an element at once
|
|
8391
|
+
* The scroll-padding shorthand property sets scroll padding on all sides of an element at once. It specifies offsets that define the optimal viewing region of a scrollport within a scroll container.
|
|
8382
8392
|
*
|
|
8383
8393
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/scroll-padding)
|
|
8384
8394
|
*/
|
|
@@ -14771,6 +14781,12 @@ declare var GPUBindGroupLayout: {
|
|
|
14771
14781
|
new(): GPUBindGroupLayout;
|
|
14772
14782
|
};
|
|
14773
14783
|
|
|
14784
|
+
interface GPUBindingCommandsMixin {
|
|
14785
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
14786
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14787
|
+
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
14788
|
+
}
|
|
14789
|
+
|
|
14774
14790
|
/**
|
|
14775
14791
|
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
14776
14792
|
* Available only in secure contexts.
|
|
@@ -14911,6 +14927,44 @@ declare var GPUCompilationMessage: {
|
|
|
14911
14927
|
new(): GPUCompilationMessage;
|
|
14912
14928
|
};
|
|
14913
14929
|
|
|
14930
|
+
/**
|
|
14931
|
+
* The **`GPUComputePassEncoder`** interface of the WebGPU API encodes commands related to controlling the compute shader stage, as issued by a GPUComputePipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
14932
|
+
* Available only in secure contexts.
|
|
14933
|
+
*
|
|
14934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
14935
|
+
*/
|
|
14936
|
+
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
14937
|
+
/**
|
|
14938
|
+
* The **`dispatchWorkgroups()`** method of the GPUComputePassEncoder interface dispatches a specific grid of workgroups to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14939
|
+
*
|
|
14940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups)
|
|
14941
|
+
*/
|
|
14942
|
+
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
14943
|
+
/**
|
|
14944
|
+
* The **`dispatchWorkgroupsIndirect()`** method of the GPUComputePassEncoder interface dispatches a grid of workgroups, defined by the parameters of a GPUBuffer, to perform the work being done by the current GPUComputePipeline (i.e., set via GPUComputePassEncoder.setPipeline()).
|
|
14945
|
+
*
|
|
14946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect)
|
|
14947
|
+
*/
|
|
14948
|
+
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
14949
|
+
/**
|
|
14950
|
+
* The **`end()`** method of the GPUComputePassEncoder interface completes recording of the current compute pass command sequence.
|
|
14951
|
+
*
|
|
14952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end)
|
|
14953
|
+
*/
|
|
14954
|
+
end(): void;
|
|
14955
|
+
/**
|
|
14956
|
+
* The **`setPipeline()`** method of the GPUComputePassEncoder interface sets the GPUComputePipeline to use for this compute pass.
|
|
14957
|
+
*
|
|
14958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline)
|
|
14959
|
+
*/
|
|
14960
|
+
setPipeline(pipeline: GPUComputePipeline): void;
|
|
14961
|
+
}
|
|
14962
|
+
|
|
14963
|
+
declare var GPUComputePassEncoder: {
|
|
14964
|
+
prototype: GPUComputePassEncoder;
|
|
14965
|
+
new(): GPUComputePassEncoder;
|
|
14966
|
+
};
|
|
14967
|
+
|
|
14914
14968
|
/**
|
|
14915
14969
|
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
14916
14970
|
* Available only in secure contexts.
|
|
@@ -14925,6 +14979,15 @@ declare var GPUComputePipeline: {
|
|
|
14925
14979
|
new(): GPUComputePipeline;
|
|
14926
14980
|
};
|
|
14927
14981
|
|
|
14982
|
+
interface GPUDebugCommandsMixin {
|
|
14983
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
14984
|
+
insertDebugMarker(markerLabel: string): void;
|
|
14985
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
14986
|
+
popDebugGroup(): void;
|
|
14987
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
14988
|
+
pushDebugGroup(groupLabel: string): void;
|
|
14989
|
+
}
|
|
14990
|
+
|
|
14928
14991
|
/**
|
|
14929
14992
|
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
14930
14993
|
* Available only in secure contexts.
|
|
@@ -15057,6 +15120,38 @@ declare var GPUPipelineLayout: {
|
|
|
15057
15120
|
new(): GPUPipelineLayout;
|
|
15058
15121
|
};
|
|
15059
15122
|
|
|
15123
|
+
/**
|
|
15124
|
+
* The **`GPUQuerySet`** interface of the WebGPU API is used to record the results of queries on passes, such as occlusion or timestamp queries.
|
|
15125
|
+
* Available only in secure contexts.
|
|
15126
|
+
*
|
|
15127
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
15128
|
+
*/
|
|
15129
|
+
interface GPUQuerySet extends GPUObjectBase {
|
|
15130
|
+
/**
|
|
15131
|
+
* The **`count`** read-only property of the GPUQuerySet interface is a number specifying the number of queries managed by the GPUQuerySet.
|
|
15132
|
+
*
|
|
15133
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count)
|
|
15134
|
+
*/
|
|
15135
|
+
readonly count: GPUSize32Out;
|
|
15136
|
+
/**
|
|
15137
|
+
* The **`type`** read-only property of the GPUQuerySet interface is an enumerated value specifying the type of queries managed by the GPUQuerySet.
|
|
15138
|
+
*
|
|
15139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type)
|
|
15140
|
+
*/
|
|
15141
|
+
readonly type: GPUQueryType;
|
|
15142
|
+
/**
|
|
15143
|
+
* The **`destroy()`** method of the GPUQuerySet interface destroys the GPUQuerySet.
|
|
15144
|
+
*
|
|
15145
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy)
|
|
15146
|
+
*/
|
|
15147
|
+
destroy(): void;
|
|
15148
|
+
}
|
|
15149
|
+
|
|
15150
|
+
declare var GPUQuerySet: {
|
|
15151
|
+
prototype: GPUQuerySet;
|
|
15152
|
+
new(): GPUQuerySet;
|
|
15153
|
+
};
|
|
15154
|
+
|
|
15060
15155
|
/**
|
|
15061
15156
|
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
15062
15157
|
* Available only in secure contexts.
|
|
@@ -15071,6 +15166,105 @@ declare var GPURenderBundle: {
|
|
|
15071
15166
|
new(): GPURenderBundle;
|
|
15072
15167
|
};
|
|
15073
15168
|
|
|
15169
|
+
/**
|
|
15170
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
15171
|
+
* Available only in secure contexts.
|
|
15172
|
+
*
|
|
15173
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
15174
|
+
*/
|
|
15175
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15176
|
+
/**
|
|
15177
|
+
* The **`finish()`** method of the GPURenderBundleEncoder interface completes recording of the current render bundle command sequence, returning a GPURenderBundle object that can be passed into a GPURenderPassEncoder.executeBundles() call to execute those commands in a specific render pass.
|
|
15178
|
+
*
|
|
15179
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
15180
|
+
*/
|
|
15181
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
15182
|
+
}
|
|
15183
|
+
|
|
15184
|
+
declare var GPURenderBundleEncoder: {
|
|
15185
|
+
prototype: GPURenderBundleEncoder;
|
|
15186
|
+
new(): GPURenderBundleEncoder;
|
|
15187
|
+
};
|
|
15188
|
+
|
|
15189
|
+
interface GPURenderCommandsMixin {
|
|
15190
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
15191
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
15192
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
15193
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
15194
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
15195
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15196
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
15197
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15198
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
15199
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15200
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
15201
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
15202
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
15203
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15204
|
+
}
|
|
15205
|
+
|
|
15206
|
+
/**
|
|
15207
|
+
* The **`GPURenderPassEncoder`** interface of the WebGPU API encodes commands related to controlling the vertex and fragment shader stages, as issued by a GPURenderPipeline. It forms part of the overall encoding activity of a GPUCommandEncoder.
|
|
15208
|
+
* Available only in secure contexts.
|
|
15209
|
+
*
|
|
15210
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
15211
|
+
*/
|
|
15212
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15213
|
+
/**
|
|
15214
|
+
* The **`beginOcclusionQuery()`** method of the GPURenderPassEncoder interface begins an occlusion query at the specified index of the relevant GPUQuerySet (provided as the value of the occlusionQuerySet descriptor property when invoking GPUCommandEncoder.beginRenderPass() to run the render pass).
|
|
15215
|
+
*
|
|
15216
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
15217
|
+
*/
|
|
15218
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
15219
|
+
/**
|
|
15220
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
15221
|
+
*
|
|
15222
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
15223
|
+
*/
|
|
15224
|
+
end(): void;
|
|
15225
|
+
/**
|
|
15226
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
15227
|
+
*
|
|
15228
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
15229
|
+
*/
|
|
15230
|
+
endOcclusionQuery(): void;
|
|
15231
|
+
/**
|
|
15232
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
15233
|
+
*
|
|
15234
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
15235
|
+
*/
|
|
15236
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
15237
|
+
/**
|
|
15238
|
+
* The **`setBlendConstant()`** method of the GPURenderPassEncoder interface sets the constant blend color and alpha values used with "constant" and "one-minus-constant" blend factors (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the blend property).
|
|
15239
|
+
*
|
|
15240
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
15241
|
+
*/
|
|
15242
|
+
setBlendConstant(color: GPUColor): void;
|
|
15243
|
+
/**
|
|
15244
|
+
* The **`setScissorRect()`** method of the GPURenderPassEncoder interface sets the scissor rectangle used during the rasterization stage. After transformation into viewport coordinates any fragments that fall outside the scissor rectangle will be discarded.
|
|
15245
|
+
*
|
|
15246
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
15247
|
+
*/
|
|
15248
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
15249
|
+
/**
|
|
15250
|
+
* The **`setStencilReference()`** method of the GPURenderPassEncoder interface sets the stencil reference value using during stencil tests with the "replace" stencil operation (as set in the descriptor of the GPUDevice.createRenderPipeline() method, in the properties defining the various stencil operations).
|
|
15251
|
+
*
|
|
15252
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
15253
|
+
*/
|
|
15254
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
15255
|
+
/**
|
|
15256
|
+
* The **`setViewport()`** method of the GPURenderPassEncoder interface sets the viewport used during the rasterization stage to linearly map from normalized device coordinates to viewport coordinates.
|
|
15257
|
+
*
|
|
15258
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
15259
|
+
*/
|
|
15260
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
15261
|
+
}
|
|
15262
|
+
|
|
15263
|
+
declare var GPURenderPassEncoder: {
|
|
15264
|
+
prototype: GPURenderPassEncoder;
|
|
15265
|
+
new(): GPURenderPassEncoder;
|
|
15266
|
+
};
|
|
15267
|
+
|
|
15074
15268
|
/**
|
|
15075
15269
|
* The **`GPURenderPipeline`** interface of the WebGPU API represents a pipeline that controls the vertex and fragment shader stages and can be used in a GPURenderPassEncoder or GPURenderBundleEncoder.
|
|
15076
15270
|
* Available only in secure contexts.
|
|
@@ -28999,7 +29193,7 @@ declare var RadioNodeList: {
|
|
|
28999
29193
|
*/
|
|
29000
29194
|
interface Range extends AbstractRange {
|
|
29001
29195
|
/**
|
|
29002
|
-
* The **`Range.commonAncestorContainer`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range. This means that if
|
|
29196
|
+
* The **`Range.commonAncestorContainer`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range. This means that if startContainer and endContainer both refer to the same node, this node is the common ancestor container.
|
|
29003
29197
|
*
|
|
29004
29198
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
|
|
29005
29199
|
*/
|
|
@@ -42275,6 +42469,7 @@ interface SVGElementTagNameMap {
|
|
|
42275
42469
|
}
|
|
42276
42470
|
|
|
42277
42471
|
interface MathMLElementTagNameMap {
|
|
42472
|
+
"a": MathMLElement;
|
|
42278
42473
|
"annotation": MathMLElement;
|
|
42279
42474
|
"annotation-xml": MathMLElement;
|
|
42280
42475
|
"maction": MathMLElement;
|
|
@@ -43135,13 +43330,19 @@ type GLsizei = number;
|
|
|
43135
43330
|
type GLsizeiptr = number;
|
|
43136
43331
|
type GLuint = number;
|
|
43137
43332
|
type GLuint64 = number;
|
|
43333
|
+
type GPUBufferDynamicOffset = number;
|
|
43334
|
+
type GPUColor = number[] | GPUColorDict;
|
|
43138
43335
|
type GPUFlagsConstant = number;
|
|
43336
|
+
type GPUIndex32 = number;
|
|
43139
43337
|
type GPUIntegerCoordinate = number;
|
|
43140
43338
|
type GPUIntegerCoordinateOut = number;
|
|
43141
43339
|
type GPUMapModeFlags = number;
|
|
43340
|
+
type GPUSignedOffset32 = number;
|
|
43341
|
+
type GPUSize32 = number;
|
|
43142
43342
|
type GPUSize32Out = number;
|
|
43143
43343
|
type GPUSize64 = number;
|
|
43144
43344
|
type GPUSize64Out = number;
|
|
43345
|
+
type GPUStencilValue = number;
|
|
43145
43346
|
type GPUTextureUsageFlags = number;
|
|
43146
43347
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
43147
43348
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43252,7 +43453,9 @@ type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
|
43252
43453
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43253
43454
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43254
43455
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43456
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
43255
43457
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43458
|
+
type GPUQueryType = "occlusion" | "timestamp";
|
|
43256
43459
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
43257
43460
|
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
43258
43461
|
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";
|