@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/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.54 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.54.
|
package/index.d.ts
CHANGED
|
@@ -365,10 +365,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
365
365
|
fontfaces?: FontFace[];
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
+
interface GPUObjectDescriptorBase {
|
|
369
|
+
label?: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
368
372
|
interface GPUPipelineErrorInit {
|
|
369
373
|
reason: GPUPipelineErrorReason;
|
|
370
374
|
}
|
|
371
375
|
|
|
376
|
+
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
377
|
+
arrayLayerCount?: GPUIntegerCoordinate;
|
|
378
|
+
aspect?: GPUTextureAspect;
|
|
379
|
+
baseArrayLayer?: GPUIntegerCoordinate;
|
|
380
|
+
baseMipLevel?: GPUIntegerCoordinate;
|
|
381
|
+
dimension?: GPUTextureViewDimension;
|
|
382
|
+
format?: GPUTextureFormat;
|
|
383
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
384
|
+
usage?: GPUTextureUsageFlags;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
388
|
+
error: GPUError;
|
|
389
|
+
}
|
|
390
|
+
|
|
372
391
|
interface GetNotificationOptions {
|
|
373
392
|
tag?: string;
|
|
374
393
|
}
|
|
@@ -4883,6 +4902,88 @@ declare var FormData: {
|
|
|
4883
4902
|
new(): FormData;
|
|
4884
4903
|
};
|
|
4885
4904
|
|
|
4905
|
+
/**
|
|
4906
|
+
* 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
|
+
* Available only in secure contexts.
|
|
4908
|
+
*
|
|
4909
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
4910
|
+
*/
|
|
4911
|
+
interface GPUBindGroup extends GPUObjectBase {
|
|
4912
|
+
}
|
|
4913
|
+
|
|
4914
|
+
declare var GPUBindGroup: {
|
|
4915
|
+
prototype: GPUBindGroup;
|
|
4916
|
+
new(): GPUBindGroup;
|
|
4917
|
+
};
|
|
4918
|
+
|
|
4919
|
+
/**
|
|
4920
|
+
* 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.
|
|
4921
|
+
* Available only in secure contexts.
|
|
4922
|
+
*
|
|
4923
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
4924
|
+
*/
|
|
4925
|
+
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4928
|
+
declare var GPUBindGroupLayout: {
|
|
4929
|
+
prototype: GPUBindGroupLayout;
|
|
4930
|
+
new(): GPUBindGroupLayout;
|
|
4931
|
+
};
|
|
4932
|
+
|
|
4933
|
+
/**
|
|
4934
|
+
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4935
|
+
* Available only in secure contexts.
|
|
4936
|
+
*
|
|
4937
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
4938
|
+
*/
|
|
4939
|
+
interface GPUCommandBuffer extends GPUObjectBase {
|
|
4940
|
+
}
|
|
4941
|
+
|
|
4942
|
+
declare var GPUCommandBuffer: {
|
|
4943
|
+
prototype: GPUCommandBuffer;
|
|
4944
|
+
new(): GPUCommandBuffer;
|
|
4945
|
+
};
|
|
4946
|
+
|
|
4947
|
+
/**
|
|
4948
|
+
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4949
|
+
* Available only in secure contexts.
|
|
4950
|
+
*
|
|
4951
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
4952
|
+
*/
|
|
4953
|
+
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
4954
|
+
}
|
|
4955
|
+
|
|
4956
|
+
declare var GPUComputePipeline: {
|
|
4957
|
+
prototype: GPUComputePipeline;
|
|
4958
|
+
new(): GPUComputePipeline;
|
|
4959
|
+
};
|
|
4960
|
+
|
|
4961
|
+
/**
|
|
4962
|
+
* 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.
|
|
4963
|
+
* Available only in secure contexts.
|
|
4964
|
+
*
|
|
4965
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
4966
|
+
*/
|
|
4967
|
+
interface GPUDeviceLostInfo {
|
|
4968
|
+
/**
|
|
4969
|
+
* The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
|
|
4970
|
+
*
|
|
4971
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
|
|
4972
|
+
*/
|
|
4973
|
+
readonly message: string;
|
|
4974
|
+
/**
|
|
4975
|
+
* The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
|
|
4976
|
+
*
|
|
4977
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
|
|
4978
|
+
*/
|
|
4979
|
+
readonly reason: GPUDeviceLostReason;
|
|
4980
|
+
}
|
|
4981
|
+
|
|
4982
|
+
declare var GPUDeviceLostInfo: {
|
|
4983
|
+
prototype: GPUDeviceLostInfo;
|
|
4984
|
+
new(): GPUDeviceLostInfo;
|
|
4985
|
+
};
|
|
4986
|
+
|
|
4886
4987
|
/**
|
|
4887
4988
|
* The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
|
|
4888
4989
|
* Available only in secure contexts.
|
|
@@ -4903,6 +5004,58 @@ declare var GPUError: {
|
|
|
4903
5004
|
new(): GPUError;
|
|
4904
5005
|
};
|
|
4905
5006
|
|
|
5007
|
+
/**
|
|
5008
|
+
* 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.
|
|
5009
|
+
* Available only in secure contexts.
|
|
5010
|
+
*
|
|
5011
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
5012
|
+
*/
|
|
5013
|
+
interface GPUExternalTexture extends GPUObjectBase {
|
|
5014
|
+
}
|
|
5015
|
+
|
|
5016
|
+
declare var GPUExternalTexture: {
|
|
5017
|
+
prototype: GPUExternalTexture;
|
|
5018
|
+
new(): GPUExternalTexture;
|
|
5019
|
+
};
|
|
5020
|
+
|
|
5021
|
+
/**
|
|
5022
|
+
* 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.
|
|
5023
|
+
* Available only in secure contexts.
|
|
5024
|
+
*
|
|
5025
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
5026
|
+
*/
|
|
5027
|
+
interface GPUInternalError extends GPUError {
|
|
5028
|
+
}
|
|
5029
|
+
|
|
5030
|
+
declare var GPUInternalError: {
|
|
5031
|
+
prototype: GPUInternalError;
|
|
5032
|
+
new(message: string): GPUInternalError;
|
|
5033
|
+
};
|
|
5034
|
+
|
|
5035
|
+
interface GPUObjectBase {
|
|
5036
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
5037
|
+
label: string;
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5040
|
+
/**
|
|
5041
|
+
* 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.
|
|
5042
|
+
* Available only in secure contexts.
|
|
5043
|
+
*
|
|
5044
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
5045
|
+
*/
|
|
5046
|
+
interface GPUOutOfMemoryError extends GPUError {
|
|
5047
|
+
}
|
|
5048
|
+
|
|
5049
|
+
declare var GPUOutOfMemoryError: {
|
|
5050
|
+
prototype: GPUOutOfMemoryError;
|
|
5051
|
+
new(message: string): GPUOutOfMemoryError;
|
|
5052
|
+
};
|
|
5053
|
+
|
|
5054
|
+
interface GPUPipelineBase {
|
|
5055
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
5056
|
+
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
5057
|
+
}
|
|
5058
|
+
|
|
4906
5059
|
/**
|
|
4907
5060
|
* 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.
|
|
4908
5061
|
* Available only in secure contexts.
|
|
@@ -4923,6 +5076,275 @@ declare var GPUPipelineError: {
|
|
|
4923
5076
|
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
4924
5077
|
};
|
|
4925
5078
|
|
|
5079
|
+
/**
|
|
5080
|
+
* 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.
|
|
5081
|
+
* Available only in secure contexts.
|
|
5082
|
+
*
|
|
5083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
5084
|
+
*/
|
|
5085
|
+
interface GPUPipelineLayout extends GPUObjectBase {
|
|
5086
|
+
}
|
|
5087
|
+
|
|
5088
|
+
declare var GPUPipelineLayout: {
|
|
5089
|
+
prototype: GPUPipelineLayout;
|
|
5090
|
+
new(): GPUPipelineLayout;
|
|
5091
|
+
};
|
|
5092
|
+
|
|
5093
|
+
/**
|
|
5094
|
+
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
5095
|
+
* Available only in secure contexts.
|
|
5096
|
+
*
|
|
5097
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
5098
|
+
*/
|
|
5099
|
+
interface GPURenderBundle extends GPUObjectBase {
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5102
|
+
declare var GPURenderBundle: {
|
|
5103
|
+
prototype: GPURenderBundle;
|
|
5104
|
+
new(): GPURenderBundle;
|
|
5105
|
+
};
|
|
5106
|
+
|
|
5107
|
+
/**
|
|
5108
|
+
* 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.
|
|
5109
|
+
* Available only in secure contexts.
|
|
5110
|
+
*
|
|
5111
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
5112
|
+
*/
|
|
5113
|
+
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
5114
|
+
}
|
|
5115
|
+
|
|
5116
|
+
declare var GPURenderPipeline: {
|
|
5117
|
+
prototype: GPURenderPipeline;
|
|
5118
|
+
new(): GPURenderPipeline;
|
|
5119
|
+
};
|
|
5120
|
+
|
|
5121
|
+
/**
|
|
5122
|
+
* The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
|
|
5123
|
+
* Available only in secure contexts.
|
|
5124
|
+
*
|
|
5125
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
5126
|
+
*/
|
|
5127
|
+
interface GPUSampler extends GPUObjectBase {
|
|
5128
|
+
}
|
|
5129
|
+
|
|
5130
|
+
declare var GPUSampler: {
|
|
5131
|
+
prototype: GPUSampler;
|
|
5132
|
+
new(): GPUSampler;
|
|
5133
|
+
};
|
|
5134
|
+
|
|
5135
|
+
/**
|
|
5136
|
+
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
5137
|
+
* Available only in secure contexts.
|
|
5138
|
+
*
|
|
5139
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
5140
|
+
*/
|
|
5141
|
+
interface GPUSupportedFeatures {
|
|
5142
|
+
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
5143
|
+
}
|
|
5144
|
+
|
|
5145
|
+
declare var GPUSupportedFeatures: {
|
|
5146
|
+
prototype: GPUSupportedFeatures;
|
|
5147
|
+
new(): GPUSupportedFeatures;
|
|
5148
|
+
};
|
|
5149
|
+
|
|
5150
|
+
/**
|
|
5151
|
+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
|
|
5152
|
+
* Available only in secure contexts.
|
|
5153
|
+
*
|
|
5154
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
5155
|
+
*/
|
|
5156
|
+
interface GPUSupportedLimits {
|
|
5157
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5158
|
+
readonly maxBindGroups: number;
|
|
5159
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5160
|
+
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
5161
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5162
|
+
readonly maxBindingsPerBindGroup: number;
|
|
5163
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5164
|
+
readonly maxBufferSize: number;
|
|
5165
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5166
|
+
readonly maxColorAttachmentBytesPerSample: number;
|
|
5167
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5168
|
+
readonly maxColorAttachments: number;
|
|
5169
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5170
|
+
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
5171
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5172
|
+
readonly maxComputeWorkgroupSizeX: number;
|
|
5173
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5174
|
+
readonly maxComputeWorkgroupSizeY: number;
|
|
5175
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5176
|
+
readonly maxComputeWorkgroupSizeZ: number;
|
|
5177
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5178
|
+
readonly maxComputeWorkgroupStorageSize: number;
|
|
5179
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5180
|
+
readonly maxComputeWorkgroupsPerDimension: number;
|
|
5181
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5182
|
+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
5183
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5184
|
+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
5185
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5186
|
+
readonly maxInterStageShaderVariables: number;
|
|
5187
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5188
|
+
readonly maxSampledTexturesPerShaderStage: number;
|
|
5189
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5190
|
+
readonly maxSamplersPerShaderStage: number;
|
|
5191
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5192
|
+
readonly maxStorageBufferBindingSize: number;
|
|
5193
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5194
|
+
readonly maxStorageBuffersPerShaderStage: number;
|
|
5195
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5196
|
+
readonly maxStorageTexturesPerShaderStage: number;
|
|
5197
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5198
|
+
readonly maxTextureArrayLayers: number;
|
|
5199
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5200
|
+
readonly maxTextureDimension1D: number;
|
|
5201
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5202
|
+
readonly maxTextureDimension2D: number;
|
|
5203
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5204
|
+
readonly maxTextureDimension3D: number;
|
|
5205
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5206
|
+
readonly maxUniformBufferBindingSize: number;
|
|
5207
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5208
|
+
readonly maxUniformBuffersPerShaderStage: number;
|
|
5209
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5210
|
+
readonly maxVertexAttributes: number;
|
|
5211
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5212
|
+
readonly maxVertexBufferArrayStride: number;
|
|
5213
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5214
|
+
readonly maxVertexBuffers: number;
|
|
5215
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5216
|
+
readonly minStorageBufferOffsetAlignment: number;
|
|
5217
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
5218
|
+
readonly minUniformBufferOffsetAlignment: number;
|
|
5219
|
+
}
|
|
5220
|
+
|
|
5221
|
+
declare var GPUSupportedLimits: {
|
|
5222
|
+
prototype: GPUSupportedLimits;
|
|
5223
|
+
new(): GPUSupportedLimits;
|
|
5224
|
+
};
|
|
5225
|
+
|
|
5226
|
+
/**
|
|
5227
|
+
* 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.
|
|
5228
|
+
* Available only in secure contexts.
|
|
5229
|
+
*
|
|
5230
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
5231
|
+
*/
|
|
5232
|
+
interface GPUTexture extends GPUObjectBase {
|
|
5233
|
+
/**
|
|
5234
|
+
* The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
|
|
5235
|
+
*
|
|
5236
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
|
|
5237
|
+
*/
|
|
5238
|
+
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
5239
|
+
/**
|
|
5240
|
+
* The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
|
|
5241
|
+
*
|
|
5242
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
|
|
5243
|
+
*/
|
|
5244
|
+
readonly dimension: GPUTextureDimension;
|
|
5245
|
+
/**
|
|
5246
|
+
* The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
|
|
5247
|
+
*
|
|
5248
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
|
|
5249
|
+
*/
|
|
5250
|
+
readonly format: GPUTextureFormat;
|
|
5251
|
+
/**
|
|
5252
|
+
* The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
|
|
5253
|
+
*
|
|
5254
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
|
|
5255
|
+
*/
|
|
5256
|
+
readonly height: GPUIntegerCoordinateOut;
|
|
5257
|
+
/**
|
|
5258
|
+
* The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
|
|
5259
|
+
*
|
|
5260
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
|
|
5261
|
+
*/
|
|
5262
|
+
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
5263
|
+
/**
|
|
5264
|
+
* The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
|
|
5265
|
+
*
|
|
5266
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
|
|
5267
|
+
*/
|
|
5268
|
+
readonly sampleCount: GPUSize32Out;
|
|
5269
|
+
/**
|
|
5270
|
+
* The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
|
|
5271
|
+
*
|
|
5272
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
|
|
5273
|
+
*/
|
|
5274
|
+
readonly usage: GPUFlagsConstant;
|
|
5275
|
+
/**
|
|
5276
|
+
* The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
|
|
5277
|
+
*
|
|
5278
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
|
|
5279
|
+
*/
|
|
5280
|
+
readonly width: GPUIntegerCoordinateOut;
|
|
5281
|
+
/**
|
|
5282
|
+
* The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
|
|
5283
|
+
*
|
|
5284
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
|
|
5285
|
+
*/
|
|
5286
|
+
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
5287
|
+
/**
|
|
5288
|
+
* The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
|
|
5289
|
+
*
|
|
5290
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
|
|
5291
|
+
*/
|
|
5292
|
+
destroy(): void;
|
|
5293
|
+
}
|
|
5294
|
+
|
|
5295
|
+
declare var GPUTexture: {
|
|
5296
|
+
prototype: GPUTexture;
|
|
5297
|
+
new(): GPUTexture;
|
|
5298
|
+
};
|
|
5299
|
+
|
|
5300
|
+
/**
|
|
5301
|
+
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
|
|
5302
|
+
* Available only in secure contexts.
|
|
5303
|
+
*
|
|
5304
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
5305
|
+
*/
|
|
5306
|
+
interface GPUTextureView extends GPUObjectBase {
|
|
5307
|
+
}
|
|
5308
|
+
|
|
5309
|
+
declare var GPUTextureView: {
|
|
5310
|
+
prototype: GPUTextureView;
|
|
5311
|
+
new(): GPUTextureView;
|
|
5312
|
+
};
|
|
5313
|
+
|
|
5314
|
+
/**
|
|
5315
|
+
* 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.
|
|
5316
|
+
* Available only in secure contexts.
|
|
5317
|
+
*
|
|
5318
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
5319
|
+
*/
|
|
5320
|
+
interface GPUUncapturedErrorEvent extends Event {
|
|
5321
|
+
/**
|
|
5322
|
+
* The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
|
|
5323
|
+
*
|
|
5324
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
|
|
5325
|
+
*/
|
|
5326
|
+
readonly error: GPUError;
|
|
5327
|
+
}
|
|
5328
|
+
|
|
5329
|
+
declare var GPUUncapturedErrorEvent: {
|
|
5330
|
+
prototype: GPUUncapturedErrorEvent;
|
|
5331
|
+
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
5332
|
+
};
|
|
5333
|
+
|
|
5334
|
+
/**
|
|
5335
|
+
* The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
|
|
5336
|
+
* Available only in secure contexts.
|
|
5337
|
+
*
|
|
5338
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
5339
|
+
*/
|
|
5340
|
+
interface GPUValidationError extends GPUError {
|
|
5341
|
+
}
|
|
5342
|
+
|
|
5343
|
+
declare var GPUValidationError: {
|
|
5344
|
+
prototype: GPUValidationError;
|
|
5345
|
+
new(message: string): GPUValidationError;
|
|
5346
|
+
};
|
|
5347
|
+
|
|
4926
5348
|
interface GenericTransformStream {
|
|
4927
5349
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
4928
5350
|
readonly readable: ReadableStream;
|
|
@@ -8532,6 +8954,7 @@ interface SubtleCrypto {
|
|
|
8532
8954
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
8533
8955
|
*/
|
|
8534
8956
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
8957
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
8535
8958
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
8536
8959
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
8537
8960
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
@@ -9694,6 +10117,21 @@ interface WEBGL_multi_draw {
|
|
|
9694
10117
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
9695
10118
|
}
|
|
9696
10119
|
|
|
10120
|
+
/**
|
|
10121
|
+
* The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
10122
|
+
* Available only in secure contexts.
|
|
10123
|
+
*
|
|
10124
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
10125
|
+
*/
|
|
10126
|
+
interface WGSLLanguageFeatures {
|
|
10127
|
+
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
10128
|
+
}
|
|
10129
|
+
|
|
10130
|
+
declare var WGSLLanguageFeatures: {
|
|
10131
|
+
prototype: WGSLLanguageFeatures;
|
|
10132
|
+
new(): WGSLLanguageFeatures;
|
|
10133
|
+
};
|
|
10134
|
+
|
|
9697
10135
|
/**
|
|
9698
10136
|
* The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
|
|
9699
10137
|
*
|
|
@@ -13438,6 +13876,11 @@ type GLsizei = number;
|
|
|
13438
13876
|
type GLsizeiptr = number;
|
|
13439
13877
|
type GLuint = number;
|
|
13440
13878
|
type GLuint64 = number;
|
|
13879
|
+
type GPUFlagsConstant = number;
|
|
13880
|
+
type GPUIntegerCoordinate = number;
|
|
13881
|
+
type GPUIntegerCoordinateOut = number;
|
|
13882
|
+
type GPUSize32Out = number;
|
|
13883
|
+
type GPUTextureUsageFlags = number;
|
|
13441
13884
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
13442
13885
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
13443
13886
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
@@ -13495,7 +13938,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
13495
13938
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
13496
13939
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
13497
13940
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13941
|
+
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13498
13942
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
13943
|
+
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
13944
|
+
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
13945
|
+
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";
|
|
13946
|
+
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
13499
13947
|
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";
|
|
13500
13948
|
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
|
|
13501
13949
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
@@ -13637,6 +14085,9 @@ interface FormData {
|
|
|
13637
14085
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
13638
14086
|
}
|
|
13639
14087
|
|
|
14088
|
+
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
14089
|
+
}
|
|
14090
|
+
|
|
13640
14091
|
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
13641
14092
|
[Symbol.iterator](): HeadersIterator<T>;
|
|
13642
14093
|
}
|
|
@@ -13702,6 +14153,7 @@ interface SubtleCrypto {
|
|
|
13702
14153
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
13703
14154
|
*/
|
|
13704
14155
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
14156
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
13705
14157
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
13706
14158
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
13707
14159
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
@@ -13770,6 +14222,9 @@ interface WEBGL_multi_draw {
|
|
|
13770
14222
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
13771
14223
|
}
|
|
13772
14224
|
|
|
14225
|
+
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
14226
|
+
}
|
|
14227
|
+
|
|
13773
14228
|
interface WebGL2RenderingContextBase {
|
|
13774
14229
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
13775
14230
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
|