@types/serviceworker 0.0.174 → 0.0.175
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 +453 -0
- package/package.json +1 -1
- package/ts5.5/index.d.ts +447 -0
- package/ts5.5/iterable.d.ts +6 -0
- package/ts5.6/index.d.ts +447 -0
- package/ts5.6/iterable.d.ts +6 -0
- package/ts5.9/index.d.ts +447 -0
- package/ts5.9/iterable.d.ts +6 -0
package/ts5.5/index.d.ts
CHANGED
|
@@ -272,10 +272,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
272
272
|
fontfaces?: FontFace[];
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
interface GPUObjectDescriptorBase {
|
|
276
|
+
label?: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
275
279
|
interface GPUPipelineErrorInit {
|
|
276
280
|
reason: GPUPipelineErrorReason;
|
|
277
281
|
}
|
|
278
282
|
|
|
283
|
+
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
284
|
+
arrayLayerCount?: GPUIntegerCoordinate;
|
|
285
|
+
aspect?: GPUTextureAspect;
|
|
286
|
+
baseArrayLayer?: GPUIntegerCoordinate;
|
|
287
|
+
baseMipLevel?: GPUIntegerCoordinate;
|
|
288
|
+
dimension?: GPUTextureViewDimension;
|
|
289
|
+
format?: GPUTextureFormat;
|
|
290
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
291
|
+
usage?: GPUTextureUsageFlags;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
295
|
+
error: GPUError;
|
|
296
|
+
}
|
|
297
|
+
|
|
279
298
|
interface GetNotificationOptions {
|
|
280
299
|
tag?: string;
|
|
281
300
|
}
|
|
@@ -4178,6 +4197,88 @@ declare var FormData: {
|
|
|
4178
4197
|
new(): FormData;
|
|
4179
4198
|
};
|
|
4180
4199
|
|
|
4200
|
+
/**
|
|
4201
|
+
* 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.
|
|
4202
|
+
* Available only in secure contexts.
|
|
4203
|
+
*
|
|
4204
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
4205
|
+
*/
|
|
4206
|
+
interface GPUBindGroup extends GPUObjectBase {
|
|
4207
|
+
}
|
|
4208
|
+
|
|
4209
|
+
declare var GPUBindGroup: {
|
|
4210
|
+
prototype: GPUBindGroup;
|
|
4211
|
+
new(): GPUBindGroup;
|
|
4212
|
+
};
|
|
4213
|
+
|
|
4214
|
+
/**
|
|
4215
|
+
* 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.
|
|
4216
|
+
* Available only in secure contexts.
|
|
4217
|
+
*
|
|
4218
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
4219
|
+
*/
|
|
4220
|
+
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
declare var GPUBindGroupLayout: {
|
|
4224
|
+
prototype: GPUBindGroupLayout;
|
|
4225
|
+
new(): GPUBindGroupLayout;
|
|
4226
|
+
};
|
|
4227
|
+
|
|
4228
|
+
/**
|
|
4229
|
+
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4230
|
+
* Available only in secure contexts.
|
|
4231
|
+
*
|
|
4232
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
4233
|
+
*/
|
|
4234
|
+
interface GPUCommandBuffer extends GPUObjectBase {
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4237
|
+
declare var GPUCommandBuffer: {
|
|
4238
|
+
prototype: GPUCommandBuffer;
|
|
4239
|
+
new(): GPUCommandBuffer;
|
|
4240
|
+
};
|
|
4241
|
+
|
|
4242
|
+
/**
|
|
4243
|
+
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4244
|
+
* Available only in secure contexts.
|
|
4245
|
+
*
|
|
4246
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
4247
|
+
*/
|
|
4248
|
+
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
4249
|
+
}
|
|
4250
|
+
|
|
4251
|
+
declare var GPUComputePipeline: {
|
|
4252
|
+
prototype: GPUComputePipeline;
|
|
4253
|
+
new(): GPUComputePipeline;
|
|
4254
|
+
};
|
|
4255
|
+
|
|
4256
|
+
/**
|
|
4257
|
+
* 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.
|
|
4258
|
+
* Available only in secure contexts.
|
|
4259
|
+
*
|
|
4260
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
4261
|
+
*/
|
|
4262
|
+
interface GPUDeviceLostInfo {
|
|
4263
|
+
/**
|
|
4264
|
+
* The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
|
|
4265
|
+
*
|
|
4266
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
|
|
4267
|
+
*/
|
|
4268
|
+
readonly message: string;
|
|
4269
|
+
/**
|
|
4270
|
+
* The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
|
|
4271
|
+
*
|
|
4272
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
|
|
4273
|
+
*/
|
|
4274
|
+
readonly reason: GPUDeviceLostReason;
|
|
4275
|
+
}
|
|
4276
|
+
|
|
4277
|
+
declare var GPUDeviceLostInfo: {
|
|
4278
|
+
prototype: GPUDeviceLostInfo;
|
|
4279
|
+
new(): GPUDeviceLostInfo;
|
|
4280
|
+
};
|
|
4281
|
+
|
|
4181
4282
|
/**
|
|
4182
4283
|
* The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
|
|
4183
4284
|
* Available only in secure contexts.
|
|
@@ -4198,6 +4299,58 @@ declare var GPUError: {
|
|
|
4198
4299
|
new(): GPUError;
|
|
4199
4300
|
};
|
|
4200
4301
|
|
|
4302
|
+
/**
|
|
4303
|
+
* 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.
|
|
4304
|
+
* Available only in secure contexts.
|
|
4305
|
+
*
|
|
4306
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
4307
|
+
*/
|
|
4308
|
+
interface GPUExternalTexture extends GPUObjectBase {
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
declare var GPUExternalTexture: {
|
|
4312
|
+
prototype: GPUExternalTexture;
|
|
4313
|
+
new(): GPUExternalTexture;
|
|
4314
|
+
};
|
|
4315
|
+
|
|
4316
|
+
/**
|
|
4317
|
+
* 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.
|
|
4318
|
+
* Available only in secure contexts.
|
|
4319
|
+
*
|
|
4320
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
4321
|
+
*/
|
|
4322
|
+
interface GPUInternalError extends GPUError {
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
declare var GPUInternalError: {
|
|
4326
|
+
prototype: GPUInternalError;
|
|
4327
|
+
new(message: string): GPUInternalError;
|
|
4328
|
+
};
|
|
4329
|
+
|
|
4330
|
+
interface GPUObjectBase {
|
|
4331
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
4332
|
+
label: string;
|
|
4333
|
+
}
|
|
4334
|
+
|
|
4335
|
+
/**
|
|
4336
|
+
* 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.
|
|
4337
|
+
* Available only in secure contexts.
|
|
4338
|
+
*
|
|
4339
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
4340
|
+
*/
|
|
4341
|
+
interface GPUOutOfMemoryError extends GPUError {
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
declare var GPUOutOfMemoryError: {
|
|
4345
|
+
prototype: GPUOutOfMemoryError;
|
|
4346
|
+
new(message: string): GPUOutOfMemoryError;
|
|
4347
|
+
};
|
|
4348
|
+
|
|
4349
|
+
interface GPUPipelineBase {
|
|
4350
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
4351
|
+
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
4352
|
+
}
|
|
4353
|
+
|
|
4201
4354
|
/**
|
|
4202
4355
|
* 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.
|
|
4203
4356
|
* Available only in secure contexts.
|
|
@@ -4218,6 +4371,275 @@ declare var GPUPipelineError: {
|
|
|
4218
4371
|
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
4219
4372
|
};
|
|
4220
4373
|
|
|
4374
|
+
/**
|
|
4375
|
+
* 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.
|
|
4376
|
+
* Available only in secure contexts.
|
|
4377
|
+
*
|
|
4378
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
4379
|
+
*/
|
|
4380
|
+
interface GPUPipelineLayout extends GPUObjectBase {
|
|
4381
|
+
}
|
|
4382
|
+
|
|
4383
|
+
declare var GPUPipelineLayout: {
|
|
4384
|
+
prototype: GPUPipelineLayout;
|
|
4385
|
+
new(): GPUPipelineLayout;
|
|
4386
|
+
};
|
|
4387
|
+
|
|
4388
|
+
/**
|
|
4389
|
+
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4390
|
+
* Available only in secure contexts.
|
|
4391
|
+
*
|
|
4392
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
4393
|
+
*/
|
|
4394
|
+
interface GPURenderBundle extends GPUObjectBase {
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
declare var GPURenderBundle: {
|
|
4398
|
+
prototype: GPURenderBundle;
|
|
4399
|
+
new(): GPURenderBundle;
|
|
4400
|
+
};
|
|
4401
|
+
|
|
4402
|
+
/**
|
|
4403
|
+
* 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.
|
|
4404
|
+
* Available only in secure contexts.
|
|
4405
|
+
*
|
|
4406
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
4407
|
+
*/
|
|
4408
|
+
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
declare var GPURenderPipeline: {
|
|
4412
|
+
prototype: GPURenderPipeline;
|
|
4413
|
+
new(): GPURenderPipeline;
|
|
4414
|
+
};
|
|
4415
|
+
|
|
4416
|
+
/**
|
|
4417
|
+
* The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
|
|
4418
|
+
* Available only in secure contexts.
|
|
4419
|
+
*
|
|
4420
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
4421
|
+
*/
|
|
4422
|
+
interface GPUSampler extends GPUObjectBase {
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4425
|
+
declare var GPUSampler: {
|
|
4426
|
+
prototype: GPUSampler;
|
|
4427
|
+
new(): GPUSampler;
|
|
4428
|
+
};
|
|
4429
|
+
|
|
4430
|
+
/**
|
|
4431
|
+
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
4432
|
+
* Available only in secure contexts.
|
|
4433
|
+
*
|
|
4434
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
4435
|
+
*/
|
|
4436
|
+
interface GPUSupportedFeatures {
|
|
4437
|
+
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
declare var GPUSupportedFeatures: {
|
|
4441
|
+
prototype: GPUSupportedFeatures;
|
|
4442
|
+
new(): GPUSupportedFeatures;
|
|
4443
|
+
};
|
|
4444
|
+
|
|
4445
|
+
/**
|
|
4446
|
+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
|
|
4447
|
+
* Available only in secure contexts.
|
|
4448
|
+
*
|
|
4449
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
4450
|
+
*/
|
|
4451
|
+
interface GPUSupportedLimits {
|
|
4452
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4453
|
+
readonly maxBindGroups: number;
|
|
4454
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4455
|
+
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
4456
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4457
|
+
readonly maxBindingsPerBindGroup: number;
|
|
4458
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4459
|
+
readonly maxBufferSize: number;
|
|
4460
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4461
|
+
readonly maxColorAttachmentBytesPerSample: number;
|
|
4462
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4463
|
+
readonly maxColorAttachments: number;
|
|
4464
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4465
|
+
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
4466
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4467
|
+
readonly maxComputeWorkgroupSizeX: number;
|
|
4468
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4469
|
+
readonly maxComputeWorkgroupSizeY: number;
|
|
4470
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4471
|
+
readonly maxComputeWorkgroupSizeZ: number;
|
|
4472
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4473
|
+
readonly maxComputeWorkgroupStorageSize: number;
|
|
4474
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4475
|
+
readonly maxComputeWorkgroupsPerDimension: number;
|
|
4476
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4477
|
+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
4478
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4479
|
+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
4480
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4481
|
+
readonly maxInterStageShaderVariables: number;
|
|
4482
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4483
|
+
readonly maxSampledTexturesPerShaderStage: number;
|
|
4484
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4485
|
+
readonly maxSamplersPerShaderStage: number;
|
|
4486
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4487
|
+
readonly maxStorageBufferBindingSize: number;
|
|
4488
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4489
|
+
readonly maxStorageBuffersPerShaderStage: number;
|
|
4490
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4491
|
+
readonly maxStorageTexturesPerShaderStage: number;
|
|
4492
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4493
|
+
readonly maxTextureArrayLayers: number;
|
|
4494
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4495
|
+
readonly maxTextureDimension1D: number;
|
|
4496
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4497
|
+
readonly maxTextureDimension2D: number;
|
|
4498
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4499
|
+
readonly maxTextureDimension3D: number;
|
|
4500
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4501
|
+
readonly maxUniformBufferBindingSize: number;
|
|
4502
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4503
|
+
readonly maxUniformBuffersPerShaderStage: number;
|
|
4504
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4505
|
+
readonly maxVertexAttributes: number;
|
|
4506
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4507
|
+
readonly maxVertexBufferArrayStride: number;
|
|
4508
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4509
|
+
readonly maxVertexBuffers: number;
|
|
4510
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4511
|
+
readonly minStorageBufferOffsetAlignment: number;
|
|
4512
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4513
|
+
readonly minUniformBufferOffsetAlignment: number;
|
|
4514
|
+
}
|
|
4515
|
+
|
|
4516
|
+
declare var GPUSupportedLimits: {
|
|
4517
|
+
prototype: GPUSupportedLimits;
|
|
4518
|
+
new(): GPUSupportedLimits;
|
|
4519
|
+
};
|
|
4520
|
+
|
|
4521
|
+
/**
|
|
4522
|
+
* 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.
|
|
4523
|
+
* Available only in secure contexts.
|
|
4524
|
+
*
|
|
4525
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
4526
|
+
*/
|
|
4527
|
+
interface GPUTexture extends GPUObjectBase {
|
|
4528
|
+
/**
|
|
4529
|
+
* The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
|
|
4530
|
+
*
|
|
4531
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
|
|
4532
|
+
*/
|
|
4533
|
+
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
4534
|
+
/**
|
|
4535
|
+
* The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
|
|
4536
|
+
*
|
|
4537
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
|
|
4538
|
+
*/
|
|
4539
|
+
readonly dimension: GPUTextureDimension;
|
|
4540
|
+
/**
|
|
4541
|
+
* The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
|
|
4542
|
+
*
|
|
4543
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
|
|
4544
|
+
*/
|
|
4545
|
+
readonly format: GPUTextureFormat;
|
|
4546
|
+
/**
|
|
4547
|
+
* The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
|
|
4548
|
+
*
|
|
4549
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
|
|
4550
|
+
*/
|
|
4551
|
+
readonly height: GPUIntegerCoordinateOut;
|
|
4552
|
+
/**
|
|
4553
|
+
* The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
|
|
4554
|
+
*
|
|
4555
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
|
|
4556
|
+
*/
|
|
4557
|
+
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
4558
|
+
/**
|
|
4559
|
+
* The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
|
|
4560
|
+
*
|
|
4561
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
|
|
4562
|
+
*/
|
|
4563
|
+
readonly sampleCount: GPUSize32Out;
|
|
4564
|
+
/**
|
|
4565
|
+
* The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
|
|
4566
|
+
*
|
|
4567
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
|
|
4568
|
+
*/
|
|
4569
|
+
readonly usage: GPUFlagsConstant;
|
|
4570
|
+
/**
|
|
4571
|
+
* The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
|
|
4572
|
+
*
|
|
4573
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
|
|
4574
|
+
*/
|
|
4575
|
+
readonly width: GPUIntegerCoordinateOut;
|
|
4576
|
+
/**
|
|
4577
|
+
* The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
|
|
4578
|
+
*
|
|
4579
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
|
|
4580
|
+
*/
|
|
4581
|
+
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
4582
|
+
/**
|
|
4583
|
+
* The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
|
|
4584
|
+
*
|
|
4585
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
|
|
4586
|
+
*/
|
|
4587
|
+
destroy(): void;
|
|
4588
|
+
}
|
|
4589
|
+
|
|
4590
|
+
declare var GPUTexture: {
|
|
4591
|
+
prototype: GPUTexture;
|
|
4592
|
+
new(): GPUTexture;
|
|
4593
|
+
};
|
|
4594
|
+
|
|
4595
|
+
/**
|
|
4596
|
+
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
|
|
4597
|
+
* Available only in secure contexts.
|
|
4598
|
+
*
|
|
4599
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
4600
|
+
*/
|
|
4601
|
+
interface GPUTextureView extends GPUObjectBase {
|
|
4602
|
+
}
|
|
4603
|
+
|
|
4604
|
+
declare var GPUTextureView: {
|
|
4605
|
+
prototype: GPUTextureView;
|
|
4606
|
+
new(): GPUTextureView;
|
|
4607
|
+
};
|
|
4608
|
+
|
|
4609
|
+
/**
|
|
4610
|
+
* 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.
|
|
4611
|
+
* Available only in secure contexts.
|
|
4612
|
+
*
|
|
4613
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
4614
|
+
*/
|
|
4615
|
+
interface GPUUncapturedErrorEvent extends Event {
|
|
4616
|
+
/**
|
|
4617
|
+
* The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
|
|
4618
|
+
*
|
|
4619
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
|
|
4620
|
+
*/
|
|
4621
|
+
readonly error: GPUError;
|
|
4622
|
+
}
|
|
4623
|
+
|
|
4624
|
+
declare var GPUUncapturedErrorEvent: {
|
|
4625
|
+
prototype: GPUUncapturedErrorEvent;
|
|
4626
|
+
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
4627
|
+
};
|
|
4628
|
+
|
|
4629
|
+
/**
|
|
4630
|
+
* The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
|
|
4631
|
+
* Available only in secure contexts.
|
|
4632
|
+
*
|
|
4633
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
4634
|
+
*/
|
|
4635
|
+
interface GPUValidationError extends GPUError {
|
|
4636
|
+
}
|
|
4637
|
+
|
|
4638
|
+
declare var GPUValidationError: {
|
|
4639
|
+
prototype: GPUValidationError;
|
|
4640
|
+
new(message: string): GPUValidationError;
|
|
4641
|
+
};
|
|
4642
|
+
|
|
4221
4643
|
interface GenericTransformStream {
|
|
4222
4644
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
4223
4645
|
readonly readable: ReadableStream;
|
|
@@ -8238,6 +8660,21 @@ interface WEBGL_multi_draw {
|
|
|
8238
8660
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
8239
8661
|
}
|
|
8240
8662
|
|
|
8663
|
+
/**
|
|
8664
|
+
* The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
8665
|
+
* Available only in secure contexts.
|
|
8666
|
+
*
|
|
8667
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
8668
|
+
*/
|
|
8669
|
+
interface WGSLLanguageFeatures {
|
|
8670
|
+
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
8671
|
+
}
|
|
8672
|
+
|
|
8673
|
+
declare var WGSLLanguageFeatures: {
|
|
8674
|
+
prototype: WGSLLanguageFeatures;
|
|
8675
|
+
new(): WGSLLanguageFeatures;
|
|
8676
|
+
};
|
|
8677
|
+
|
|
8241
8678
|
/**
|
|
8242
8679
|
* The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
|
|
8243
8680
|
*
|
|
@@ -11759,6 +12196,11 @@ type GLsizei = number;
|
|
|
11759
12196
|
type GLsizeiptr = number;
|
|
11760
12197
|
type GLuint = number;
|
|
11761
12198
|
type GLuint64 = number;
|
|
12199
|
+
type GPUFlagsConstant = number;
|
|
12200
|
+
type GPUIntegerCoordinate = number;
|
|
12201
|
+
type GPUIntegerCoordinateOut = number;
|
|
12202
|
+
type GPUSize32Out = number;
|
|
12203
|
+
type GPUTextureUsageFlags = number;
|
|
11762
12204
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
11763
12205
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
11764
12206
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
@@ -11807,7 +12249,12 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
11807
12249
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
11808
12250
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
11809
12251
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
12252
|
+
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
11810
12253
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12254
|
+
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12255
|
+
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12256
|
+
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";
|
|
12257
|
+
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
11811
12258
|
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";
|
|
11812
12259
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
11813
12260
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -78,6 +78,9 @@ interface FormData {
|
|
|
78
78
|
values(): IterableIterator<FormDataEntryValue>;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
82
|
+
}
|
|
83
|
+
|
|
81
84
|
interface Headers {
|
|
82
85
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
83
86
|
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
|
|
@@ -196,6 +199,9 @@ interface WEBGL_multi_draw {
|
|
|
196
199
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
197
200
|
}
|
|
198
201
|
|
|
202
|
+
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
203
|
+
}
|
|
204
|
+
|
|
199
205
|
interface WebGL2RenderingContextBase {
|
|
200
206
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
201
207
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
|