@types/webworker 0.0.52 → 0.0.54
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 +455 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +448 -0
- package/ts5.5/iterable.d.ts +7 -0
- package/ts5.6/index.d.ts +448 -0
- package/ts5.6/iterable.d.ts +7 -0
- package/ts5.9/index.d.ts +448 -0
- package/ts5.9/iterable.d.ts +7 -0
package/ts5.9/index.d.ts
CHANGED
|
@@ -362,10 +362,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
362
362
|
fontfaces?: FontFace[];
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
+
interface GPUObjectDescriptorBase {
|
|
366
|
+
label?: string;
|
|
367
|
+
}
|
|
368
|
+
|
|
365
369
|
interface GPUPipelineErrorInit {
|
|
366
370
|
reason: GPUPipelineErrorReason;
|
|
367
371
|
}
|
|
368
372
|
|
|
373
|
+
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
374
|
+
arrayLayerCount?: GPUIntegerCoordinate;
|
|
375
|
+
aspect?: GPUTextureAspect;
|
|
376
|
+
baseArrayLayer?: GPUIntegerCoordinate;
|
|
377
|
+
baseMipLevel?: GPUIntegerCoordinate;
|
|
378
|
+
dimension?: GPUTextureViewDimension;
|
|
379
|
+
format?: GPUTextureFormat;
|
|
380
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
381
|
+
usage?: GPUTextureUsageFlags;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
385
|
+
error: GPUError;
|
|
386
|
+
}
|
|
387
|
+
|
|
369
388
|
interface GetNotificationOptions {
|
|
370
389
|
tag?: string;
|
|
371
390
|
}
|
|
@@ -4880,6 +4899,88 @@ declare var FormData: {
|
|
|
4880
4899
|
new(): FormData;
|
|
4881
4900
|
};
|
|
4882
4901
|
|
|
4902
|
+
/**
|
|
4903
|
+
* 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
|
+
* Available only in secure contexts.
|
|
4905
|
+
*
|
|
4906
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
4907
|
+
*/
|
|
4908
|
+
interface GPUBindGroup extends GPUObjectBase {
|
|
4909
|
+
}
|
|
4910
|
+
|
|
4911
|
+
declare var GPUBindGroup: {
|
|
4912
|
+
prototype: GPUBindGroup;
|
|
4913
|
+
new(): GPUBindGroup;
|
|
4914
|
+
};
|
|
4915
|
+
|
|
4916
|
+
/**
|
|
4917
|
+
* The **`GPUBindGroupLayout`** interface of the WebGPU API defines the structure and purpose of related GPU resources such as buffers that will be used in a pipeline, and is used as a template when creating GPUBindGroups.
|
|
4918
|
+
* Available only in secure contexts.
|
|
4919
|
+
*
|
|
4920
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
4921
|
+
*/
|
|
4922
|
+
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
4923
|
+
}
|
|
4924
|
+
|
|
4925
|
+
declare var GPUBindGroupLayout: {
|
|
4926
|
+
prototype: GPUBindGroupLayout;
|
|
4927
|
+
new(): GPUBindGroupLayout;
|
|
4928
|
+
};
|
|
4929
|
+
|
|
4930
|
+
/**
|
|
4931
|
+
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4932
|
+
* Available only in secure contexts.
|
|
4933
|
+
*
|
|
4934
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
4935
|
+
*/
|
|
4936
|
+
interface GPUCommandBuffer extends GPUObjectBase {
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
declare var GPUCommandBuffer: {
|
|
4940
|
+
prototype: GPUCommandBuffer;
|
|
4941
|
+
new(): GPUCommandBuffer;
|
|
4942
|
+
};
|
|
4943
|
+
|
|
4944
|
+
/**
|
|
4945
|
+
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4946
|
+
* Available only in secure contexts.
|
|
4947
|
+
*
|
|
4948
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
4949
|
+
*/
|
|
4950
|
+
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
declare var GPUComputePipeline: {
|
|
4954
|
+
prototype: GPUComputePipeline;
|
|
4955
|
+
new(): GPUComputePipeline;
|
|
4956
|
+
};
|
|
4957
|
+
|
|
4958
|
+
/**
|
|
4959
|
+
* The **`GPUDeviceLostInfo`** interface of the WebGPU API represents the object returned when the GPUDevice.lost Promise resolves. This provides information as to why a device has been lost.
|
|
4960
|
+
* Available only in secure contexts.
|
|
4961
|
+
*
|
|
4962
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
4963
|
+
*/
|
|
4964
|
+
interface GPUDeviceLostInfo {
|
|
4965
|
+
/**
|
|
4966
|
+
* The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
|
|
4967
|
+
*
|
|
4968
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
|
|
4969
|
+
*/
|
|
4970
|
+
readonly message: string;
|
|
4971
|
+
/**
|
|
4972
|
+
* The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
|
|
4973
|
+
*
|
|
4974
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
|
|
4975
|
+
*/
|
|
4976
|
+
readonly reason: GPUDeviceLostReason;
|
|
4977
|
+
}
|
|
4978
|
+
|
|
4979
|
+
declare var GPUDeviceLostInfo: {
|
|
4980
|
+
prototype: GPUDeviceLostInfo;
|
|
4981
|
+
new(): GPUDeviceLostInfo;
|
|
4982
|
+
};
|
|
4983
|
+
|
|
4883
4984
|
/**
|
|
4884
4985
|
* The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
|
|
4885
4986
|
* Available only in secure contexts.
|
|
@@ -4900,6 +5001,58 @@ declare var GPUError: {
|
|
|
4900
5001
|
new(): GPUError;
|
|
4901
5002
|
};
|
|
4902
5003
|
|
|
5004
|
+
/**
|
|
5005
|
+
* The **`GPUExternalTexture`** interface of the WebGPU API represents a wrapper object containing an HTMLVideoElement snapshot that can be used as a texture in GPU rendering operations.
|
|
5006
|
+
* Available only in secure contexts.
|
|
5007
|
+
*
|
|
5008
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
5009
|
+
*/
|
|
5010
|
+
interface GPUExternalTexture extends GPUObjectBase {
|
|
5011
|
+
}
|
|
5012
|
+
|
|
5013
|
+
declare var GPUExternalTexture: {
|
|
5014
|
+
prototype: GPUExternalTexture;
|
|
5015
|
+
new(): GPUExternalTexture;
|
|
5016
|
+
};
|
|
5017
|
+
|
|
5018
|
+
/**
|
|
5019
|
+
* The **`GPUInternalError`** interface of the WebGPU API describes an application error indicating that an operation failed for a system or implementation-specific reason, even when all validation requirements were satisfied.
|
|
5020
|
+
* Available only in secure contexts.
|
|
5021
|
+
*
|
|
5022
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
5023
|
+
*/
|
|
5024
|
+
interface GPUInternalError extends GPUError {
|
|
5025
|
+
}
|
|
5026
|
+
|
|
5027
|
+
declare var GPUInternalError: {
|
|
5028
|
+
prototype: GPUInternalError;
|
|
5029
|
+
new(message: string): GPUInternalError;
|
|
5030
|
+
};
|
|
5031
|
+
|
|
5032
|
+
interface GPUObjectBase {
|
|
5033
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
5034
|
+
label: string;
|
|
5035
|
+
}
|
|
5036
|
+
|
|
5037
|
+
/**
|
|
5038
|
+
* The **`GPUOutOfMemoryError`** interface of the WebGPU API describes an out-of-memory (oom) error indicating that there was not enough free memory to complete the requested operation.
|
|
5039
|
+
* Available only in secure contexts.
|
|
5040
|
+
*
|
|
5041
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
5042
|
+
*/
|
|
5043
|
+
interface GPUOutOfMemoryError extends GPUError {
|
|
5044
|
+
}
|
|
5045
|
+
|
|
5046
|
+
declare var GPUOutOfMemoryError: {
|
|
5047
|
+
prototype: GPUOutOfMemoryError;
|
|
5048
|
+
new(message: string): GPUOutOfMemoryError;
|
|
5049
|
+
};
|
|
5050
|
+
|
|
5051
|
+
interface GPUPipelineBase {
|
|
5052
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
5053
|
+
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
5054
|
+
}
|
|
5055
|
+
|
|
4903
5056
|
/**
|
|
4904
5057
|
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects.
|
|
4905
5058
|
* Available only in secure contexts.
|
|
@@ -4920,6 +5073,275 @@ declare var GPUPipelineError: {
|
|
|
4920
5073
|
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
4921
5074
|
};
|
|
4922
5075
|
|
|
5076
|
+
/**
|
|
5077
|
+
* The **`GPUPipelineLayout`** interface of the WebGPU API defines the GPUBindGroupLayouts used by a pipeline. GPUBindGroups used with the pipeline during command encoding must have compatible GPUBindGroupLayouts.
|
|
5078
|
+
* Available only in secure contexts.
|
|
5079
|
+
*
|
|
5080
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
5081
|
+
*/
|
|
5082
|
+
interface GPUPipelineLayout extends GPUObjectBase {
|
|
5083
|
+
}
|
|
5084
|
+
|
|
5085
|
+
declare var GPUPipelineLayout: {
|
|
5086
|
+
prototype: GPUPipelineLayout;
|
|
5087
|
+
new(): GPUPipelineLayout;
|
|
5088
|
+
};
|
|
5089
|
+
|
|
5090
|
+
/**
|
|
5091
|
+
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
5092
|
+
* Available only in secure contexts.
|
|
5093
|
+
*
|
|
5094
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
5095
|
+
*/
|
|
5096
|
+
interface GPURenderBundle extends GPUObjectBase {
|
|
5097
|
+
}
|
|
5098
|
+
|
|
5099
|
+
declare var GPURenderBundle: {
|
|
5100
|
+
prototype: GPURenderBundle;
|
|
5101
|
+
new(): GPURenderBundle;
|
|
5102
|
+
};
|
|
5103
|
+
|
|
5104
|
+
/**
|
|
5105
|
+
* 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.
|
|
5106
|
+
* Available only in secure contexts.
|
|
5107
|
+
*
|
|
5108
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
5109
|
+
*/
|
|
5110
|
+
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
declare var GPURenderPipeline: {
|
|
5114
|
+
prototype: GPURenderPipeline;
|
|
5115
|
+
new(): GPURenderPipeline;
|
|
5116
|
+
};
|
|
5117
|
+
|
|
5118
|
+
/**
|
|
5119
|
+
* The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
|
|
5120
|
+
* Available only in secure contexts.
|
|
5121
|
+
*
|
|
5122
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
5123
|
+
*/
|
|
5124
|
+
interface GPUSampler extends GPUObjectBase {
|
|
5125
|
+
}
|
|
5126
|
+
|
|
5127
|
+
declare var GPUSampler: {
|
|
5128
|
+
prototype: GPUSampler;
|
|
5129
|
+
new(): GPUSampler;
|
|
5130
|
+
};
|
|
5131
|
+
|
|
5132
|
+
/**
|
|
5133
|
+
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
5134
|
+
* Available only in secure contexts.
|
|
5135
|
+
*
|
|
5136
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
5137
|
+
*/
|
|
5138
|
+
interface GPUSupportedFeatures {
|
|
5139
|
+
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
5140
|
+
}
|
|
5141
|
+
|
|
5142
|
+
declare var GPUSupportedFeatures: {
|
|
5143
|
+
prototype: GPUSupportedFeatures;
|
|
5144
|
+
new(): GPUSupportedFeatures;
|
|
5145
|
+
};
|
|
5146
|
+
|
|
5147
|
+
/**
|
|
5148
|
+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
|
|
5149
|
+
* Available only in secure contexts.
|
|
5150
|
+
*
|
|
5151
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
5152
|
+
*/
|
|
5153
|
+
interface GPUSupportedLimits {
|
|
5154
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5155
|
+
readonly maxBindGroups: number;
|
|
5156
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5157
|
+
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
5158
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5159
|
+
readonly maxBindingsPerBindGroup: number;
|
|
5160
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5161
|
+
readonly maxBufferSize: number;
|
|
5162
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5163
|
+
readonly maxColorAttachmentBytesPerSample: number;
|
|
5164
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5165
|
+
readonly maxColorAttachments: number;
|
|
5166
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5167
|
+
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
5168
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5169
|
+
readonly maxComputeWorkgroupSizeX: number;
|
|
5170
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5171
|
+
readonly maxComputeWorkgroupSizeY: number;
|
|
5172
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5173
|
+
readonly maxComputeWorkgroupSizeZ: number;
|
|
5174
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5175
|
+
readonly maxComputeWorkgroupStorageSize: number;
|
|
5176
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5177
|
+
readonly maxComputeWorkgroupsPerDimension: number;
|
|
5178
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5179
|
+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
5180
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5181
|
+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
5182
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5183
|
+
readonly maxInterStageShaderVariables: number;
|
|
5184
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5185
|
+
readonly maxSampledTexturesPerShaderStage: number;
|
|
5186
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5187
|
+
readonly maxSamplersPerShaderStage: number;
|
|
5188
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5189
|
+
readonly maxStorageBufferBindingSize: number;
|
|
5190
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5191
|
+
readonly maxStorageBuffersPerShaderStage: number;
|
|
5192
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5193
|
+
readonly maxStorageTexturesPerShaderStage: number;
|
|
5194
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5195
|
+
readonly maxTextureArrayLayers: number;
|
|
5196
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5197
|
+
readonly maxTextureDimension1D: number;
|
|
5198
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5199
|
+
readonly maxTextureDimension2D: number;
|
|
5200
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5201
|
+
readonly maxTextureDimension3D: number;
|
|
5202
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5203
|
+
readonly maxUniformBufferBindingSize: number;
|
|
5204
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5205
|
+
readonly maxUniformBuffersPerShaderStage: number;
|
|
5206
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5207
|
+
readonly maxVertexAttributes: number;
|
|
5208
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5209
|
+
readonly maxVertexBufferArrayStride: number;
|
|
5210
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5211
|
+
readonly maxVertexBuffers: number;
|
|
5212
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5213
|
+
readonly minStorageBufferOffsetAlignment: number;
|
|
5214
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5215
|
+
readonly minUniformBufferOffsetAlignment: number;
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
declare var GPUSupportedLimits: {
|
|
5219
|
+
prototype: GPUSupportedLimits;
|
|
5220
|
+
new(): GPUSupportedLimits;
|
|
5221
|
+
};
|
|
5222
|
+
|
|
5223
|
+
/**
|
|
5224
|
+
* The **`GPUTexture`** interface of the WebGPU API represents a container used to store 1D, 2D, or 3D arrays of data, such as images, to use in GPU rendering operations.
|
|
5225
|
+
* Available only in secure contexts.
|
|
5226
|
+
*
|
|
5227
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
5228
|
+
*/
|
|
5229
|
+
interface GPUTexture extends GPUObjectBase {
|
|
5230
|
+
/**
|
|
5231
|
+
* The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
|
|
5232
|
+
*
|
|
5233
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
|
|
5234
|
+
*/
|
|
5235
|
+
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
5236
|
+
/**
|
|
5237
|
+
* The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
|
|
5238
|
+
*
|
|
5239
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
|
|
5240
|
+
*/
|
|
5241
|
+
readonly dimension: GPUTextureDimension;
|
|
5242
|
+
/**
|
|
5243
|
+
* The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
|
|
5244
|
+
*
|
|
5245
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
|
|
5246
|
+
*/
|
|
5247
|
+
readonly format: GPUTextureFormat;
|
|
5248
|
+
/**
|
|
5249
|
+
* The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
|
|
5250
|
+
*
|
|
5251
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
|
|
5252
|
+
*/
|
|
5253
|
+
readonly height: GPUIntegerCoordinateOut;
|
|
5254
|
+
/**
|
|
5255
|
+
* The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
|
|
5256
|
+
*
|
|
5257
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
|
|
5258
|
+
*/
|
|
5259
|
+
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
5260
|
+
/**
|
|
5261
|
+
* The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
|
|
5262
|
+
*
|
|
5263
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
|
|
5264
|
+
*/
|
|
5265
|
+
readonly sampleCount: GPUSize32Out;
|
|
5266
|
+
/**
|
|
5267
|
+
* The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
|
|
5268
|
+
*
|
|
5269
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
|
|
5270
|
+
*/
|
|
5271
|
+
readonly usage: GPUFlagsConstant;
|
|
5272
|
+
/**
|
|
5273
|
+
* The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
|
|
5274
|
+
*
|
|
5275
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
|
|
5276
|
+
*/
|
|
5277
|
+
readonly width: GPUIntegerCoordinateOut;
|
|
5278
|
+
/**
|
|
5279
|
+
* The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
|
|
5280
|
+
*
|
|
5281
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
|
|
5282
|
+
*/
|
|
5283
|
+
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
5284
|
+
/**
|
|
5285
|
+
* The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
|
|
5286
|
+
*
|
|
5287
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
|
|
5288
|
+
*/
|
|
5289
|
+
destroy(): void;
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
declare var GPUTexture: {
|
|
5293
|
+
prototype: GPUTexture;
|
|
5294
|
+
new(): GPUTexture;
|
|
5295
|
+
};
|
|
5296
|
+
|
|
5297
|
+
/**
|
|
5298
|
+
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
|
|
5299
|
+
* Available only in secure contexts.
|
|
5300
|
+
*
|
|
5301
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
5302
|
+
*/
|
|
5303
|
+
interface GPUTextureView extends GPUObjectBase {
|
|
5304
|
+
}
|
|
5305
|
+
|
|
5306
|
+
declare var GPUTextureView: {
|
|
5307
|
+
prototype: GPUTextureView;
|
|
5308
|
+
new(): GPUTextureView;
|
|
5309
|
+
};
|
|
5310
|
+
|
|
5311
|
+
/**
|
|
5312
|
+
* The **`GPUUncapturedErrorEvent`** interface of the WebGPU API is the event object type for the GPUDevice uncapturederror event, used for telemetry and to report unexpected errors.
|
|
5313
|
+
* Available only in secure contexts.
|
|
5314
|
+
*
|
|
5315
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
5316
|
+
*/
|
|
5317
|
+
interface GPUUncapturedErrorEvent extends Event {
|
|
5318
|
+
/**
|
|
5319
|
+
* The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
|
|
5320
|
+
*
|
|
5321
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
|
|
5322
|
+
*/
|
|
5323
|
+
readonly error: GPUError;
|
|
5324
|
+
}
|
|
5325
|
+
|
|
5326
|
+
declare var GPUUncapturedErrorEvent: {
|
|
5327
|
+
prototype: GPUUncapturedErrorEvent;
|
|
5328
|
+
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
5329
|
+
};
|
|
5330
|
+
|
|
5331
|
+
/**
|
|
5332
|
+
* The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
|
|
5333
|
+
* Available only in secure contexts.
|
|
5334
|
+
*
|
|
5335
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
5336
|
+
*/
|
|
5337
|
+
interface GPUValidationError extends GPUError {
|
|
5338
|
+
}
|
|
5339
|
+
|
|
5340
|
+
declare var GPUValidationError: {
|
|
5341
|
+
prototype: GPUValidationError;
|
|
5342
|
+
new(message: string): GPUValidationError;
|
|
5343
|
+
};
|
|
5344
|
+
|
|
4923
5345
|
interface GenericTransformStream {
|
|
4924
5346
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
4925
5347
|
readonly readable: ReadableStream;
|
|
@@ -8529,6 +8951,7 @@ interface SubtleCrypto {
|
|
|
8529
8951
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
8530
8952
|
*/
|
|
8531
8953
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
8954
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
8532
8955
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
8533
8956
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
8534
8957
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
@@ -9691,6 +10114,21 @@ interface WEBGL_multi_draw {
|
|
|
9691
10114
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
9692
10115
|
}
|
|
9693
10116
|
|
|
10117
|
+
/**
|
|
10118
|
+
* The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
10119
|
+
* Available only in secure contexts.
|
|
10120
|
+
*
|
|
10121
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
10122
|
+
*/
|
|
10123
|
+
interface WGSLLanguageFeatures {
|
|
10124
|
+
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
10125
|
+
}
|
|
10126
|
+
|
|
10127
|
+
declare var WGSLLanguageFeatures: {
|
|
10128
|
+
prototype: WGSLLanguageFeatures;
|
|
10129
|
+
new(): WGSLLanguageFeatures;
|
|
10130
|
+
};
|
|
10131
|
+
|
|
9694
10132
|
/**
|
|
9695
10133
|
* The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
|
|
9696
10134
|
*
|
|
@@ -13435,6 +13873,11 @@ type GLsizei = number;
|
|
|
13435
13873
|
type GLsizeiptr = number;
|
|
13436
13874
|
type GLuint = number;
|
|
13437
13875
|
type GLuint64 = number;
|
|
13876
|
+
type GPUFlagsConstant = number;
|
|
13877
|
+
type GPUIntegerCoordinate = number;
|
|
13878
|
+
type GPUIntegerCoordinateOut = number;
|
|
13879
|
+
type GPUSize32Out = number;
|
|
13880
|
+
type GPUTextureUsageFlags = number;
|
|
13438
13881
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
13439
13882
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
13440
13883
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
@@ -13492,7 +13935,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13492
13935
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13493
13936
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13494
13937
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13938
|
+
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13495
13939
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13940
|
+
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
13941
|
+
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
13942
|
+
type GPUTextureFormat = "astc-10x10-unorm" | "astc-10x10-unorm-srgb" | "astc-10x5-unorm" | "astc-10x5-unorm-srgb" | "astc-10x6-unorm" | "astc-10x6-unorm-srgb" | "astc-10x8-unorm" | "astc-10x8-unorm-srgb" | "astc-12x10-unorm" | "astc-12x10-unorm-srgb" | "astc-12x12-unorm" | "astc-12x12-unorm-srgb" | "astc-4x4-unorm" | "astc-4x4-unorm-srgb" | "astc-5x4-unorm" | "astc-5x4-unorm-srgb" | "astc-5x5-unorm" | "astc-5x5-unorm-srgb" | "astc-6x5-unorm" | "astc-6x5-unorm-srgb" | "astc-6x6-unorm" | "astc-6x6-unorm-srgb" | "astc-8x5-unorm" | "astc-8x5-unorm-srgb" | "astc-8x6-unorm" | "astc-8x6-unorm-srgb" | "astc-8x8-unorm" | "astc-8x8-unorm-srgb" | "bc1-rgba-unorm" | "bc1-rgba-unorm-srgb" | "bc2-rgba-unorm" | "bc2-rgba-unorm-srgb" | "bc3-rgba-unorm" | "bc3-rgba-unorm-srgb" | "bc4-r-snorm" | "bc4-r-unorm" | "bc5-rg-snorm" | "bc5-rg-unorm" | "bc6h-rgb-float" | "bc6h-rgb-ufloat" | "bc7-rgba-unorm" | "bc7-rgba-unorm-srgb" | "bgra8unorm" | "bgra8unorm-srgb" | "depth16unorm" | "depth24plus" | "depth24plus-stencil8" | "depth32float" | "depth32float-stencil8" | "eac-r11snorm" | "eac-r11unorm" | "eac-rg11snorm" | "eac-rg11unorm" | "etc2-rgb8a1unorm" | "etc2-rgb8a1unorm-srgb" | "etc2-rgb8unorm" | "etc2-rgb8unorm-srgb" | "etc2-rgba8unorm" | "etc2-rgba8unorm-srgb" | "r16float" | "r16sint" | "r16snorm" | "r16uint" | "r16unorm" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16snorm" | "rg16uint" | "rg16unorm" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16snorm" | "rgba16uint" | "rgba16unorm" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
|
|
13943
|
+
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13496
13944
|
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
13497
13945
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|
|
13498
13946
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -82,6 +82,9 @@ interface FormData {
|
|
|
82
82
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
86
|
+
}
|
|
87
|
+
|
|
85
88
|
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
86
89
|
[Symbol.iterator](): HeadersIterator<T>;
|
|
87
90
|
}
|
|
@@ -147,6 +150,7 @@ interface SubtleCrypto {
|
|
|
147
150
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
148
151
|
*/
|
|
149
152
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
153
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
150
154
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
151
155
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
152
156
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
@@ -215,6 +219,9 @@ interface WEBGL_multi_draw {
|
|
|
215
219
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
216
220
|
}
|
|
217
221
|
|
|
222
|
+
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
223
|
+
}
|
|
224
|
+
|
|
218
225
|
interface WebGL2RenderingContextBase {
|
|
219
226
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
220
227
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|