@types/web 0.0.321 → 0.0.323
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 +133 -4
- package/package.json +1 -1
- package/ts5.5/index.d.ts +118 -4
- package/ts5.5/iterable.d.ts +15 -0
- package/ts5.6/index.d.ts +118 -4
- package/ts5.6/iterable.d.ts +15 -0
- package/ts5.9/index.d.ts +118 -4
- package/ts5.9/iterable.d.ts +15 -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.323 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.323.
|
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
|
*/
|
|
@@ -10208,7 +10218,7 @@ declare var CaretPosition: {
|
|
|
10208
10218
|
};
|
|
10209
10219
|
|
|
10210
10220
|
/**
|
|
10211
|
-
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each
|
|
10221
|
+
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channel separately, e.g., for performing channel mixing where gain must be separately controlled on each channel.
|
|
10212
10222
|
*
|
|
10213
10223
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
|
|
10214
10224
|
*/
|
|
@@ -15170,6 +15180,105 @@ declare var GPURenderBundle: {
|
|
|
15170
15180
|
new(): GPURenderBundle;
|
|
15171
15181
|
};
|
|
15172
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
|
+
|
|
15173
15282
|
/**
|
|
15174
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.
|
|
15175
15284
|
* Available only in secure contexts.
|
|
@@ -29108,7 +29217,7 @@ declare var RadioNodeList: {
|
|
|
29108
29217
|
*/
|
|
29109
29218
|
interface Range extends AbstractRange {
|
|
29110
29219
|
/**
|
|
29111
|
-
* 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.
|
|
29112
29221
|
*
|
|
29113
29222
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
|
|
29114
29223
|
*/
|
|
@@ -42386,6 +42495,7 @@ interface SVGElementTagNameMap {
|
|
|
42386
42495
|
}
|
|
42387
42496
|
|
|
42388
42497
|
interface MathMLElementTagNameMap {
|
|
42498
|
+
"a": MathMLElement;
|
|
42389
42499
|
"annotation": MathMLElement;
|
|
42390
42500
|
"annotation-xml": MathMLElement;
|
|
42391
42501
|
"maction": MathMLElement;
|
|
@@ -43247,15 +43357,18 @@ type GLsizeiptr = number;
|
|
|
43247
43357
|
type GLuint = number;
|
|
43248
43358
|
type GLuint64 = number;
|
|
43249
43359
|
type GPUBufferDynamicOffset = number;
|
|
43360
|
+
type GPUColor = number[] | GPUColorDict;
|
|
43250
43361
|
type GPUFlagsConstant = number;
|
|
43251
43362
|
type GPUIndex32 = number;
|
|
43252
43363
|
type GPUIntegerCoordinate = number;
|
|
43253
43364
|
type GPUIntegerCoordinateOut = number;
|
|
43254
43365
|
type GPUMapModeFlags = number;
|
|
43366
|
+
type GPUSignedOffset32 = number;
|
|
43255
43367
|
type GPUSize32 = number;
|
|
43256
43368
|
type GPUSize32Out = number;
|
|
43257
43369
|
type GPUSize64 = number;
|
|
43258
43370
|
type GPUSize64Out = number;
|
|
43371
|
+
type GPUStencilValue = number;
|
|
43259
43372
|
type GPUTextureUsageFlags = number;
|
|
43260
43373
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
43261
43374
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43366,6 +43479,7 @@ type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
|
43366
43479
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43367
43480
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43368
43481
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43482
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
43369
43483
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43370
43484
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43371
43485
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
@@ -43661,6 +43775,21 @@ interface GPUBindingCommandsMixin {
|
|
|
43661
43775
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
43662
43776
|
}
|
|
43663
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
|
+
|
|
43664
43793
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
43665
43794
|
}
|
|
43666
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
|
*/
|
|
@@ -10197,7 +10207,7 @@ declare var CaretPosition: {
|
|
|
10197
10207
|
};
|
|
10198
10208
|
|
|
10199
10209
|
/**
|
|
10200
|
-
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each
|
|
10210
|
+
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channel separately, e.g., for performing channel mixing where gain must be separately controlled on each channel.
|
|
10201
10211
|
*
|
|
10202
10212
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
|
|
10203
10213
|
*/
|
|
@@ -15156,6 +15166,105 @@ declare var GPURenderBundle: {
|
|
|
15156
15166
|
new(): GPURenderBundle;
|
|
15157
15167
|
};
|
|
15158
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
|
+
|
|
15159
15268
|
/**
|
|
15160
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.
|
|
15161
15270
|
* Available only in secure contexts.
|
|
@@ -29084,7 +29193,7 @@ declare var RadioNodeList: {
|
|
|
29084
29193
|
*/
|
|
29085
29194
|
interface Range extends AbstractRange {
|
|
29086
29195
|
/**
|
|
29087
|
-
* 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.
|
|
29088
29197
|
*
|
|
29089
29198
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
|
|
29090
29199
|
*/
|
|
@@ -42360,6 +42469,7 @@ interface SVGElementTagNameMap {
|
|
|
42360
42469
|
}
|
|
42361
42470
|
|
|
42362
42471
|
interface MathMLElementTagNameMap {
|
|
42472
|
+
"a": MathMLElement;
|
|
42363
42473
|
"annotation": MathMLElement;
|
|
42364
42474
|
"annotation-xml": MathMLElement;
|
|
42365
42475
|
"maction": MathMLElement;
|
|
@@ -43221,15 +43331,18 @@ type GLsizeiptr = number;
|
|
|
43221
43331
|
type GLuint = number;
|
|
43222
43332
|
type GLuint64 = number;
|
|
43223
43333
|
type GPUBufferDynamicOffset = number;
|
|
43334
|
+
type GPUColor = number[] | GPUColorDict;
|
|
43224
43335
|
type GPUFlagsConstant = number;
|
|
43225
43336
|
type GPUIndex32 = number;
|
|
43226
43337
|
type GPUIntegerCoordinate = number;
|
|
43227
43338
|
type GPUIntegerCoordinateOut = number;
|
|
43228
43339
|
type GPUMapModeFlags = number;
|
|
43340
|
+
type GPUSignedOffset32 = number;
|
|
43229
43341
|
type GPUSize32 = number;
|
|
43230
43342
|
type GPUSize32Out = number;
|
|
43231
43343
|
type GPUSize64 = number;
|
|
43232
43344
|
type GPUSize64Out = number;
|
|
43345
|
+
type GPUStencilValue = number;
|
|
43233
43346
|
type GPUTextureUsageFlags = number;
|
|
43234
43347
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
43235
43348
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43340,6 +43453,7 @@ type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
|
43340
43453
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43341
43454
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43342
43455
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43456
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
43343
43457
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43344
43458
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43345
43459
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -143,6 +143,21 @@ interface GPUBindingCommandsMixin {
|
|
|
143
143
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
+
interface GPURenderPassEncoder {
|
|
147
|
+
/**
|
|
148
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
149
|
+
*
|
|
150
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
151
|
+
*/
|
|
152
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
153
|
+
/**
|
|
154
|
+
* 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).
|
|
155
|
+
*
|
|
156
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
157
|
+
*/
|
|
158
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
159
|
+
}
|
|
160
|
+
|
|
146
161
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
147
162
|
}
|
|
148
163
|
|
package/ts5.6/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
|
*/
|
|
@@ -8385,7 +8395,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8385
8395
|
*/
|
|
8386
8396
|
scrollMarginTop: string;
|
|
8387
8397
|
/**
|
|
8388
|
-
* The scroll-padding shorthand property sets scroll padding on all sides of an element at once
|
|
8398
|
+
* 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.
|
|
8389
8399
|
*
|
|
8390
8400
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/scroll-padding)
|
|
8391
8401
|
*/
|
|
@@ -10205,7 +10215,7 @@ declare var CaretPosition: {
|
|
|
10205
10215
|
};
|
|
10206
10216
|
|
|
10207
10217
|
/**
|
|
10208
|
-
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each
|
|
10218
|
+
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channel separately, e.g., for performing channel mixing where gain must be separately controlled on each channel.
|
|
10209
10219
|
*
|
|
10210
10220
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
|
|
10211
10221
|
*/
|
|
@@ -15167,6 +15177,105 @@ declare var GPURenderBundle: {
|
|
|
15167
15177
|
new(): GPURenderBundle;
|
|
15168
15178
|
};
|
|
15169
15179
|
|
|
15180
|
+
/**
|
|
15181
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
15182
|
+
* Available only in secure contexts.
|
|
15183
|
+
*
|
|
15184
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
15185
|
+
*/
|
|
15186
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15187
|
+
/**
|
|
15188
|
+
* 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.
|
|
15189
|
+
*
|
|
15190
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
15191
|
+
*/
|
|
15192
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
15193
|
+
}
|
|
15194
|
+
|
|
15195
|
+
declare var GPURenderBundleEncoder: {
|
|
15196
|
+
prototype: GPURenderBundleEncoder;
|
|
15197
|
+
new(): GPURenderBundleEncoder;
|
|
15198
|
+
};
|
|
15199
|
+
|
|
15200
|
+
interface GPURenderCommandsMixin {
|
|
15201
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
15202
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
15203
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
15204
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
15205
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
15206
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15207
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
15208
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15209
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
15210
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15211
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
15212
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
15213
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
15214
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15215
|
+
}
|
|
15216
|
+
|
|
15217
|
+
/**
|
|
15218
|
+
* 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.
|
|
15219
|
+
* Available only in secure contexts.
|
|
15220
|
+
*
|
|
15221
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
15222
|
+
*/
|
|
15223
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15224
|
+
/**
|
|
15225
|
+
* 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).
|
|
15226
|
+
*
|
|
15227
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
15228
|
+
*/
|
|
15229
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
15230
|
+
/**
|
|
15231
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
15232
|
+
*
|
|
15233
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
15234
|
+
*/
|
|
15235
|
+
end(): void;
|
|
15236
|
+
/**
|
|
15237
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
15238
|
+
*
|
|
15239
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
15240
|
+
*/
|
|
15241
|
+
endOcclusionQuery(): void;
|
|
15242
|
+
/**
|
|
15243
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
15244
|
+
*
|
|
15245
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
15246
|
+
*/
|
|
15247
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
15248
|
+
/**
|
|
15249
|
+
* 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).
|
|
15250
|
+
*
|
|
15251
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
15252
|
+
*/
|
|
15253
|
+
setBlendConstant(color: GPUColor): void;
|
|
15254
|
+
/**
|
|
15255
|
+
* 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.
|
|
15256
|
+
*
|
|
15257
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
15258
|
+
*/
|
|
15259
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
15260
|
+
/**
|
|
15261
|
+
* 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).
|
|
15262
|
+
*
|
|
15263
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
15264
|
+
*/
|
|
15265
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
15266
|
+
/**
|
|
15267
|
+
* 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.
|
|
15268
|
+
*
|
|
15269
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
15270
|
+
*/
|
|
15271
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
15272
|
+
}
|
|
15273
|
+
|
|
15274
|
+
declare var GPURenderPassEncoder: {
|
|
15275
|
+
prototype: GPURenderPassEncoder;
|
|
15276
|
+
new(): GPURenderPassEncoder;
|
|
15277
|
+
};
|
|
15278
|
+
|
|
15170
15279
|
/**
|
|
15171
15280
|
* 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.
|
|
15172
15281
|
* Available only in secure contexts.
|
|
@@ -29105,7 +29214,7 @@ declare var RadioNodeList: {
|
|
|
29105
29214
|
*/
|
|
29106
29215
|
interface Range extends AbstractRange {
|
|
29107
29216
|
/**
|
|
29108
|
-
* 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
|
|
29217
|
+
* 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.
|
|
29109
29218
|
*
|
|
29110
29219
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
|
|
29111
29220
|
*/
|
|
@@ -42383,6 +42492,7 @@ interface SVGElementTagNameMap {
|
|
|
42383
42492
|
}
|
|
42384
42493
|
|
|
42385
42494
|
interface MathMLElementTagNameMap {
|
|
42495
|
+
"a": MathMLElement;
|
|
42386
42496
|
"annotation": MathMLElement;
|
|
42387
42497
|
"annotation-xml": MathMLElement;
|
|
42388
42498
|
"maction": MathMLElement;
|
|
@@ -43244,15 +43354,18 @@ type GLsizeiptr = number;
|
|
|
43244
43354
|
type GLuint = number;
|
|
43245
43355
|
type GLuint64 = number;
|
|
43246
43356
|
type GPUBufferDynamicOffset = number;
|
|
43357
|
+
type GPUColor = number[] | GPUColorDict;
|
|
43247
43358
|
type GPUFlagsConstant = number;
|
|
43248
43359
|
type GPUIndex32 = number;
|
|
43249
43360
|
type GPUIntegerCoordinate = number;
|
|
43250
43361
|
type GPUIntegerCoordinateOut = number;
|
|
43251
43362
|
type GPUMapModeFlags = number;
|
|
43363
|
+
type GPUSignedOffset32 = number;
|
|
43252
43364
|
type GPUSize32 = number;
|
|
43253
43365
|
type GPUSize32Out = number;
|
|
43254
43366
|
type GPUSize64 = number;
|
|
43255
43367
|
type GPUSize64Out = number;
|
|
43368
|
+
type GPUStencilValue = number;
|
|
43256
43369
|
type GPUTextureUsageFlags = number;
|
|
43257
43370
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
43258
43371
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43363,6 +43476,7 @@ type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
|
43363
43476
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43364
43477
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43365
43478
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43479
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
43366
43480
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43367
43481
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43368
43482
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -147,6 +147,21 @@ interface GPUBindingCommandsMixin {
|
|
|
147
147
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
interface GPURenderPassEncoder {
|
|
151
|
+
/**
|
|
152
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
153
|
+
*
|
|
154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
155
|
+
*/
|
|
156
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
157
|
+
/**
|
|
158
|
+
* 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).
|
|
159
|
+
*
|
|
160
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
161
|
+
*/
|
|
162
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
163
|
+
}
|
|
164
|
+
|
|
150
165
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
151
166
|
}
|
|
152
167
|
|
package/ts5.9/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
|
*/
|
|
@@ -8385,7 +8395,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
8385
8395
|
*/
|
|
8386
8396
|
scrollMarginTop: string;
|
|
8387
8397
|
/**
|
|
8388
|
-
* The scroll-padding shorthand property sets scroll padding on all sides of an element at once
|
|
8398
|
+
* 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.
|
|
8389
8399
|
*
|
|
8390
8400
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/scroll-padding)
|
|
8391
8401
|
*/
|
|
@@ -10205,7 +10215,7 @@ declare var CaretPosition: {
|
|
|
10205
10215
|
};
|
|
10206
10216
|
|
|
10207
10217
|
/**
|
|
10208
|
-
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each
|
|
10218
|
+
* The **`ChannelMergerNode`** interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channel separately, e.g., for performing channel mixing where gain must be separately controlled on each channel.
|
|
10209
10219
|
*
|
|
10210
10220
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
|
|
10211
10221
|
*/
|
|
@@ -15167,6 +15177,105 @@ declare var GPURenderBundle: {
|
|
|
15167
15177
|
new(): GPURenderBundle;
|
|
15168
15178
|
};
|
|
15169
15179
|
|
|
15180
|
+
/**
|
|
15181
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
15182
|
+
* Available only in secure contexts.
|
|
15183
|
+
*
|
|
15184
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
15185
|
+
*/
|
|
15186
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15187
|
+
/**
|
|
15188
|
+
* 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.
|
|
15189
|
+
*
|
|
15190
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
15191
|
+
*/
|
|
15192
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
15193
|
+
}
|
|
15194
|
+
|
|
15195
|
+
declare var GPURenderBundleEncoder: {
|
|
15196
|
+
prototype: GPURenderBundleEncoder;
|
|
15197
|
+
new(): GPURenderBundleEncoder;
|
|
15198
|
+
};
|
|
15199
|
+
|
|
15200
|
+
interface GPURenderCommandsMixin {
|
|
15201
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
15202
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
15203
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
15204
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
15205
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
15206
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15207
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
15208
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
15209
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
15210
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15211
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
15212
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
15213
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
15214
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
15215
|
+
}
|
|
15216
|
+
|
|
15217
|
+
/**
|
|
15218
|
+
* 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.
|
|
15219
|
+
* Available only in secure contexts.
|
|
15220
|
+
*
|
|
15221
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
15222
|
+
*/
|
|
15223
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
15224
|
+
/**
|
|
15225
|
+
* 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).
|
|
15226
|
+
*
|
|
15227
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
15228
|
+
*/
|
|
15229
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
15230
|
+
/**
|
|
15231
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
15232
|
+
*
|
|
15233
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
15234
|
+
*/
|
|
15235
|
+
end(): void;
|
|
15236
|
+
/**
|
|
15237
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
15238
|
+
*
|
|
15239
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
15240
|
+
*/
|
|
15241
|
+
endOcclusionQuery(): void;
|
|
15242
|
+
/**
|
|
15243
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
15244
|
+
*
|
|
15245
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
15246
|
+
*/
|
|
15247
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
15248
|
+
/**
|
|
15249
|
+
* 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).
|
|
15250
|
+
*
|
|
15251
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
15252
|
+
*/
|
|
15253
|
+
setBlendConstant(color: GPUColor): void;
|
|
15254
|
+
/**
|
|
15255
|
+
* 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.
|
|
15256
|
+
*
|
|
15257
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
15258
|
+
*/
|
|
15259
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
15260
|
+
/**
|
|
15261
|
+
* 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).
|
|
15262
|
+
*
|
|
15263
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
15264
|
+
*/
|
|
15265
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
15266
|
+
/**
|
|
15267
|
+
* 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.
|
|
15268
|
+
*
|
|
15269
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
15270
|
+
*/
|
|
15271
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
15272
|
+
}
|
|
15273
|
+
|
|
15274
|
+
declare var GPURenderPassEncoder: {
|
|
15275
|
+
prototype: GPURenderPassEncoder;
|
|
15276
|
+
new(): GPURenderPassEncoder;
|
|
15277
|
+
};
|
|
15278
|
+
|
|
15170
15279
|
/**
|
|
15171
15280
|
* 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.
|
|
15172
15281
|
* Available only in secure contexts.
|
|
@@ -29105,7 +29214,7 @@ declare var RadioNodeList: {
|
|
|
29105
29214
|
*/
|
|
29106
29215
|
interface Range extends AbstractRange {
|
|
29107
29216
|
/**
|
|
29108
|
-
* 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
|
|
29217
|
+
* 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.
|
|
29109
29218
|
*
|
|
29110
29219
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
|
|
29111
29220
|
*/
|
|
@@ -42383,6 +42492,7 @@ interface SVGElementTagNameMap {
|
|
|
42383
42492
|
}
|
|
42384
42493
|
|
|
42385
42494
|
interface MathMLElementTagNameMap {
|
|
42495
|
+
"a": MathMLElement;
|
|
42386
42496
|
"annotation": MathMLElement;
|
|
42387
42497
|
"annotation-xml": MathMLElement;
|
|
42388
42498
|
"maction": MathMLElement;
|
|
@@ -43244,15 +43354,18 @@ type GLsizeiptr = number;
|
|
|
43244
43354
|
type GLuint = number;
|
|
43245
43355
|
type GLuint64 = number;
|
|
43246
43356
|
type GPUBufferDynamicOffset = number;
|
|
43357
|
+
type GPUColor = number[] | GPUColorDict;
|
|
43247
43358
|
type GPUFlagsConstant = number;
|
|
43248
43359
|
type GPUIndex32 = number;
|
|
43249
43360
|
type GPUIntegerCoordinate = number;
|
|
43250
43361
|
type GPUIntegerCoordinateOut = number;
|
|
43251
43362
|
type GPUMapModeFlags = number;
|
|
43363
|
+
type GPUSignedOffset32 = number;
|
|
43252
43364
|
type GPUSize32 = number;
|
|
43253
43365
|
type GPUSize32Out = number;
|
|
43254
43366
|
type GPUSize64 = number;
|
|
43255
43367
|
type GPUSize64Out = number;
|
|
43368
|
+
type GPUStencilValue = number;
|
|
43256
43369
|
type GPUTextureUsageFlags = number;
|
|
43257
43370
|
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
|
|
43258
43371
|
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
|
|
@@ -43363,6 +43476,7 @@ type FullscreenNavigationUI = "auto" | "hide" | "show";
|
|
|
43363
43476
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
43364
43477
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
43365
43478
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
43479
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
43366
43480
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
43367
43481
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
43368
43482
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -147,6 +147,21 @@ interface GPUBindingCommandsMixin {
|
|
|
147
147
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
interface GPURenderPassEncoder {
|
|
151
|
+
/**
|
|
152
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
153
|
+
*
|
|
154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
155
|
+
*/
|
|
156
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
157
|
+
/**
|
|
158
|
+
* 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).
|
|
159
|
+
*
|
|
160
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
161
|
+
*/
|
|
162
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
163
|
+
}
|
|
164
|
+
|
|
150
165
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
151
166
|
}
|
|
152
167
|
|