@types/webworker 0.0.59 → 0.0.61
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
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.61 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.61.
|
package/index.d.ts
CHANGED
|
@@ -365,6 +365,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
365
365
|
fontfaces?: FontFace[];
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
+
interface GPUColorDict {
|
|
369
|
+
a: number;
|
|
370
|
+
b: number;
|
|
371
|
+
g: number;
|
|
372
|
+
r: number;
|
|
373
|
+
}
|
|
374
|
+
|
|
368
375
|
interface GPUObjectDescriptorBase {
|
|
369
376
|
label?: string;
|
|
370
377
|
}
|
|
@@ -373,6 +380,9 @@ interface GPUPipelineErrorInit {
|
|
|
373
380
|
reason: GPUPipelineErrorReason;
|
|
374
381
|
}
|
|
375
382
|
|
|
383
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
384
|
+
}
|
|
385
|
+
|
|
376
386
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
377
387
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
378
388
|
aspect?: GPUTextureAspect;
|
|
@@ -4902,6 +4912,62 @@ declare var FormData: {
|
|
|
4902
4912
|
new(): FormData;
|
|
4903
4913
|
};
|
|
4904
4914
|
|
|
4915
|
+
/**
|
|
4916
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4917
|
+
* Available only in secure contexts.
|
|
4918
|
+
*
|
|
4919
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4920
|
+
*/
|
|
4921
|
+
interface GPUAdapterInfo {
|
|
4922
|
+
/**
|
|
4923
|
+
* 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.
|
|
4924
|
+
*
|
|
4925
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4926
|
+
*/
|
|
4927
|
+
readonly architecture: string;
|
|
4928
|
+
/**
|
|
4929
|
+
* 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.
|
|
4930
|
+
*
|
|
4931
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4932
|
+
*/
|
|
4933
|
+
readonly description: string;
|
|
4934
|
+
/**
|
|
4935
|
+
* 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.
|
|
4936
|
+
*
|
|
4937
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4938
|
+
*/
|
|
4939
|
+
readonly device: string;
|
|
4940
|
+
/**
|
|
4941
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4942
|
+
*
|
|
4943
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4944
|
+
*/
|
|
4945
|
+
readonly isFallbackAdapter: boolean;
|
|
4946
|
+
/**
|
|
4947
|
+
* 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.
|
|
4948
|
+
*
|
|
4949
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4950
|
+
*/
|
|
4951
|
+
readonly subgroupMaxSize: number;
|
|
4952
|
+
/**
|
|
4953
|
+
* 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.
|
|
4954
|
+
*
|
|
4955
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4956
|
+
*/
|
|
4957
|
+
readonly subgroupMinSize: number;
|
|
4958
|
+
/**
|
|
4959
|
+
* 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.
|
|
4960
|
+
*
|
|
4961
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4962
|
+
*/
|
|
4963
|
+
readonly vendor: string;
|
|
4964
|
+
}
|
|
4965
|
+
|
|
4966
|
+
declare var GPUAdapterInfo: {
|
|
4967
|
+
prototype: GPUAdapterInfo;
|
|
4968
|
+
new(): GPUAdapterInfo;
|
|
4969
|
+
};
|
|
4970
|
+
|
|
4905
4971
|
/**
|
|
4906
4972
|
* 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.
|
|
4907
4973
|
* Available only in secure contexts.
|
|
@@ -5315,6 +5381,105 @@ declare var GPURenderBundle: {
|
|
|
5315
5381
|
new(): GPURenderBundle;
|
|
5316
5382
|
};
|
|
5317
5383
|
|
|
5384
|
+
/**
|
|
5385
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
5386
|
+
* Available only in secure contexts.
|
|
5387
|
+
*
|
|
5388
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
5389
|
+
*/
|
|
5390
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5391
|
+
/**
|
|
5392
|
+
* 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.
|
|
5393
|
+
*
|
|
5394
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
5395
|
+
*/
|
|
5396
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
declare var GPURenderBundleEncoder: {
|
|
5400
|
+
prototype: GPURenderBundleEncoder;
|
|
5401
|
+
new(): GPURenderBundleEncoder;
|
|
5402
|
+
};
|
|
5403
|
+
|
|
5404
|
+
interface GPURenderCommandsMixin {
|
|
5405
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
5406
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
5407
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
5408
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
5409
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
5410
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5411
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
5412
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5413
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
5414
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5415
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
5416
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
5417
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
5418
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5419
|
+
}
|
|
5420
|
+
|
|
5421
|
+
/**
|
|
5422
|
+
* 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.
|
|
5423
|
+
* Available only in secure contexts.
|
|
5424
|
+
*
|
|
5425
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
5426
|
+
*/
|
|
5427
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5428
|
+
/**
|
|
5429
|
+
* 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).
|
|
5430
|
+
*
|
|
5431
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
5432
|
+
*/
|
|
5433
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
5434
|
+
/**
|
|
5435
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
5436
|
+
*
|
|
5437
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
5438
|
+
*/
|
|
5439
|
+
end(): void;
|
|
5440
|
+
/**
|
|
5441
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
5442
|
+
*
|
|
5443
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
5444
|
+
*/
|
|
5445
|
+
endOcclusionQuery(): void;
|
|
5446
|
+
/**
|
|
5447
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
5448
|
+
*
|
|
5449
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
5450
|
+
*/
|
|
5451
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
5452
|
+
/**
|
|
5453
|
+
* 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).
|
|
5454
|
+
*
|
|
5455
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
5456
|
+
*/
|
|
5457
|
+
setBlendConstant(color: GPUColor): void;
|
|
5458
|
+
/**
|
|
5459
|
+
* 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.
|
|
5460
|
+
*
|
|
5461
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
5462
|
+
*/
|
|
5463
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
5464
|
+
/**
|
|
5465
|
+
* 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).
|
|
5466
|
+
*
|
|
5467
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
5468
|
+
*/
|
|
5469
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
5470
|
+
/**
|
|
5471
|
+
* 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.
|
|
5472
|
+
*
|
|
5473
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
5474
|
+
*/
|
|
5475
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
declare var GPURenderPassEncoder: {
|
|
5479
|
+
prototype: GPURenderPassEncoder;
|
|
5480
|
+
new(): GPURenderPassEncoder;
|
|
5481
|
+
};
|
|
5482
|
+
|
|
5318
5483
|
/**
|
|
5319
5484
|
* 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.
|
|
5320
5485
|
* Available only in secure contexts.
|
|
@@ -14123,15 +14288,18 @@ type GLsizeiptr = number;
|
|
|
14123
14288
|
type GLuint = number;
|
|
14124
14289
|
type GLuint64 = number;
|
|
14125
14290
|
type GPUBufferDynamicOffset = number;
|
|
14291
|
+
type GPUColor = number[] | GPUColorDict;
|
|
14126
14292
|
type GPUFlagsConstant = number;
|
|
14127
14293
|
type GPUIndex32 = number;
|
|
14128
14294
|
type GPUIntegerCoordinate = number;
|
|
14129
14295
|
type GPUIntegerCoordinateOut = number;
|
|
14130
14296
|
type GPUMapModeFlags = number;
|
|
14297
|
+
type GPUSignedOffset32 = number;
|
|
14131
14298
|
type GPUSize32 = number;
|
|
14132
14299
|
type GPUSize32Out = number;
|
|
14133
14300
|
type GPUSize64 = number;
|
|
14134
14301
|
type GPUSize64Out = number;
|
|
14302
|
+
type GPUStencilValue = number;
|
|
14135
14303
|
type GPUTextureUsageFlags = number;
|
|
14136
14304
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
14137
14305
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -14193,6 +14361,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
|
14193
14361
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14194
14362
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14195
14363
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14364
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
14196
14365
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14197
14366
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14198
14367
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
@@ -14345,6 +14514,21 @@ interface GPUBindingCommandsMixin {
|
|
|
14345
14514
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
14346
14515
|
}
|
|
14347
14516
|
|
|
14517
|
+
interface GPURenderPassEncoder {
|
|
14518
|
+
/**
|
|
14519
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
14520
|
+
*
|
|
14521
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
14522
|
+
*/
|
|
14523
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
14524
|
+
/**
|
|
14525
|
+
* 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).
|
|
14526
|
+
*
|
|
14527
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
14528
|
+
*/
|
|
14529
|
+
setBlendConstant(color: number[]): void;
|
|
14530
|
+
}
|
|
14531
|
+
|
|
14348
14532
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
14349
14533
|
}
|
|
14350
14534
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -362,6 +362,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
362
362
|
fontfaces?: FontFace[];
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
interface GPUColorDict {
|
|
366
|
+
a: number;
|
|
367
|
+
b: number;
|
|
368
|
+
g: number;
|
|
369
|
+
r: number;
|
|
370
|
+
}
|
|
371
|
+
|
|
365
372
|
interface GPUObjectDescriptorBase {
|
|
366
373
|
label?: string;
|
|
367
374
|
}
|
|
@@ -370,6 +377,9 @@ interface GPUPipelineErrorInit {
|
|
|
370
377
|
reason: GPUPipelineErrorReason;
|
|
371
378
|
}
|
|
372
379
|
|
|
380
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
381
|
+
}
|
|
382
|
+
|
|
373
383
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
374
384
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
375
385
|
aspect?: GPUTextureAspect;
|
|
@@ -4899,6 +4909,62 @@ declare var FormData: {
|
|
|
4899
4909
|
new(): FormData;
|
|
4900
4910
|
};
|
|
4901
4911
|
|
|
4912
|
+
/**
|
|
4913
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4914
|
+
* Available only in secure contexts.
|
|
4915
|
+
*
|
|
4916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4917
|
+
*/
|
|
4918
|
+
interface GPUAdapterInfo {
|
|
4919
|
+
/**
|
|
4920
|
+
* 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.
|
|
4921
|
+
*
|
|
4922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4923
|
+
*/
|
|
4924
|
+
readonly architecture: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* 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.
|
|
4927
|
+
*
|
|
4928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4929
|
+
*/
|
|
4930
|
+
readonly description: string;
|
|
4931
|
+
/**
|
|
4932
|
+
* 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.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4935
|
+
*/
|
|
4936
|
+
readonly device: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly isFallbackAdapter: boolean;
|
|
4943
|
+
/**
|
|
4944
|
+
* 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.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly subgroupMaxSize: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* 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.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly subgroupMinSize: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* 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.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4959
|
+
*/
|
|
4960
|
+
readonly vendor: string;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
declare var GPUAdapterInfo: {
|
|
4964
|
+
prototype: GPUAdapterInfo;
|
|
4965
|
+
new(): GPUAdapterInfo;
|
|
4966
|
+
};
|
|
4967
|
+
|
|
4902
4968
|
/**
|
|
4903
4969
|
* 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.
|
|
4904
4970
|
* Available only in secure contexts.
|
|
@@ -5312,6 +5378,105 @@ declare var GPURenderBundle: {
|
|
|
5312
5378
|
new(): GPURenderBundle;
|
|
5313
5379
|
};
|
|
5314
5380
|
|
|
5381
|
+
/**
|
|
5382
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
5383
|
+
* Available only in secure contexts.
|
|
5384
|
+
*
|
|
5385
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
5386
|
+
*/
|
|
5387
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5388
|
+
/**
|
|
5389
|
+
* 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.
|
|
5390
|
+
*
|
|
5391
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
5392
|
+
*/
|
|
5393
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
5394
|
+
}
|
|
5395
|
+
|
|
5396
|
+
declare var GPURenderBundleEncoder: {
|
|
5397
|
+
prototype: GPURenderBundleEncoder;
|
|
5398
|
+
new(): GPURenderBundleEncoder;
|
|
5399
|
+
};
|
|
5400
|
+
|
|
5401
|
+
interface GPURenderCommandsMixin {
|
|
5402
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
5403
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
5404
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
5405
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
5406
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
5407
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5408
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
5409
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5410
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
5411
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5412
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
5413
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
5414
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
5415
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5416
|
+
}
|
|
5417
|
+
|
|
5418
|
+
/**
|
|
5419
|
+
* 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.
|
|
5420
|
+
* Available only in secure contexts.
|
|
5421
|
+
*
|
|
5422
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
5423
|
+
*/
|
|
5424
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5425
|
+
/**
|
|
5426
|
+
* 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).
|
|
5427
|
+
*
|
|
5428
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
5429
|
+
*/
|
|
5430
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
5431
|
+
/**
|
|
5432
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
5433
|
+
*
|
|
5434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
5435
|
+
*/
|
|
5436
|
+
end(): void;
|
|
5437
|
+
/**
|
|
5438
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
5439
|
+
*
|
|
5440
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
5441
|
+
*/
|
|
5442
|
+
endOcclusionQuery(): void;
|
|
5443
|
+
/**
|
|
5444
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
5445
|
+
*
|
|
5446
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
5447
|
+
*/
|
|
5448
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
5449
|
+
/**
|
|
5450
|
+
* 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).
|
|
5451
|
+
*
|
|
5452
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
5453
|
+
*/
|
|
5454
|
+
setBlendConstant(color: GPUColor): void;
|
|
5455
|
+
/**
|
|
5456
|
+
* 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.
|
|
5457
|
+
*
|
|
5458
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
5459
|
+
*/
|
|
5460
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
5461
|
+
/**
|
|
5462
|
+
* 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).
|
|
5463
|
+
*
|
|
5464
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
5465
|
+
*/
|
|
5466
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
5467
|
+
/**
|
|
5468
|
+
* 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.
|
|
5469
|
+
*
|
|
5470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
5471
|
+
*/
|
|
5472
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
declare var GPURenderPassEncoder: {
|
|
5476
|
+
prototype: GPURenderPassEncoder;
|
|
5477
|
+
new(): GPURenderPassEncoder;
|
|
5478
|
+
};
|
|
5479
|
+
|
|
5315
5480
|
/**
|
|
5316
5481
|
* 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.
|
|
5317
5482
|
* Available only in secure contexts.
|
|
@@ -14120,15 +14285,18 @@ type GLsizeiptr = number;
|
|
|
14120
14285
|
type GLuint = number;
|
|
14121
14286
|
type GLuint64 = number;
|
|
14122
14287
|
type GPUBufferDynamicOffset = number;
|
|
14288
|
+
type GPUColor = number[] | GPUColorDict;
|
|
14123
14289
|
type GPUFlagsConstant = number;
|
|
14124
14290
|
type GPUIndex32 = number;
|
|
14125
14291
|
type GPUIntegerCoordinate = number;
|
|
14126
14292
|
type GPUIntegerCoordinateOut = number;
|
|
14127
14293
|
type GPUMapModeFlags = number;
|
|
14294
|
+
type GPUSignedOffset32 = number;
|
|
14128
14295
|
type GPUSize32 = number;
|
|
14129
14296
|
type GPUSize32Out = number;
|
|
14130
14297
|
type GPUSize64 = number;
|
|
14131
14298
|
type GPUSize64Out = number;
|
|
14299
|
+
type GPUStencilValue = number;
|
|
14132
14300
|
type GPUTextureUsageFlags = number;
|
|
14133
14301
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
14134
14302
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -14190,6 +14358,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
|
14190
14358
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14191
14359
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14192
14360
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14361
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
14193
14362
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14194
14363
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14195
14364
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -83,6 +83,21 @@ interface GPUBindingCommandsMixin {
|
|
|
83
83
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
interface GPURenderPassEncoder {
|
|
87
|
+
/**
|
|
88
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
89
|
+
*
|
|
90
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
91
|
+
*/
|
|
92
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
93
|
+
/**
|
|
94
|
+
* 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).
|
|
95
|
+
*
|
|
96
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
97
|
+
*/
|
|
98
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
86
101
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
87
102
|
}
|
|
88
103
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -362,6 +362,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
362
362
|
fontfaces?: FontFace[];
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
interface GPUColorDict {
|
|
366
|
+
a: number;
|
|
367
|
+
b: number;
|
|
368
|
+
g: number;
|
|
369
|
+
r: number;
|
|
370
|
+
}
|
|
371
|
+
|
|
365
372
|
interface GPUObjectDescriptorBase {
|
|
366
373
|
label?: string;
|
|
367
374
|
}
|
|
@@ -370,6 +377,9 @@ interface GPUPipelineErrorInit {
|
|
|
370
377
|
reason: GPUPipelineErrorReason;
|
|
371
378
|
}
|
|
372
379
|
|
|
380
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
381
|
+
}
|
|
382
|
+
|
|
373
383
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
374
384
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
375
385
|
aspect?: GPUTextureAspect;
|
|
@@ -4899,6 +4909,62 @@ declare var FormData: {
|
|
|
4899
4909
|
new(): FormData;
|
|
4900
4910
|
};
|
|
4901
4911
|
|
|
4912
|
+
/**
|
|
4913
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4914
|
+
* Available only in secure contexts.
|
|
4915
|
+
*
|
|
4916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4917
|
+
*/
|
|
4918
|
+
interface GPUAdapterInfo {
|
|
4919
|
+
/**
|
|
4920
|
+
* 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.
|
|
4921
|
+
*
|
|
4922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4923
|
+
*/
|
|
4924
|
+
readonly architecture: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* 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.
|
|
4927
|
+
*
|
|
4928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4929
|
+
*/
|
|
4930
|
+
readonly description: string;
|
|
4931
|
+
/**
|
|
4932
|
+
* 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.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4935
|
+
*/
|
|
4936
|
+
readonly device: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly isFallbackAdapter: boolean;
|
|
4943
|
+
/**
|
|
4944
|
+
* 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.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly subgroupMaxSize: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* 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.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly subgroupMinSize: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* 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.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4959
|
+
*/
|
|
4960
|
+
readonly vendor: string;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
declare var GPUAdapterInfo: {
|
|
4964
|
+
prototype: GPUAdapterInfo;
|
|
4965
|
+
new(): GPUAdapterInfo;
|
|
4966
|
+
};
|
|
4967
|
+
|
|
4902
4968
|
/**
|
|
4903
4969
|
* 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.
|
|
4904
4970
|
* Available only in secure contexts.
|
|
@@ -5312,6 +5378,105 @@ declare var GPURenderBundle: {
|
|
|
5312
5378
|
new(): GPURenderBundle;
|
|
5313
5379
|
};
|
|
5314
5380
|
|
|
5381
|
+
/**
|
|
5382
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
5383
|
+
* Available only in secure contexts.
|
|
5384
|
+
*
|
|
5385
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
5386
|
+
*/
|
|
5387
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5388
|
+
/**
|
|
5389
|
+
* 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.
|
|
5390
|
+
*
|
|
5391
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
5392
|
+
*/
|
|
5393
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
5394
|
+
}
|
|
5395
|
+
|
|
5396
|
+
declare var GPURenderBundleEncoder: {
|
|
5397
|
+
prototype: GPURenderBundleEncoder;
|
|
5398
|
+
new(): GPURenderBundleEncoder;
|
|
5399
|
+
};
|
|
5400
|
+
|
|
5401
|
+
interface GPURenderCommandsMixin {
|
|
5402
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
5403
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
5404
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
5405
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
5406
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
5407
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5408
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
5409
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5410
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
5411
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5412
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
5413
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
5414
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
5415
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5416
|
+
}
|
|
5417
|
+
|
|
5418
|
+
/**
|
|
5419
|
+
* 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.
|
|
5420
|
+
* Available only in secure contexts.
|
|
5421
|
+
*
|
|
5422
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
5423
|
+
*/
|
|
5424
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5425
|
+
/**
|
|
5426
|
+
* 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).
|
|
5427
|
+
*
|
|
5428
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
5429
|
+
*/
|
|
5430
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
5431
|
+
/**
|
|
5432
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
5433
|
+
*
|
|
5434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
5435
|
+
*/
|
|
5436
|
+
end(): void;
|
|
5437
|
+
/**
|
|
5438
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
5439
|
+
*
|
|
5440
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
5441
|
+
*/
|
|
5442
|
+
endOcclusionQuery(): void;
|
|
5443
|
+
/**
|
|
5444
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
5445
|
+
*
|
|
5446
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
5447
|
+
*/
|
|
5448
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
5449
|
+
/**
|
|
5450
|
+
* 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).
|
|
5451
|
+
*
|
|
5452
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
5453
|
+
*/
|
|
5454
|
+
setBlendConstant(color: GPUColor): void;
|
|
5455
|
+
/**
|
|
5456
|
+
* 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.
|
|
5457
|
+
*
|
|
5458
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
5459
|
+
*/
|
|
5460
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
5461
|
+
/**
|
|
5462
|
+
* 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).
|
|
5463
|
+
*
|
|
5464
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
5465
|
+
*/
|
|
5466
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
5467
|
+
/**
|
|
5468
|
+
* 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.
|
|
5469
|
+
*
|
|
5470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
5471
|
+
*/
|
|
5472
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
declare var GPURenderPassEncoder: {
|
|
5476
|
+
prototype: GPURenderPassEncoder;
|
|
5477
|
+
new(): GPURenderPassEncoder;
|
|
5478
|
+
};
|
|
5479
|
+
|
|
5315
5480
|
/**
|
|
5316
5481
|
* 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.
|
|
5317
5482
|
* Available only in secure contexts.
|
|
@@ -14120,15 +14285,18 @@ type GLsizeiptr = number;
|
|
|
14120
14285
|
type GLuint = number;
|
|
14121
14286
|
type GLuint64 = number;
|
|
14122
14287
|
type GPUBufferDynamicOffset = number;
|
|
14288
|
+
type GPUColor = number[] | GPUColorDict;
|
|
14123
14289
|
type GPUFlagsConstant = number;
|
|
14124
14290
|
type GPUIndex32 = number;
|
|
14125
14291
|
type GPUIntegerCoordinate = number;
|
|
14126
14292
|
type GPUIntegerCoordinateOut = number;
|
|
14127
14293
|
type GPUMapModeFlags = number;
|
|
14294
|
+
type GPUSignedOffset32 = number;
|
|
14128
14295
|
type GPUSize32 = number;
|
|
14129
14296
|
type GPUSize32Out = number;
|
|
14130
14297
|
type GPUSize64 = number;
|
|
14131
14298
|
type GPUSize64Out = number;
|
|
14299
|
+
type GPUStencilValue = number;
|
|
14132
14300
|
type GPUTextureUsageFlags = number;
|
|
14133
14301
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
14134
14302
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -14190,6 +14358,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
|
14190
14358
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14191
14359
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14192
14360
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14361
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
14193
14362
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14194
14363
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14195
14364
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -87,6 +87,21 @@ interface GPUBindingCommandsMixin {
|
|
|
87
87
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
interface GPURenderPassEncoder {
|
|
91
|
+
/**
|
|
92
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
93
|
+
*
|
|
94
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
95
|
+
*/
|
|
96
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
97
|
+
/**
|
|
98
|
+
* 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).
|
|
99
|
+
*
|
|
100
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
101
|
+
*/
|
|
102
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
91
106
|
}
|
|
92
107
|
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -362,6 +362,13 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
362
362
|
fontfaces?: FontFace[];
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
interface GPUColorDict {
|
|
366
|
+
a: number;
|
|
367
|
+
b: number;
|
|
368
|
+
g: number;
|
|
369
|
+
r: number;
|
|
370
|
+
}
|
|
371
|
+
|
|
365
372
|
interface GPUObjectDescriptorBase {
|
|
366
373
|
label?: string;
|
|
367
374
|
}
|
|
@@ -370,6 +377,9 @@ interface GPUPipelineErrorInit {
|
|
|
370
377
|
reason: GPUPipelineErrorReason;
|
|
371
378
|
}
|
|
372
379
|
|
|
380
|
+
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
381
|
+
}
|
|
382
|
+
|
|
373
383
|
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
374
384
|
arrayLayerCount?: GPUIntegerCoordinate;
|
|
375
385
|
aspect?: GPUTextureAspect;
|
|
@@ -4899,6 +4909,62 @@ declare var FormData: {
|
|
|
4899
4909
|
new(): FormData;
|
|
4900
4910
|
};
|
|
4901
4911
|
|
|
4912
|
+
/**
|
|
4913
|
+
* The **`GPUAdapterInfo`** interface of the WebGPU API contains identifying information about a GPUAdapter.
|
|
4914
|
+
* Available only in secure contexts.
|
|
4915
|
+
*
|
|
4916
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
4917
|
+
*/
|
|
4918
|
+
interface GPUAdapterInfo {
|
|
4919
|
+
/**
|
|
4920
|
+
* 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.
|
|
4921
|
+
*
|
|
4922
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture)
|
|
4923
|
+
*/
|
|
4924
|
+
readonly architecture: string;
|
|
4925
|
+
/**
|
|
4926
|
+
* 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.
|
|
4927
|
+
*
|
|
4928
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description)
|
|
4929
|
+
*/
|
|
4930
|
+
readonly description: string;
|
|
4931
|
+
/**
|
|
4932
|
+
* 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.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device)
|
|
4935
|
+
*/
|
|
4936
|
+
readonly device: string;
|
|
4937
|
+
/**
|
|
4938
|
+
* The **`isFallbackAdapter`** read-only property of the GPUAdapterInfo interface returns true if the adapter is a fallback adapter, and false if not.
|
|
4939
|
+
*
|
|
4940
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/isFallbackAdapter)
|
|
4941
|
+
*/
|
|
4942
|
+
readonly isFallbackAdapter: boolean;
|
|
4943
|
+
/**
|
|
4944
|
+
* 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.
|
|
4945
|
+
*
|
|
4946
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMaxSize)
|
|
4947
|
+
*/
|
|
4948
|
+
readonly subgroupMaxSize: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* 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.
|
|
4951
|
+
*
|
|
4952
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/subgroupMinSize)
|
|
4953
|
+
*/
|
|
4954
|
+
readonly subgroupMinSize: number;
|
|
4955
|
+
/**
|
|
4956
|
+
* 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.
|
|
4957
|
+
*
|
|
4958
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor)
|
|
4959
|
+
*/
|
|
4960
|
+
readonly vendor: string;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
declare var GPUAdapterInfo: {
|
|
4964
|
+
prototype: GPUAdapterInfo;
|
|
4965
|
+
new(): GPUAdapterInfo;
|
|
4966
|
+
};
|
|
4967
|
+
|
|
4902
4968
|
/**
|
|
4903
4969
|
* 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.
|
|
4904
4970
|
* Available only in secure contexts.
|
|
@@ -5312,6 +5378,105 @@ declare var GPURenderBundle: {
|
|
|
5312
5378
|
new(): GPURenderBundle;
|
|
5313
5379
|
};
|
|
5314
5380
|
|
|
5381
|
+
/**
|
|
5382
|
+
* The **`GPURenderBundleEncoder`** interface of the WebGPU API is used to pre-record bundles of commands.
|
|
5383
|
+
* Available only in secure contexts.
|
|
5384
|
+
*
|
|
5385
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
5386
|
+
*/
|
|
5387
|
+
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5388
|
+
/**
|
|
5389
|
+
* 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.
|
|
5390
|
+
*
|
|
5391
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish)
|
|
5392
|
+
*/
|
|
5393
|
+
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
5394
|
+
}
|
|
5395
|
+
|
|
5396
|
+
declare var GPURenderBundleEncoder: {
|
|
5397
|
+
prototype: GPURenderBundleEncoder;
|
|
5398
|
+
new(): GPURenderBundleEncoder;
|
|
5399
|
+
};
|
|
5400
|
+
|
|
5401
|
+
interface GPURenderCommandsMixin {
|
|
5402
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
5403
|
+
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
5404
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
5405
|
+
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
5406
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
5407
|
+
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5408
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
5409
|
+
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
5410
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
5411
|
+
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5412
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
5413
|
+
setPipeline(pipeline: GPURenderPipeline): void;
|
|
5414
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
5415
|
+
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
5416
|
+
}
|
|
5417
|
+
|
|
5418
|
+
/**
|
|
5419
|
+
* 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.
|
|
5420
|
+
* Available only in secure contexts.
|
|
5421
|
+
*
|
|
5422
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
5423
|
+
*/
|
|
5424
|
+
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
5425
|
+
/**
|
|
5426
|
+
* 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).
|
|
5427
|
+
*
|
|
5428
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)
|
|
5429
|
+
*/
|
|
5430
|
+
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
5431
|
+
/**
|
|
5432
|
+
* The **`end()`** method of the GPURenderPassEncoder interface completes recording of the current render pass command sequence.
|
|
5433
|
+
*
|
|
5434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end)
|
|
5435
|
+
*/
|
|
5436
|
+
end(): void;
|
|
5437
|
+
/**
|
|
5438
|
+
* The **`endOcclusionQuery()`** method of the GPURenderPassEncoder interface ends an active occlusion query previously started with beginOcclusionQuery().
|
|
5439
|
+
*
|
|
5440
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)
|
|
5441
|
+
*/
|
|
5442
|
+
endOcclusionQuery(): void;
|
|
5443
|
+
/**
|
|
5444
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
5445
|
+
*
|
|
5446
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
5447
|
+
*/
|
|
5448
|
+
executeBundles(bundles: GPURenderBundle[]): void;
|
|
5449
|
+
/**
|
|
5450
|
+
* 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).
|
|
5451
|
+
*
|
|
5452
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
5453
|
+
*/
|
|
5454
|
+
setBlendConstant(color: GPUColor): void;
|
|
5455
|
+
/**
|
|
5456
|
+
* 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.
|
|
5457
|
+
*
|
|
5458
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect)
|
|
5459
|
+
*/
|
|
5460
|
+
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
5461
|
+
/**
|
|
5462
|
+
* 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).
|
|
5463
|
+
*
|
|
5464
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference)
|
|
5465
|
+
*/
|
|
5466
|
+
setStencilReference(reference: GPUStencilValue): void;
|
|
5467
|
+
/**
|
|
5468
|
+
* 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.
|
|
5469
|
+
*
|
|
5470
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport)
|
|
5471
|
+
*/
|
|
5472
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
5473
|
+
}
|
|
5474
|
+
|
|
5475
|
+
declare var GPURenderPassEncoder: {
|
|
5476
|
+
prototype: GPURenderPassEncoder;
|
|
5477
|
+
new(): GPURenderPassEncoder;
|
|
5478
|
+
};
|
|
5479
|
+
|
|
5315
5480
|
/**
|
|
5316
5481
|
* 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.
|
|
5317
5482
|
* Available only in secure contexts.
|
|
@@ -14120,15 +14285,18 @@ type GLsizeiptr = number;
|
|
|
14120
14285
|
type GLuint = number;
|
|
14121
14286
|
type GLuint64 = number;
|
|
14122
14287
|
type GPUBufferDynamicOffset = number;
|
|
14288
|
+
type GPUColor = number[] | GPUColorDict;
|
|
14123
14289
|
type GPUFlagsConstant = number;
|
|
14124
14290
|
type GPUIndex32 = number;
|
|
14125
14291
|
type GPUIntegerCoordinate = number;
|
|
14126
14292
|
type GPUIntegerCoordinateOut = number;
|
|
14127
14293
|
type GPUMapModeFlags = number;
|
|
14294
|
+
type GPUSignedOffset32 = number;
|
|
14128
14295
|
type GPUSize32 = number;
|
|
14129
14296
|
type GPUSize32Out = number;
|
|
14130
14297
|
type GPUSize64 = number;
|
|
14131
14298
|
type GPUSize64Out = number;
|
|
14299
|
+
type GPUStencilValue = number;
|
|
14132
14300
|
type GPUTextureUsageFlags = number;
|
|
14133
14301
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
14134
14302
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
@@ -14190,6 +14358,7 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
|
14190
14358
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
14191
14359
|
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
14192
14360
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
14361
|
+
type GPUIndexFormat = "uint16" | "uint32";
|
|
14193
14362
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
14194
14363
|
type GPUQueryType = "occlusion" | "timestamp";
|
|
14195
14364
|
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -87,6 +87,21 @@ interface GPUBindingCommandsMixin {
|
|
|
87
87
|
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: Iterable<GPUBufferDynamicOffset>): void;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
interface GPURenderPassEncoder {
|
|
91
|
+
/**
|
|
92
|
+
* The **`executeBundles()`** method of the GPURenderPassEncoder interface executes commands previously recorded into the referenced GPURenderBundles, as part of this render pass.
|
|
93
|
+
*
|
|
94
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles)
|
|
95
|
+
*/
|
|
96
|
+
executeBundles(bundles: Iterable<GPURenderBundle>): void;
|
|
97
|
+
/**
|
|
98
|
+
* 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).
|
|
99
|
+
*
|
|
100
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant)
|
|
101
|
+
*/
|
|
102
|
+
setBlendConstant(color: Iterable<number>): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
90
105
|
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
91
106
|
}
|
|
92
107
|
|