@types/sharedworker 0.0.209 → 0.0.211
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 +184 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +169 -0
- package/ts5.5/iterable.d.ts +15 -0
- package/ts5.6/index.d.ts +169 -0
- package/ts5.6/iterable.d.ts +15 -0
- package/ts5.9/index.d.ts +169 -0
- package/ts5.9/iterable.d.ts +15 -0
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.211 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.211.
|
package/index.d.ts
CHANGED
|
@@ -219,6 +219,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
219
219
|
fontfaces?: FontFace[];
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
+
interface GPUColorDict {
|
|
223
|
+
a: number;
|
|
224
|
+
b: number;
|
|
225
|
+
g: number;
|
|
226
|
+
r: number;
|
|
227
|
+
}
|
|
228
|
+
|
|
222
229
|
interface GPUObjectDescriptorBase {
|
|
223
230
|
label?: string;
|
|
224
231
|
}
|
|
@@ -227,6 +234,9 @@ interface GPUPipelineErrorInit {
|
|
|
227
234
|
reason: GPUPipelineErrorReason;
|
|
228
235
|
}
|
|
229
236
|
|
|
237
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
238
|
+
}
|
|
239
|
+
|
|
230
240
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
231
241
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
232
242
|
aspect?: GPUTextureAspect;
|
|
@@ -3883,6 +3893,62 @@ declare var FormData: {
|
|
|
3883
3893
|
new(): FormData;
|
|
3884
3894
|
};
|
|
3885
3895
|
|
|
3896
|
+
/**
|
|
3897
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3898
|
+
* Available only in secure contexts.
|
|
3899
|
+
*
|
|
3900
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3901
|
+
*/
|
|
3902
|
+
interface GPUAdapterInfo {
|
|
3903
|
+
/**
|
|
3904
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
3905
|
+
*
|
|
3906
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3907
|
+
*/
|
|
3908
|
+
readonly architecture: string;
|
|
3909
|
+
/**
|
|
3910
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
3911
|
+
*
|
|
3912
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3913
|
+
*/
|
|
3914
|
+
readonly description: string;
|
|
3915
|
+
/**
|
|
3916
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
3917
|
+
*
|
|
3918
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3919
|
+
*/
|
|
3920
|
+
readonly device: string;
|
|
3921
|
+
/**
|
|
3922
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3923
|
+
*
|
|
3924
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3925
|
+
*/
|
|
3926
|
+
readonly isFallbackAdapter: boolean;
|
|
3927
|
+
/**
|
|
3928
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3929
|
+
*
|
|
3930
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3931
|
+
*/
|
|
3932
|
+
readonly subgroupMaxSize: number;
|
|
3933
|
+
/**
|
|
3934
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3935
|
+
*
|
|
3936
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3937
|
+
*/
|
|
3938
|
+
readonly subgroupMinSize: number;
|
|
3939
|
+
/**
|
|
3940
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
3941
|
+
*
|
|
3942
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3943
|
+
*/
|
|
3944
|
+
readonly vendor: string;
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
declare var GPUAdapterInfo: {
|
|
3948
|
+
prototype: GPUAdapterInfo;
|
|
3949
|
+
new(): GPUAdapterInfo;
|
|
3950
|
+
};
|
|
3951
|
+
|
|
3886
3952
|
/**
|
|
3887
3953
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
3888
3954
|
* Available only in secure contexts.
|
|
@@ -4296,6 +4362,105 @@ declare var GPURenderBundle: {
|
|
|
4296
4362
|
new(): GPURenderBundle;
|
|
4297
4363
|
};
|
|
4298
4364
|
|
|
4365
|
+
/**
|
|
4366
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
4367
|
+
* Available only in secure contexts.
|
|
4368
|
+
*
|
|
4369
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
4370
|
+
*/
|
|
4371
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4372
|
+
/**
|
|
4373
|
+
* 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.
|
|
4374
|
+
*
|
|
4375
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
4376
|
+
*/
|
|
4377
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
4378
|
+
}
|
|
4379
|
+
|
|
4380
|
+
declare var GPURenderBundleEncoder: {
|
|
4381
|
+
prototype: GPURenderBundleEncoder;
|
|
4382
|
+
new(): GPURenderBundleEncoder;
|
|
4383
|
+
};
|
|
4384
|
+
|
|
4385
|
+
interface GPURenderCommandsMixin {
|
|
4386
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
4387
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
4388
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
4389
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
4390
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
4391
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4392
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
4393
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4394
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
4395
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4396
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
4397
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
4398
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
4399
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
/**
|
|
4403
|
+
* 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.
|
|
4404
|
+
* Available only in secure contexts.
|
|
4405
|
+
*
|
|
4406
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
4407
|
+
*/
|
|
4408
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4409
|
+
/**
|
|
4410
|
+
* 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).
|
|
4411
|
+
*
|
|
4412
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
4413
|
+
*/
|
|
4414
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
4415
|
+
/**
|
|
4416
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
4417
|
+
*
|
|
4418
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
4419
|
+
*/
|
|
4420
|
+
end(): void;
|
|
4421
|
+
/**
|
|
4422
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
4423
|
+
*
|
|
4424
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
4425
|
+
*/
|
|
4426
|
+
endOcclusionQuery(): void;
|
|
4427
|
+
/**
|
|
4428
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
4429
|
+
*
|
|
4430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
4431
|
+
*/
|
|
4432
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
4433
|
+
/**
|
|
4434
|
+
* 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).
|
|
4435
|
+
*
|
|
4436
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
4437
|
+
*/
|
|
4438
|
+
setBlendConstant(color: GPUColor): void;
|
|
4439
|
+
/**
|
|
4440
|
+
* 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.
|
|
4441
|
+
*
|
|
4442
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
4443
|
+
*/
|
|
4444
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
4445
|
+
/**
|
|
4446
|
+
* 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).
|
|
4447
|
+
*
|
|
4448
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
4449
|
+
*/
|
|
4450
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
4451
|
+
/**
|
|
4452
|
+
* 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.
|
|
4453
|
+
*
|
|
4454
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
4455
|
+
*/
|
|
4456
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
declare var GPURenderPassEncoder: {
|
|
4460
|
+
prototype: GPURenderPassEncoder;
|
|
4461
|
+
new(): GPURenderPassEncoder;
|
|
4462
|
+
};
|
|
4463
|
+
|
|
4299
4464
|
/**
|
|
4300
4465
|
* 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.
|
|
4301
4466
|
* Available only in secure contexts.
|
|
@@ -12116,15 +12281,18 @@ type GLsizeiptr = number;
|
|
|
12116
12281
|
type GLuint = number;
|
|
12117
12282
|
type GLuint64 = number;
|
|
12118
12283
|
type GPUBufferDynamicOffset = number;
|
|
12284
|
+
type GPUColor = number[] | GPUColorDict;
|
|
12119
12285
|
type GPUFlagsConstant = number;
|
|
12120
12286
|
type GPUIndex32 = number;
|
|
12121
12287
|
type GPUIntegerCoordinate = number;
|
|
12122
12288
|
type GPUIntegerCoordinateOut = number;
|
|
12123
12289
|
type GPUMapModeFlags = number;
|
|
12290
|
+
type GPUSignedOffset32 = number;
|
|
12124
12291
|
type GPUSize32 = number;
|
|
12125
12292
|
type GPUSize32Out = number;
|
|
12126
12293
|
type GPUSize64 = number;
|
|
12127
12294
|
type GPUSize64Out = number;
|
|
12295
|
+
type GPUStencilValue = number;
|
|
12128
12296
|
type GPUTextureUsageFlags = number;
|
|
12129
12297
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
12130
12298
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -12173,6 +12341,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
12173
12341
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
12174
12342
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12175
12343
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12344
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
12176
12345
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12177
12346
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
12178
12347
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
@@ -12301,6 +12470,21 @@ interface GPUBindingCommandsMixin {
|
|
|
12301
12470
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
12302
12471
|
}
|
|
12303
12472
|
|
|
12473
|
+
interface GPURenderPassEncoder {
|
|
12474
|
+
/**
|
|
12475
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
12476
|
+
*
|
|
12477
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
12478
|
+
*/
|
|
12479
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
12480
|
+
/**
|
|
12481
|
+
* 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).
|
|
12482
|
+
*
|
|
12483
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
12484
|
+
*/
|
|
12485
|
+
setBlendConstant(color: number[]): void;
|
|
12486
|
+
}
|
|
12487
|
+
|
|
12304
12488
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
12305
12489
|
}
|
|
12306
12490
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -216,6 +216,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
216
216
|
fontfaces?: FontFace[];
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
interface GPUColorDict {
|
|
220
|
+
a: number;
|
|
221
|
+
b: number;
|
|
222
|
+
g: number;
|
|
223
|
+
r: number;
|
|
224
|
+
}
|
|
225
|
+
|
|
219
226
|
interface GPUObjectDescriptorBase {
|
|
220
227
|
label?: string;
|
|
221
228
|
}
|
|
@@ -224,6 +231,9 @@ interface GPUPipelineErrorInit {
|
|
|
224
231
|
reason: GPUPipelineErrorReason;
|
|
225
232
|
}
|
|
226
233
|
|
|
234
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
235
|
+
}
|
|
236
|
+
|
|
227
237
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
228
238
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
229
239
|
aspect?: GPUTextureAspect;
|
|
@@ -3880,6 +3890,62 @@ declare var FormData: {
|
|
|
3880
3890
|
new(): FormData;
|
|
3881
3891
|
};
|
|
3882
3892
|
|
|
3893
|
+
/**
|
|
3894
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3895
|
+
* Available only in secure contexts.
|
|
3896
|
+
*
|
|
3897
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3898
|
+
*/
|
|
3899
|
+
interface GPUAdapterInfo {
|
|
3900
|
+
/**
|
|
3901
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
3902
|
+
*
|
|
3903
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3904
|
+
*/
|
|
3905
|
+
readonly architecture: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
3908
|
+
*
|
|
3909
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3910
|
+
*/
|
|
3911
|
+
readonly description: string;
|
|
3912
|
+
/**
|
|
3913
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
3914
|
+
*
|
|
3915
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3916
|
+
*/
|
|
3917
|
+
readonly device: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3920
|
+
*
|
|
3921
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3922
|
+
*/
|
|
3923
|
+
readonly isFallbackAdapter: boolean;
|
|
3924
|
+
/**
|
|
3925
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3926
|
+
*
|
|
3927
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3928
|
+
*/
|
|
3929
|
+
readonly subgroupMaxSize: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3932
|
+
*
|
|
3933
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3934
|
+
*/
|
|
3935
|
+
readonly subgroupMinSize: number;
|
|
3936
|
+
/**
|
|
3937
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
3938
|
+
*
|
|
3939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3940
|
+
*/
|
|
3941
|
+
readonly vendor: string;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
declare var GPUAdapterInfo: {
|
|
3945
|
+
prototype: GPUAdapterInfo;
|
|
3946
|
+
new(): GPUAdapterInfo;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3883
3949
|
/**
|
|
3884
3950
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
3885
3951
|
* Available only in secure contexts.
|
|
@@ -4293,6 +4359,105 @@ declare var GPURenderBundle: {
|
|
|
4293
4359
|
new(): GPURenderBundle;
|
|
4294
4360
|
};
|
|
4295
4361
|
|
|
4362
|
+
/**
|
|
4363
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
4364
|
+
* Available only in secure contexts.
|
|
4365
|
+
*
|
|
4366
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
4367
|
+
*/
|
|
4368
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4369
|
+
/**
|
|
4370
|
+
* 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.
|
|
4371
|
+
*
|
|
4372
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
4373
|
+
*/
|
|
4374
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4377
|
+
declare var GPURenderBundleEncoder: {
|
|
4378
|
+
prototype: GPURenderBundleEncoder;
|
|
4379
|
+
new(): GPURenderBundleEncoder;
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4382
|
+
interface GPURenderCommandsMixin {
|
|
4383
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
4384
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
4385
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
4386
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
4387
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
4388
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4389
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
4390
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4391
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
4392
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4393
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
4394
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
4395
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
4396
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
/**
|
|
4400
|
+
* 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.
|
|
4401
|
+
* Available only in secure contexts.
|
|
4402
|
+
*
|
|
4403
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
4404
|
+
*/
|
|
4405
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4406
|
+
/**
|
|
4407
|
+
* 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).
|
|
4408
|
+
*
|
|
4409
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
4410
|
+
*/
|
|
4411
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
4412
|
+
/**
|
|
4413
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
4414
|
+
*
|
|
4415
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
4416
|
+
*/
|
|
4417
|
+
end(): void;
|
|
4418
|
+
/**
|
|
4419
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
4420
|
+
*
|
|
4421
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
4422
|
+
*/
|
|
4423
|
+
endOcclusionQuery(): void;
|
|
4424
|
+
/**
|
|
4425
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
4426
|
+
*
|
|
4427
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
4428
|
+
*/
|
|
4429
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
4430
|
+
/**
|
|
4431
|
+
* 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).
|
|
4432
|
+
*
|
|
4433
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
4434
|
+
*/
|
|
4435
|
+
setBlendConstant(color: GPUColor): void;
|
|
4436
|
+
/**
|
|
4437
|
+
* 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.
|
|
4438
|
+
*
|
|
4439
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
4440
|
+
*/
|
|
4441
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
4442
|
+
/**
|
|
4443
|
+
* 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).
|
|
4444
|
+
*
|
|
4445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
4446
|
+
*/
|
|
4447
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
4448
|
+
/**
|
|
4449
|
+
* 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.
|
|
4450
|
+
*
|
|
4451
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
4452
|
+
*/
|
|
4453
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
declare var GPURenderPassEncoder: {
|
|
4457
|
+
prototype: GPURenderPassEncoder;
|
|
4458
|
+
new(): GPURenderPassEncoder;
|
|
4459
|
+
};
|
|
4460
|
+
|
|
4296
4461
|
/**
|
|
4297
4462
|
* 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.
|
|
4298
4463
|
* Available only in secure contexts.
|
|
@@ -12113,15 +12278,18 @@ type GLsizeiptr = number;
|
|
|
12113
12278
|
type GLuint = number;
|
|
12114
12279
|
type GLuint64 = number;
|
|
12115
12280
|
type GPUBufferDynamicOffset = number;
|
|
12281
|
+
type GPUColor = number[] | GPUColorDict;
|
|
12116
12282
|
type GPUFlagsConstant = number;
|
|
12117
12283
|
type GPUIndex32 = number;
|
|
12118
12284
|
type GPUIntegerCoordinate = number;
|
|
12119
12285
|
type GPUIntegerCoordinateOut = number;
|
|
12120
12286
|
type GPUMapModeFlags = number;
|
|
12287
|
+
type GPUSignedOffset32 = number;
|
|
12121
12288
|
type GPUSize32 = number;
|
|
12122
12289
|
type GPUSize32Out = number;
|
|
12123
12290
|
type GPUSize64 = number;
|
|
12124
12291
|
type GPUSize64Out = number;
|
|
12292
|
+
type GPUStencilValue = number;
|
|
12125
12293
|
type GPUTextureUsageFlags = number;
|
|
12126
12294
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
12127
12295
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -12170,6 +12338,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
12170
12338
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
12171
12339
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12172
12340
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12341
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
12173
12342
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12174
12343
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
12175
12344
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -68,6 +68,21 @@ interface GPUBindingCommandsMixin {
|
|
|
68
68
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
interface GPURenderPassEncoder {
|
|
72
|
+
/**
|
|
73
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
74
|
+
*
|
|
75
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
76
|
+
*/
|
|
77
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
78
|
+
/**
|
|
79
|
+
* 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).
|
|
80
|
+
*
|
|
81
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
82
|
+
*/
|
|
83
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
84
|
+
}
|
|
85
|
+
|
|
71
86
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
72
87
|
}
|
|
73
88
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -216,6 +216,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
216
216
|
fontfaces?: FontFace[];
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
interface GPUColorDict {
|
|
220
|
+
a: number;
|
|
221
|
+
b: number;
|
|
222
|
+
g: number;
|
|
223
|
+
r: number;
|
|
224
|
+
}
|
|
225
|
+
|
|
219
226
|
interface GPUObjectDescriptorBase {
|
|
220
227
|
label?: string;
|
|
221
228
|
}
|
|
@@ -224,6 +231,9 @@ interface GPUPipelineErrorInit {
|
|
|
224
231
|
reason: GPUPipelineErrorReason;
|
|
225
232
|
}
|
|
226
233
|
|
|
234
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
235
|
+
}
|
|
236
|
+
|
|
227
237
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
228
238
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
229
239
|
aspect?: GPUTextureAspect;
|
|
@@ -3880,6 +3890,62 @@ declare var FormData: {
|
|
|
3880
3890
|
new(): FormData;
|
|
3881
3891
|
};
|
|
3882
3892
|
|
|
3893
|
+
/**
|
|
3894
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3895
|
+
* Available only in secure contexts.
|
|
3896
|
+
*
|
|
3897
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3898
|
+
*/
|
|
3899
|
+
interface GPUAdapterInfo {
|
|
3900
|
+
/**
|
|
3901
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
3902
|
+
*
|
|
3903
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3904
|
+
*/
|
|
3905
|
+
readonly architecture: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
3908
|
+
*
|
|
3909
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3910
|
+
*/
|
|
3911
|
+
readonly description: string;
|
|
3912
|
+
/**
|
|
3913
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
3914
|
+
*
|
|
3915
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3916
|
+
*/
|
|
3917
|
+
readonly device: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3920
|
+
*
|
|
3921
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3922
|
+
*/
|
|
3923
|
+
readonly isFallbackAdapter: boolean;
|
|
3924
|
+
/**
|
|
3925
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3926
|
+
*
|
|
3927
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3928
|
+
*/
|
|
3929
|
+
readonly subgroupMaxSize: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3932
|
+
*
|
|
3933
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3934
|
+
*/
|
|
3935
|
+
readonly subgroupMinSize: number;
|
|
3936
|
+
/**
|
|
3937
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
3938
|
+
*
|
|
3939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3940
|
+
*/
|
|
3941
|
+
readonly vendor: string;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
declare var GPUAdapterInfo: {
|
|
3945
|
+
prototype: GPUAdapterInfo;
|
|
3946
|
+
new(): GPUAdapterInfo;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3883
3949
|
/**
|
|
3884
3950
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
3885
3951
|
* Available only in secure contexts.
|
|
@@ -4293,6 +4359,105 @@ declare var GPURenderBundle: {
|
|
|
4293
4359
|
new(): GPURenderBundle;
|
|
4294
4360
|
};
|
|
4295
4361
|
|
|
4362
|
+
/**
|
|
4363
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
4364
|
+
* Available only in secure contexts.
|
|
4365
|
+
*
|
|
4366
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
4367
|
+
*/
|
|
4368
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4369
|
+
/**
|
|
4370
|
+
* 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.
|
|
4371
|
+
*
|
|
4372
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
4373
|
+
*/
|
|
4374
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4377
|
+
declare var GPURenderBundleEncoder: {
|
|
4378
|
+
prototype: GPURenderBundleEncoder;
|
|
4379
|
+
new(): GPURenderBundleEncoder;
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4382
|
+
interface GPURenderCommandsMixin {
|
|
4383
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
4384
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
4385
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
4386
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
4387
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
4388
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4389
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
4390
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4391
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
4392
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4393
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
4394
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
4395
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
4396
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
/**
|
|
4400
|
+
* 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.
|
|
4401
|
+
* Available only in secure contexts.
|
|
4402
|
+
*
|
|
4403
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
4404
|
+
*/
|
|
4405
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4406
|
+
/**
|
|
4407
|
+
* 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).
|
|
4408
|
+
*
|
|
4409
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
4410
|
+
*/
|
|
4411
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
4412
|
+
/**
|
|
4413
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
4414
|
+
*
|
|
4415
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
4416
|
+
*/
|
|
4417
|
+
end(): void;
|
|
4418
|
+
/**
|
|
4419
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
4420
|
+
*
|
|
4421
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
4422
|
+
*/
|
|
4423
|
+
endOcclusionQuery(): void;
|
|
4424
|
+
/**
|
|
4425
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
4426
|
+
*
|
|
4427
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
4428
|
+
*/
|
|
4429
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
4430
|
+
/**
|
|
4431
|
+
* 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).
|
|
4432
|
+
*
|
|
4433
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
4434
|
+
*/
|
|
4435
|
+
setBlendConstant(color: GPUColor): void;
|
|
4436
|
+
/**
|
|
4437
|
+
* 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.
|
|
4438
|
+
*
|
|
4439
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
4440
|
+
*/
|
|
4441
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
4442
|
+
/**
|
|
4443
|
+
* 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).
|
|
4444
|
+
*
|
|
4445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
4446
|
+
*/
|
|
4447
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
4448
|
+
/**
|
|
4449
|
+
* 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.
|
|
4450
|
+
*
|
|
4451
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
4452
|
+
*/
|
|
4453
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
declare var GPURenderPassEncoder: {
|
|
4457
|
+
prototype: GPURenderPassEncoder;
|
|
4458
|
+
new(): GPURenderPassEncoder;
|
|
4459
|
+
};
|
|
4460
|
+
|
|
4296
4461
|
/**
|
|
4297
4462
|
* 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.
|
|
4298
4463
|
* Available only in secure contexts.
|
|
@@ -12113,15 +12278,18 @@ type GLsizeiptr = number;
|
|
|
12113
12278
|
type GLuint = number;
|
|
12114
12279
|
type GLuint64 = number;
|
|
12115
12280
|
type GPUBufferDynamicOffset = number;
|
|
12281
|
+
type GPUColor = number[] | GPUColorDict;
|
|
12116
12282
|
type GPUFlagsConstant = number;
|
|
12117
12283
|
type GPUIndex32 = number;
|
|
12118
12284
|
type GPUIntegerCoordinate = number;
|
|
12119
12285
|
type GPUIntegerCoordinateOut = number;
|
|
12120
12286
|
type GPUMapModeFlags = number;
|
|
12287
|
+
type GPUSignedOffset32 = number;
|
|
12121
12288
|
type GPUSize32 = number;
|
|
12122
12289
|
type GPUSize32Out = number;
|
|
12123
12290
|
type GPUSize64 = number;
|
|
12124
12291
|
type GPUSize64Out = number;
|
|
12292
|
+
type GPUStencilValue = number;
|
|
12125
12293
|
type GPUTextureUsageFlags = number;
|
|
12126
12294
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
12127
12295
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -12170,6 +12338,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
12170
12338
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
12171
12339
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12172
12340
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12341
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
12173
12342
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12174
12343
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
12175
12344
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -72,6 +72,21 @@ interface GPUBindingCommandsMixin {
|
|
|
72
72
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
interface GPURenderPassEncoder {
|
|
76
|
+
/**
|
|
77
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
78
|
+
*
|
|
79
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
80
|
+
*/
|
|
81
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
82
|
+
/**
|
|
83
|
+
* 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).
|
|
84
|
+
*
|
|
85
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
86
|
+
*/
|
|
87
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
88
|
+
}
|
|
89
|
+
|
|
75
90
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
76
91
|
}
|
|
77
92
|
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -216,6 +216,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
216
216
|
fontfaces?: FontFace[];
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
interface GPUColorDict {
|
|
220
|
+
a: number;
|
|
221
|
+
b: number;
|
|
222
|
+
g: number;
|
|
223
|
+
r: number;
|
|
224
|
+
}
|
|
225
|
+
|
|
219
226
|
interface GPUObjectDescriptorBase {
|
|
220
227
|
label?: string;
|
|
221
228
|
}
|
|
@@ -224,6 +231,9 @@ interface GPUPipelineErrorInit {
|
|
|
224
231
|
reason: GPUPipelineErrorReason;
|
|
225
232
|
}
|
|
226
233
|
|
|
234
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
235
|
+
}
|
|
236
|
+
|
|
227
237
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
228
238
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
229
239
|
aspect?: GPUTextureAspect;
|
|
@@ -3880,6 +3890,62 @@ declare var FormData: {
|
|
|
3880
3890
|
new(): FormData;
|
|
3881
3891
|
};
|
|
3882
3892
|
|
|
3893
|
+
/**
|
|
3894
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
3895
|
+
* Available only in secure contexts.
|
|
3896
|
+
*
|
|
3897
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3898
|
+
*/
|
|
3899
|
+
interface GPUAdapterInfo {
|
|
3900
|
+
/**
|
|
3901
|
+
* The **`architecture`** read-only property of the GPUAdapterInfo interface returns the name of the family or class of GPUs the adapter belongs to, or an empty string if it is not available.
|
|
3902
|
+
*
|
|
3903
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
3904
|
+
*/
|
|
3905
|
+
readonly architecture: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* The **`description`** read-only property of the GPUAdapterInfo interface returns a human-readable string describing the adapter, or an empty string if it is not available.
|
|
3908
|
+
*
|
|
3909
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
3910
|
+
*/
|
|
3911
|
+
readonly description: string;
|
|
3912
|
+
/**
|
|
3913
|
+
* The **`device`** read-only property of the GPUAdapterInfo interface returns a vendor-specific identifier for the adapter, or an empty string if it is not available.
|
|
3914
|
+
*
|
|
3915
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
3916
|
+
*/
|
|
3917
|
+
readonly device: string;
|
|
3918
|
+
/**
|
|
3919
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
3920
|
+
*
|
|
3921
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
3922
|
+
*/
|
|
3923
|
+
readonly isFallbackAdapter: boolean;
|
|
3924
|
+
/**
|
|
3925
|
+
* The **`subgroupMaxSize`** read-only property of the GPUAdapterInfo interface returns the maximum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3926
|
+
*
|
|
3927
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
3928
|
+
*/
|
|
3929
|
+
readonly subgroupMaxSize: number;
|
|
3930
|
+
/**
|
|
3931
|
+
* The **`subgroupMinSize`** read-only property of the GPUAdapterInfo interface returns the minimum supported subgroup size for the GPUAdapter. This can be used along with the subgroups feature.
|
|
3932
|
+
*
|
|
3933
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
3934
|
+
*/
|
|
3935
|
+
readonly subgroupMinSize: number;
|
|
3936
|
+
/**
|
|
3937
|
+
* The **`vendor`** read-only property of the GPUAdapterInfo interface returns the name of the adapter vendor, or an empty string if it is not available.
|
|
3938
|
+
*
|
|
3939
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
3940
|
+
*/
|
|
3941
|
+
readonly vendor: string;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
declare var GPUAdapterInfo: {
|
|
3945
|
+
prototype: GPUAdapterInfo;
|
|
3946
|
+
new(): GPUAdapterInfo;
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3883
3949
|
/**
|
|
3884
3950
|
* The **`GPUBindGroup`** interface of the WebGPU API is based on a GPUBindGroupLayout and defines a set of resources to be bound together in a group and how those resources are used in shader stages.
|
|
3885
3951
|
* Available only in secure contexts.
|
|
@@ -4293,6 +4359,105 @@ declare var GPURenderBundle: {
|
|
|
4293
4359
|
new(): GPURenderBundle;
|
|
4294
4360
|
};
|
|
4295
4361
|
|
|
4362
|
+
/**
|
|
4363
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
4364
|
+
* Available only in secure contexts.
|
|
4365
|
+
*
|
|
4366
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
4367
|
+
*/
|
|
4368
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4369
|
+
/**
|
|
4370
|
+
* 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.
|
|
4371
|
+
*
|
|
4372
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
4373
|
+
*/
|
|
4374
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4377
|
+
declare var GPURenderBundleEncoder: {
|
|
4378
|
+
prototype: GPURenderBundleEncoder;
|
|
4379
|
+
new(): GPURenderBundleEncoder;
|
|
4380
|
+
};
|
|
4381
|
+
|
|
4382
|
+
interface GPURenderCommandsMixin {
|
|
4383
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
4384
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
4385
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
4386
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
4387
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
4388
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4389
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
4390
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
4391
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
4392
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4393
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
4394
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
4395
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
4396
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
4397
|
+
}
|
|
4398
|
+
|
|
4399
|
+
/**
|
|
4400
|
+
* 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.
|
|
4401
|
+
* Available only in secure contexts.
|
|
4402
|
+
*
|
|
4403
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
4404
|
+
*/
|
|
4405
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
4406
|
+
/**
|
|
4407
|
+
* 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).
|
|
4408
|
+
*
|
|
4409
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
4410
|
+
*/
|
|
4411
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
4412
|
+
/**
|
|
4413
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
4414
|
+
*
|
|
4415
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
4416
|
+
*/
|
|
4417
|
+
end(): void;
|
|
4418
|
+
/**
|
|
4419
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
4420
|
+
*
|
|
4421
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
4422
|
+
*/
|
|
4423
|
+
endOcclusionQuery(): void;
|
|
4424
|
+
/**
|
|
4425
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
4426
|
+
*
|
|
4427
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
4428
|
+
*/
|
|
4429
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
4430
|
+
/**
|
|
4431
|
+
* 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).
|
|
4432
|
+
*
|
|
4433
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
4434
|
+
*/
|
|
4435
|
+
setBlendConstant(color: GPUColor): void;
|
|
4436
|
+
/**
|
|
4437
|
+
* 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.
|
|
4438
|
+
*
|
|
4439
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
4440
|
+
*/
|
|
4441
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
4442
|
+
/**
|
|
4443
|
+
* 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).
|
|
4444
|
+
*
|
|
4445
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
4446
|
+
*/
|
|
4447
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
4448
|
+
/**
|
|
4449
|
+
* 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.
|
|
4450
|
+
*
|
|
4451
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
4452
|
+
*/
|
|
4453
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
declare var GPURenderPassEncoder: {
|
|
4457
|
+
prototype: GPURenderPassEncoder;
|
|
4458
|
+
new(): GPURenderPassEncoder;
|
|
4459
|
+
};
|
|
4460
|
+
|
|
4296
4461
|
/**
|
|
4297
4462
|
* 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.
|
|
4298
4463
|
* Available only in secure contexts.
|
|
@@ -12113,15 +12278,18 @@ type GLsizeiptr = number;
|
|
|
12113
12278
|
type GLuint = number;
|
|
12114
12279
|
type GLuint64 = number;
|
|
12115
12280
|
type GPUBufferDynamicOffset = number;
|
|
12281
|
+
type GPUColor = number[] | GPUColorDict;
|
|
12116
12282
|
type GPUFlagsConstant = number;
|
|
12117
12283
|
type GPUIndex32 = number;
|
|
12118
12284
|
type GPUIntegerCoordinate = number;
|
|
12119
12285
|
type GPUIntegerCoordinateOut = number;
|
|
12120
12286
|
type GPUMapModeFlags = number;
|
|
12287
|
+
type GPUSignedOffset32 = number;
|
|
12121
12288
|
type GPUSize32 = number;
|
|
12122
12289
|
type GPUSize32Out = number;
|
|
12123
12290
|
type GPUSize64 = number;
|
|
12124
12291
|
type GPUSize64Out = number;
|
|
12292
|
+
type GPUStencilValue = number;
|
|
12125
12293
|
type GPUTextureUsageFlags = number;
|
|
12126
12294
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
12127
12295
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -12170,6 +12338,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
12170
12338
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
12171
12339
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12172
12340
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
12341
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
12173
12342
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12174
12343
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
12175
12344
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -72,6 +72,21 @@ interface GPUBindingCommandsMixin {
|
|
|
72
72
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
interface GPURenderPassEncoder {
|
|
76
|
+
/**
|
|
77
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
78
|
+
*
|
|
79
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
80
|
+
*/
|
|
81
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
82
|
+
/**
|
|
83
|
+
* 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).
|
|
84
|
+
*
|
|
85
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
86
|
+
*/
|
|
87
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
88
|
+
}
|
|
89
|
+
|
|
75
90
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
76
91
|
}
|
|
77
92
|
|