@types/serviceworker 0.0.174 → 0.0.176
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 +618 -1
- package/package.json +1 -1
- package/ts5.5/index.d.ts +612 -1
- package/ts5.5/iterable.d.ts +6 -0
- package/ts5.6/index.d.ts +612 -1
- package/ts5.6/iterable.d.ts +6 -0
- package/ts5.9/index.d.ts +612 -1
- package/ts5.9/iterable.d.ts +6 -0
package/index.d.ts
CHANGED
|
@@ -275,10 +275,29 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
275
275
|
fontfaces?: FontFace[];
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
interface GPUObjectDescriptorBase {
|
|
279
|
+
label?: string;
|
|
280
|
+
}
|
|
281
|
+
|
|
278
282
|
interface GPUPipelineErrorInit {
|
|
279
283
|
reason: GPUPipelineErrorReason;
|
|
280
284
|
}
|
|
281
285
|
|
|
286
|
+
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
287
|
+
arrayLayerCount?: GPUIntegerCoordinate;
|
|
288
|
+
aspect?: GPUTextureAspect;
|
|
289
|
+
baseArrayLayer?: GPUIntegerCoordinate;
|
|
290
|
+
baseMipLevel?: GPUIntegerCoordinate;
|
|
291
|
+
dimension?: GPUTextureViewDimension;
|
|
292
|
+
format?: GPUTextureFormat;
|
|
293
|
+
mipLevelCount?: GPUIntegerCoordinate;
|
|
294
|
+
usage?: GPUTextureUsageFlags;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
298
|
+
error: GPUError;
|
|
299
|
+
}
|
|
300
|
+
|
|
282
301
|
interface GetNotificationOptions {
|
|
283
302
|
tag?: string;
|
|
284
303
|
}
|
|
@@ -4181,6 +4200,214 @@ declare var FormData: {
|
|
|
4181
4200
|
new(): FormData;
|
|
4182
4201
|
};
|
|
4183
4202
|
|
|
4203
|
+
/**
|
|
4204
|
+
* 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.
|
|
4205
|
+
* Available only in secure contexts.
|
|
4206
|
+
*
|
|
4207
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
4208
|
+
*/
|
|
4209
|
+
interface GPUBindGroup extends GPUObjectBase {
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
declare var GPUBindGroup: {
|
|
4213
|
+
prototype: GPUBindGroup;
|
|
4214
|
+
new(): GPUBindGroup;
|
|
4215
|
+
};
|
|
4216
|
+
|
|
4217
|
+
/**
|
|
4218
|
+
* 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.
|
|
4219
|
+
* Available only in secure contexts.
|
|
4220
|
+
*
|
|
4221
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
4222
|
+
*/
|
|
4223
|
+
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
declare var GPUBindGroupLayout: {
|
|
4227
|
+
prototype: GPUBindGroupLayout;
|
|
4228
|
+
new(): GPUBindGroupLayout;
|
|
4229
|
+
};
|
|
4230
|
+
|
|
4231
|
+
/**
|
|
4232
|
+
* The **`GPUBuffer`** interface of the WebGPU API represents a block of memory that can be used to store raw data to use in GPU operations.
|
|
4233
|
+
* Available only in secure contexts.
|
|
4234
|
+
*
|
|
4235
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
4236
|
+
*/
|
|
4237
|
+
interface GPUBuffer extends GPUObjectBase {
|
|
4238
|
+
/**
|
|
4239
|
+
* The **`mapState`** read-only property of the GPUBuffer interface represents the mapped state of the GPUBuffer.
|
|
4240
|
+
*
|
|
4241
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState)
|
|
4242
|
+
*/
|
|
4243
|
+
readonly mapState: GPUBufferMapState;
|
|
4244
|
+
/**
|
|
4245
|
+
* The **`size`** read-only property of the GPUBuffer interface represents the length of the GPUBuffer's memory allocation, in bytes.
|
|
4246
|
+
*
|
|
4247
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size)
|
|
4248
|
+
*/
|
|
4249
|
+
readonly size: GPUSize64Out;
|
|
4250
|
+
/**
|
|
4251
|
+
* The **`usage`** read-only property of the GPUBuffer interface contains the bitwise flags representing the allowed usages of the GPUBuffer.
|
|
4252
|
+
*
|
|
4253
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage)
|
|
4254
|
+
*/
|
|
4255
|
+
readonly usage: GPUFlagsConstant;
|
|
4256
|
+
/**
|
|
4257
|
+
* The **`destroy()`** method of the GPUBuffer interface destroys the GPUBuffer.
|
|
4258
|
+
*
|
|
4259
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy)
|
|
4260
|
+
*/
|
|
4261
|
+
destroy(): void;
|
|
4262
|
+
/**
|
|
4263
|
+
* The **`getMappedRange()`** method of the GPUBuffer interface returns an ArrayBuffer containing the mapped contents of the GPUBuffer in the specified range.
|
|
4264
|
+
*
|
|
4265
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange)
|
|
4266
|
+
*/
|
|
4267
|
+
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
4268
|
+
/**
|
|
4269
|
+
* The **`mapAsync()`** method of the GPUBuffer interface maps the specified range of the GPUBuffer. It returns a Promise that resolves when the GPUBuffer's content is ready to be accessed. While the GPUBuffer is mapped it cannot be used in any GPU commands.
|
|
4270
|
+
*
|
|
4271
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync)
|
|
4272
|
+
*/
|
|
4273
|
+
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
4274
|
+
/**
|
|
4275
|
+
* The **`unmap()`** method of the GPUBuffer interface unmaps the mapped range of the GPUBuffer, making its contents available for use by the GPU again after it has previously been mapped with GPUBuffer.mapAsync() (the GPU cannot access a mapped GPUBuffer).
|
|
4276
|
+
*
|
|
4277
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap)
|
|
4278
|
+
*/
|
|
4279
|
+
unmap(): void;
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
declare var GPUBuffer: {
|
|
4283
|
+
prototype: GPUBuffer;
|
|
4284
|
+
new(): GPUBuffer;
|
|
4285
|
+
};
|
|
4286
|
+
|
|
4287
|
+
/**
|
|
4288
|
+
* The **`GPUCommandBuffer`** interface of the WebGPU API represents a pre-recorded list of GPU commands that can be submitted to a GPUQueue for execution.
|
|
4289
|
+
* Available only in secure contexts.
|
|
4290
|
+
*
|
|
4291
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
4292
|
+
*/
|
|
4293
|
+
interface GPUCommandBuffer extends GPUObjectBase {
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
declare var GPUCommandBuffer: {
|
|
4297
|
+
prototype: GPUCommandBuffer;
|
|
4298
|
+
new(): GPUCommandBuffer;
|
|
4299
|
+
};
|
|
4300
|
+
|
|
4301
|
+
/**
|
|
4302
|
+
* The **`GPUCompilationInfo`** interface of the WebGPU API represents an array of GPUCompilationMessage objects generated by the GPU shader module compiler to help diagnose problems with shader code.
|
|
4303
|
+
* Available only in secure contexts.
|
|
4304
|
+
*
|
|
4305
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
4306
|
+
*/
|
|
4307
|
+
interface GPUCompilationInfo {
|
|
4308
|
+
/**
|
|
4309
|
+
* The **`messages`** read-only property of the GPUCompilationInfo interface is an array of GPUCompilationMessage objects, each one containing the details of an individual shader compilation message. Messages can be informational, warnings, or errors.
|
|
4310
|
+
*
|
|
4311
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages)
|
|
4312
|
+
*/
|
|
4313
|
+
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
declare var GPUCompilationInfo: {
|
|
4317
|
+
prototype: GPUCompilationInfo;
|
|
4318
|
+
new(): GPUCompilationInfo;
|
|
4319
|
+
};
|
|
4320
|
+
|
|
4321
|
+
/**
|
|
4322
|
+
* The **`GPUCompilationMessage`** interface of the WebGPU API represents a single informational, warning, or error message generated by the GPU shader module compiler.
|
|
4323
|
+
* Available only in secure contexts.
|
|
4324
|
+
*
|
|
4325
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
4326
|
+
*/
|
|
4327
|
+
interface GPUCompilationMessage {
|
|
4328
|
+
/**
|
|
4329
|
+
* The **`length`** read-only property of the GPUCompilationMessage interface is a number representing the length of the substring that the message corresponds to.
|
|
4330
|
+
*
|
|
4331
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length)
|
|
4332
|
+
*/
|
|
4333
|
+
readonly length: number;
|
|
4334
|
+
/**
|
|
4335
|
+
* The **`lineNum`** read-only property of the GPUCompilationMessage interface is a number representing the line number in the shader code that the message corresponds to.
|
|
4336
|
+
*
|
|
4337
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum)
|
|
4338
|
+
*/
|
|
4339
|
+
readonly lineNum: number;
|
|
4340
|
+
/**
|
|
4341
|
+
* The **`linePos`** read-only property of the GPUCompilationMessage interface is a number representing the position in the code line that the message corresponds to. This could be an exact point, or the start of the relevant substring.
|
|
4342
|
+
*
|
|
4343
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos)
|
|
4344
|
+
*/
|
|
4345
|
+
readonly linePos: number;
|
|
4346
|
+
/**
|
|
4347
|
+
* The **`message`** read-only property of the GPUCompilationMessage interface is a string representing human-readable message text.
|
|
4348
|
+
*
|
|
4349
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message)
|
|
4350
|
+
*/
|
|
4351
|
+
readonly message: string;
|
|
4352
|
+
/**
|
|
4353
|
+
* The **`offset`** read-only property of the GPUCompilationMessage interface is a number representing the offset from the start of the shader code to the exact point, or the start of the relevant substring, that the message corresponds to.
|
|
4354
|
+
*
|
|
4355
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset)
|
|
4356
|
+
*/
|
|
4357
|
+
readonly offset: number;
|
|
4358
|
+
/**
|
|
4359
|
+
* The **`type`** read-only property of the GPUCompilationMessage interface is an enumerated value representing the type of the message. Each type represents a different severity level.
|
|
4360
|
+
*
|
|
4361
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type)
|
|
4362
|
+
*/
|
|
4363
|
+
readonly type: GPUCompilationMessageType;
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4366
|
+
declare var GPUCompilationMessage: {
|
|
4367
|
+
prototype: GPUCompilationMessage;
|
|
4368
|
+
new(): GPUCompilationMessage;
|
|
4369
|
+
};
|
|
4370
|
+
|
|
4371
|
+
/**
|
|
4372
|
+
* The **`GPUComputePipeline`** interface of the WebGPU API represents a pipeline that controls the compute shader stage and can be used in a GPUComputePassEncoder.
|
|
4373
|
+
* Available only in secure contexts.
|
|
4374
|
+
*
|
|
4375
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
4376
|
+
*/
|
|
4377
|
+
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
4378
|
+
}
|
|
4379
|
+
|
|
4380
|
+
declare var GPUComputePipeline: {
|
|
4381
|
+
prototype: GPUComputePipeline;
|
|
4382
|
+
new(): GPUComputePipeline;
|
|
4383
|
+
};
|
|
4384
|
+
|
|
4385
|
+
/**
|
|
4386
|
+
* 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.
|
|
4387
|
+
* Available only in secure contexts.
|
|
4388
|
+
*
|
|
4389
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
4390
|
+
*/
|
|
4391
|
+
interface GPUDeviceLostInfo {
|
|
4392
|
+
/**
|
|
4393
|
+
* The **`message`** read-only property of the GPUDeviceLostInfo interface provides a human-readable message that explains why the device was lost.
|
|
4394
|
+
*
|
|
4395
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message)
|
|
4396
|
+
*/
|
|
4397
|
+
readonly message: string;
|
|
4398
|
+
/**
|
|
4399
|
+
* The **`reason`** read-only property of the GPUDeviceLostInfo interface defines the reason the device was lost in a machine-readable way.
|
|
4400
|
+
*
|
|
4401
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason)
|
|
4402
|
+
*/
|
|
4403
|
+
readonly reason: GPUDeviceLostReason;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
declare var GPUDeviceLostInfo: {
|
|
4407
|
+
prototype: GPUDeviceLostInfo;
|
|
4408
|
+
new(): GPUDeviceLostInfo;
|
|
4409
|
+
};
|
|
4410
|
+
|
|
4184
4411
|
/**
|
|
4185
4412
|
* The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
|
|
4186
4413
|
* Available only in secure contexts.
|
|
@@ -4201,6 +4428,58 @@ declare var GPUError: {
|
|
|
4201
4428
|
new(): GPUError;
|
|
4202
4429
|
};
|
|
4203
4430
|
|
|
4431
|
+
/**
|
|
4432
|
+
* 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.
|
|
4433
|
+
* Available only in secure contexts.
|
|
4434
|
+
*
|
|
4435
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
4436
|
+
*/
|
|
4437
|
+
interface GPUExternalTexture extends GPUObjectBase {
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
declare var GPUExternalTexture: {
|
|
4441
|
+
prototype: GPUExternalTexture;
|
|
4442
|
+
new(): GPUExternalTexture;
|
|
4443
|
+
};
|
|
4444
|
+
|
|
4445
|
+
/**
|
|
4446
|
+
* 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.
|
|
4447
|
+
* Available only in secure contexts.
|
|
4448
|
+
*
|
|
4449
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
4450
|
+
*/
|
|
4451
|
+
interface GPUInternalError extends GPUError {
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4454
|
+
declare var GPUInternalError: {
|
|
4455
|
+
prototype: GPUInternalError;
|
|
4456
|
+
new(message: string): GPUInternalError;
|
|
4457
|
+
};
|
|
4458
|
+
|
|
4459
|
+
interface GPUObjectBase {
|
|
4460
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
4461
|
+
label: string;
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
/**
|
|
4465
|
+
* 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.
|
|
4466
|
+
* Available only in secure contexts.
|
|
4467
|
+
*
|
|
4468
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
4469
|
+
*/
|
|
4470
|
+
interface GPUOutOfMemoryError extends GPUError {
|
|
4471
|
+
}
|
|
4472
|
+
|
|
4473
|
+
declare var GPUOutOfMemoryError: {
|
|
4474
|
+
prototype: GPUOutOfMemoryError;
|
|
4475
|
+
new(message: string): GPUOutOfMemoryError;
|
|
4476
|
+
};
|
|
4477
|
+
|
|
4478
|
+
interface GPUPipelineBase {
|
|
4479
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
4480
|
+
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
4481
|
+
}
|
|
4482
|
+
|
|
4204
4483
|
/**
|
|
4205
4484
|
* 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.
|
|
4206
4485
|
* Available only in secure contexts.
|
|
@@ -4221,6 +4500,295 @@ declare var GPUPipelineError: {
|
|
|
4221
4500
|
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
4222
4501
|
};
|
|
4223
4502
|
|
|
4503
|
+
/**
|
|
4504
|
+
* 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.
|
|
4505
|
+
* Available only in secure contexts.
|
|
4506
|
+
*
|
|
4507
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
4508
|
+
*/
|
|
4509
|
+
interface GPUPipelineLayout extends GPUObjectBase {
|
|
4510
|
+
}
|
|
4511
|
+
|
|
4512
|
+
declare var GPUPipelineLayout: {
|
|
4513
|
+
prototype: GPUPipelineLayout;
|
|
4514
|
+
new(): GPUPipelineLayout;
|
|
4515
|
+
};
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* The **`GPURenderBundle`** interface of the WebGPU API represents a container for pre-recorded bundles of commands.
|
|
4519
|
+
* Available only in secure contexts.
|
|
4520
|
+
*
|
|
4521
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
4522
|
+
*/
|
|
4523
|
+
interface GPURenderBundle extends GPUObjectBase {
|
|
4524
|
+
}
|
|
4525
|
+
|
|
4526
|
+
declare var GPURenderBundle: {
|
|
4527
|
+
prototype: GPURenderBundle;
|
|
4528
|
+
new(): GPURenderBundle;
|
|
4529
|
+
};
|
|
4530
|
+
|
|
4531
|
+
/**
|
|
4532
|
+
* 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.
|
|
4533
|
+
* Available only in secure contexts.
|
|
4534
|
+
*
|
|
4535
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
4536
|
+
*/
|
|
4537
|
+
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
4538
|
+
}
|
|
4539
|
+
|
|
4540
|
+
declare var GPURenderPipeline: {
|
|
4541
|
+
prototype: GPURenderPipeline;
|
|
4542
|
+
new(): GPURenderPipeline;
|
|
4543
|
+
};
|
|
4544
|
+
|
|
4545
|
+
/**
|
|
4546
|
+
* The **`GPUSampler`** interface of the WebGPU API represents an object that can control how shaders transform and filter texture resource data.
|
|
4547
|
+
* Available only in secure contexts.
|
|
4548
|
+
*
|
|
4549
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
4550
|
+
*/
|
|
4551
|
+
interface GPUSampler extends GPUObjectBase {
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
declare var GPUSampler: {
|
|
4555
|
+
prototype: GPUSampler;
|
|
4556
|
+
new(): GPUSampler;
|
|
4557
|
+
};
|
|
4558
|
+
|
|
4559
|
+
/**
|
|
4560
|
+
* The **`GPUShaderModule`** interface of the WebGPU API represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.
|
|
4561
|
+
* Available only in secure contexts.
|
|
4562
|
+
*
|
|
4563
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
4564
|
+
*/
|
|
4565
|
+
interface GPUShaderModule extends GPUObjectBase {
|
|
4566
|
+
/**
|
|
4567
|
+
* The **`getCompilationInfo()`** method of the GPUShaderModule interface returns a Promise that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.
|
|
4568
|
+
*
|
|
4569
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo)
|
|
4570
|
+
*/
|
|
4571
|
+
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
4572
|
+
}
|
|
4573
|
+
|
|
4574
|
+
declare var GPUShaderModule: {
|
|
4575
|
+
prototype: GPUShaderModule;
|
|
4576
|
+
new(): GPUShaderModule;
|
|
4577
|
+
};
|
|
4578
|
+
|
|
4579
|
+
/**
|
|
4580
|
+
* The **`GPUSupportedFeatures`** interface of the WebGPU API is a Set-like object that describes additional functionality supported by a GPUAdapter.
|
|
4581
|
+
* Available only in secure contexts.
|
|
4582
|
+
*
|
|
4583
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
4584
|
+
*/
|
|
4585
|
+
interface GPUSupportedFeatures {
|
|
4586
|
+
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
4587
|
+
}
|
|
4588
|
+
|
|
4589
|
+
declare var GPUSupportedFeatures: {
|
|
4590
|
+
prototype: GPUSupportedFeatures;
|
|
4591
|
+
new(): GPUSupportedFeatures;
|
|
4592
|
+
};
|
|
4593
|
+
|
|
4594
|
+
/**
|
|
4595
|
+
* The **`GPUSupportedLimits`** interface of the WebGPU API describes the limits supported by a GPUAdapter.
|
|
4596
|
+
* Available only in secure contexts.
|
|
4597
|
+
*
|
|
4598
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
4599
|
+
*/
|
|
4600
|
+
interface GPUSupportedLimits {
|
|
4601
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4602
|
+
readonly maxBindGroups: number;
|
|
4603
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4604
|
+
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
4605
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4606
|
+
readonly maxBindingsPerBindGroup: number;
|
|
4607
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4608
|
+
readonly maxBufferSize: number;
|
|
4609
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4610
|
+
readonly maxColorAttachmentBytesPerSample: number;
|
|
4611
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4612
|
+
readonly maxColorAttachments: number;
|
|
4613
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4614
|
+
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
4615
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4616
|
+
readonly maxComputeWorkgroupSizeX: number;
|
|
4617
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4618
|
+
readonly maxComputeWorkgroupSizeY: number;
|
|
4619
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4620
|
+
readonly maxComputeWorkgroupSizeZ: number;
|
|
4621
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4622
|
+
readonly maxComputeWorkgroupStorageSize: number;
|
|
4623
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4624
|
+
readonly maxComputeWorkgroupsPerDimension: number;
|
|
4625
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4626
|
+
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
4627
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4628
|
+
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
4629
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4630
|
+
readonly maxInterStageShaderVariables: number;
|
|
4631
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4632
|
+
readonly maxSampledTexturesPerShaderStage: number;
|
|
4633
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4634
|
+
readonly maxSamplersPerShaderStage: number;
|
|
4635
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4636
|
+
readonly maxStorageBufferBindingSize: number;
|
|
4637
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4638
|
+
readonly maxStorageBuffersPerShaderStage: number;
|
|
4639
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4640
|
+
readonly maxStorageTexturesPerShaderStage: number;
|
|
4641
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4642
|
+
readonly maxTextureArrayLayers: number;
|
|
4643
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4644
|
+
readonly maxTextureDimension1D: number;
|
|
4645
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4646
|
+
readonly maxTextureDimension2D: number;
|
|
4647
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4648
|
+
readonly maxTextureDimension3D: number;
|
|
4649
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4650
|
+
readonly maxUniformBufferBindingSize: number;
|
|
4651
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4652
|
+
readonly maxUniformBuffersPerShaderStage: number;
|
|
4653
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4654
|
+
readonly maxVertexAttributes: number;
|
|
4655
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4656
|
+
readonly maxVertexBufferArrayStride: number;
|
|
4657
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4658
|
+
readonly maxVertexBuffers: number;
|
|
4659
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4660
|
+
readonly minStorageBufferOffsetAlignment: number;
|
|
4661
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
4662
|
+
readonly minUniformBufferOffsetAlignment: number;
|
|
4663
|
+
}
|
|
4664
|
+
|
|
4665
|
+
declare var GPUSupportedLimits: {
|
|
4666
|
+
prototype: GPUSupportedLimits;
|
|
4667
|
+
new(): GPUSupportedLimits;
|
|
4668
|
+
};
|
|
4669
|
+
|
|
4670
|
+
/**
|
|
4671
|
+
* 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.
|
|
4672
|
+
* Available only in secure contexts.
|
|
4673
|
+
*
|
|
4674
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
4675
|
+
*/
|
|
4676
|
+
interface GPUTexture extends GPUObjectBase {
|
|
4677
|
+
/**
|
|
4678
|
+
* The **`depthOrArrayLayers`** read-only property of the GPUTexture interface represents the depth or layer count of the GPUTexture.
|
|
4679
|
+
*
|
|
4680
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers)
|
|
4681
|
+
*/
|
|
4682
|
+
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
4683
|
+
/**
|
|
4684
|
+
* The **`dimension`** read-only property of the GPUTexture interface represents the dimension of the set of texels for each GPUTexture subresource.
|
|
4685
|
+
*
|
|
4686
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension)
|
|
4687
|
+
*/
|
|
4688
|
+
readonly dimension: GPUTextureDimension;
|
|
4689
|
+
/**
|
|
4690
|
+
* The **`format`** read-only property of the GPUTexture interface represents the format of the GPUTexture.
|
|
4691
|
+
*
|
|
4692
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format)
|
|
4693
|
+
*/
|
|
4694
|
+
readonly format: GPUTextureFormat;
|
|
4695
|
+
/**
|
|
4696
|
+
* The **`height`** read-only property of the GPUTexture interface represents the height of the GPUTexture.
|
|
4697
|
+
*
|
|
4698
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height)
|
|
4699
|
+
*/
|
|
4700
|
+
readonly height: GPUIntegerCoordinateOut;
|
|
4701
|
+
/**
|
|
4702
|
+
* The **`mipLevelCount`** read-only property of the GPUTexture interface represents the number of mip levels of the GPUTexture.
|
|
4703
|
+
*
|
|
4704
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount)
|
|
4705
|
+
*/
|
|
4706
|
+
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
4707
|
+
/**
|
|
4708
|
+
* The **`sampleCount`** read-only property of the GPUTexture interface represents the sample count of the GPUTexture.
|
|
4709
|
+
*
|
|
4710
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount)
|
|
4711
|
+
*/
|
|
4712
|
+
readonly sampleCount: GPUSize32Out;
|
|
4713
|
+
/**
|
|
4714
|
+
* The **`usage`** read-only property of the GPUTexture interface is the bitwise flags representing the allowed usages of the GPUTexture.
|
|
4715
|
+
*
|
|
4716
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage)
|
|
4717
|
+
*/
|
|
4718
|
+
readonly usage: GPUFlagsConstant;
|
|
4719
|
+
/**
|
|
4720
|
+
* The **`width`** read-only property of the GPUTexture interface represents the width of the GPUTexture.
|
|
4721
|
+
*
|
|
4722
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width)
|
|
4723
|
+
*/
|
|
4724
|
+
readonly width: GPUIntegerCoordinateOut;
|
|
4725
|
+
/**
|
|
4726
|
+
* The **`createView()`** method of the GPUTexture interface creates a GPUTextureView representing a specific view of the GPUTexture.
|
|
4727
|
+
*
|
|
4728
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView)
|
|
4729
|
+
*/
|
|
4730
|
+
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
4731
|
+
/**
|
|
4732
|
+
* The **`destroy()`** method of the GPUTexture interface destroys the GPUTexture.
|
|
4733
|
+
*
|
|
4734
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy)
|
|
4735
|
+
*/
|
|
4736
|
+
destroy(): void;
|
|
4737
|
+
}
|
|
4738
|
+
|
|
4739
|
+
declare var GPUTexture: {
|
|
4740
|
+
prototype: GPUTexture;
|
|
4741
|
+
new(): GPUTexture;
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
/**
|
|
4745
|
+
* The **`GPUTextureView`** interface of the WebGPU API represents a view into a subset of the texture resources defined by a particular GPUTexture.
|
|
4746
|
+
* Available only in secure contexts.
|
|
4747
|
+
*
|
|
4748
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
4749
|
+
*/
|
|
4750
|
+
interface GPUTextureView extends GPUObjectBase {
|
|
4751
|
+
}
|
|
4752
|
+
|
|
4753
|
+
declare var GPUTextureView: {
|
|
4754
|
+
prototype: GPUTextureView;
|
|
4755
|
+
new(): GPUTextureView;
|
|
4756
|
+
};
|
|
4757
|
+
|
|
4758
|
+
/**
|
|
4759
|
+
* 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.
|
|
4760
|
+
* Available only in secure contexts.
|
|
4761
|
+
*
|
|
4762
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
4763
|
+
*/
|
|
4764
|
+
interface GPUUncapturedErrorEvent extends Event {
|
|
4765
|
+
/**
|
|
4766
|
+
* The **`error`** read-only property of the GPUUncapturedErrorEvent interface is a GPUError object instance providing access to the details of the error.
|
|
4767
|
+
*
|
|
4768
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error)
|
|
4769
|
+
*/
|
|
4770
|
+
readonly error: GPUError;
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4773
|
+
declare var GPUUncapturedErrorEvent: {
|
|
4774
|
+
prototype: GPUUncapturedErrorEvent;
|
|
4775
|
+
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
4776
|
+
};
|
|
4777
|
+
|
|
4778
|
+
/**
|
|
4779
|
+
* The **`GPUValidationError`** interface of the WebGPU API describes an application error indicating that an operation did not pass the WebGPU API's validation constraints.
|
|
4780
|
+
* Available only in secure contexts.
|
|
4781
|
+
*
|
|
4782
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
4783
|
+
*/
|
|
4784
|
+
interface GPUValidationError extends GPUError {
|
|
4785
|
+
}
|
|
4786
|
+
|
|
4787
|
+
declare var GPUValidationError: {
|
|
4788
|
+
prototype: GPUValidationError;
|
|
4789
|
+
new(message: string): GPUValidationError;
|
|
4790
|
+
};
|
|
4791
|
+
|
|
4224
4792
|
interface GenericTransformStream {
|
|
4225
4793
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
4226
4794
|
readonly readable: ReadableStream;
|
|
@@ -5036,6 +5604,19 @@ interface ImportMeta {
|
|
|
5036
5604
|
resolve(specifier: string): string;
|
|
5037
5605
|
}
|
|
5038
5606
|
|
|
5607
|
+
/**
|
|
5608
|
+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
|
|
5609
|
+
*
|
|
5610
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
5611
|
+
*/
|
|
5612
|
+
interface InstallEvent extends ExtendableEvent {
|
|
5613
|
+
}
|
|
5614
|
+
|
|
5615
|
+
declare var InstallEvent: {
|
|
5616
|
+
prototype: InstallEvent;
|
|
5617
|
+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
5618
|
+
};
|
|
5619
|
+
|
|
5039
5620
|
/**
|
|
5040
5621
|
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
|
|
5041
5622
|
*
|
|
@@ -6033,7 +6614,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
6033
6614
|
*/
|
|
6034
6615
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
6035
6616
|
/**
|
|
6036
|
-
* The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser
|
|
6617
|
+
* The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retries the request, the value returned will be the start of the retry request.
|
|
6037
6618
|
*
|
|
6038
6619
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
6039
6620
|
*/
|
|
@@ -8241,6 +8822,21 @@ interface WEBGL_multi_draw {
|
|
|
8241
8822
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
8242
8823
|
}
|
|
8243
8824
|
|
|
8825
|
+
/**
|
|
8826
|
+
* The **`WGSLLanguageFeatures`** interface of the WebGPU API is a setlike object that reports the WGSL language extensions supported by the WebGPU implementation.
|
|
8827
|
+
* Available only in secure contexts.
|
|
8828
|
+
*
|
|
8829
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
8830
|
+
*/
|
|
8831
|
+
interface WGSLLanguageFeatures {
|
|
8832
|
+
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
8833
|
+
}
|
|
8834
|
+
|
|
8835
|
+
declare var WGSLLanguageFeatures: {
|
|
8836
|
+
prototype: WGSLLanguageFeatures;
|
|
8837
|
+
new(): WGSLLanguageFeatures;
|
|
8838
|
+
};
|
|
8839
|
+
|
|
8244
8840
|
/**
|
|
8245
8841
|
* The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
|
|
8246
8842
|
*
|
|
@@ -11762,6 +12358,14 @@ type GLsizei = number;
|
|
|
11762
12358
|
type GLsizeiptr = number;
|
|
11763
12359
|
type GLuint = number;
|
|
11764
12360
|
type GLuint64 = number;
|
|
12361
|
+
type GPUFlagsConstant = number;
|
|
12362
|
+
type GPUIntegerCoordinate = number;
|
|
12363
|
+
type GPUIntegerCoordinateOut = number;
|
|
12364
|
+
type GPUMapModeFlags = number;
|
|
12365
|
+
type GPUSize32Out = number;
|
|
12366
|
+
type GPUSize64 = number;
|
|
12367
|
+
type GPUSize64Out = number;
|
|
12368
|
+
type GPUTextureUsageFlags = number;
|
|
11765
12369
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
11766
12370
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
11767
12371
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
@@ -11810,7 +12414,14 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
11810
12414
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
11811
12415
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
11812
12416
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
12417
|
+
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
12418
|
+
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
12419
|
+
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
11813
12420
|
type GPUPipelineErrorReason = "internal" | "validation";
|
|
12421
|
+
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
12422
|
+
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
12423
|
+
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";
|
|
12424
|
+
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
11814
12425
|
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";
|
|
11815
12426
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
11816
12427
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
@@ -11942,6 +12553,9 @@ interface FormData {
|
|
|
11942
12553
|
values(): FormDataIterator<FormDataEntryValue>;
|
|
11943
12554
|
}
|
|
11944
12555
|
|
|
12556
|
+
interface GPUSupportedFeatures extends ReadonlySet<string> {
|
|
12557
|
+
}
|
|
12558
|
+
|
|
11945
12559
|
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
11946
12560
|
[Symbol.iterator](): HeadersIterator<T>;
|
|
11947
12561
|
}
|
|
@@ -12072,6 +12686,9 @@ interface WEBGL_multi_draw {
|
|
|
12072
12686
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
12073
12687
|
}
|
|
12074
12688
|
|
|
12689
|
+
interface WGSLLanguageFeatures extends ReadonlySet<string> {
|
|
12690
|
+
}
|
|
12691
|
+
|
|
12075
12692
|
interface WebGL2RenderingContextBase {
|
|
12076
12693
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
|
|
12077
12694
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: GLfloat[], srcOffset?: number): void;
|