@types/serviceworker 0.0.105 → 0.0.106

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/ts5.5/index.d.ts CHANGED
@@ -239,368 +239,6 @@ interface FontFaceSetLoadEventInit extends EventInit {
239
239
  fontfaces?: FontFace[];
240
240
  }
241
241
 
242
- interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
243
- entries: GPUBindGroupEntry[];
244
- layout: GPUBindGroupLayout;
245
- }
246
-
247
- interface GPUBindGroupEntry {
248
- binding: GPUIndex32;
249
- resource: GPUBindingResource;
250
- }
251
-
252
- interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
253
- entries: GPUBindGroupLayoutEntry[];
254
- }
255
-
256
- interface GPUBindGroupLayoutEntry {
257
- binding: GPUIndex32;
258
- buffer?: GPUBufferBindingLayout;
259
- externalTexture?: GPUExternalTextureBindingLayout;
260
- sampler?: GPUSamplerBindingLayout;
261
- storageTexture?: GPUStorageTextureBindingLayout;
262
- texture?: GPUTextureBindingLayout;
263
- visibility: GPUShaderStageFlags;
264
- }
265
-
266
- interface GPUBlendComponent {
267
- dstFactor?: GPUBlendFactor;
268
- operation?: GPUBlendOperation;
269
- srcFactor?: GPUBlendFactor;
270
- }
271
-
272
- interface GPUBlendState {
273
- alpha: GPUBlendComponent;
274
- color: GPUBlendComponent;
275
- }
276
-
277
- interface GPUBufferBinding {
278
- buffer: GPUBuffer;
279
- offset?: GPUSize64;
280
- size?: GPUSize64;
281
- }
282
-
283
- interface GPUBufferBindingLayout {
284
- hasDynamicOffset?: boolean;
285
- minBindingSize?: GPUSize64;
286
- type?: GPUBufferBindingType;
287
- }
288
-
289
- interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
290
- mappedAtCreation?: boolean;
291
- size: GPUSize64;
292
- usage: GPUBufferUsageFlags;
293
- }
294
-
295
- interface GPUCanvasConfiguration {
296
- alphaMode?: GPUCanvasAlphaMode;
297
- colorSpace?: PredefinedColorSpace;
298
- device: GPUDevice;
299
- format: GPUTextureFormat;
300
- toneMapping?: GPUCanvasToneMapping;
301
- usage?: GPUTextureUsageFlags;
302
- viewFormats?: GPUTextureFormat[];
303
- }
304
-
305
- interface GPUCanvasToneMapping {
306
- mode?: GPUCanvasToneMappingMode;
307
- }
308
-
309
- interface GPUColorDict {
310
- a: number;
311
- b: number;
312
- g: number;
313
- r: number;
314
- }
315
-
316
- interface GPUColorTargetState {
317
- blend?: GPUBlendState;
318
- format: GPUTextureFormat;
319
- writeMask?: GPUColorWriteFlags;
320
- }
321
-
322
- interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
323
- }
324
-
325
- interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
326
- }
327
-
328
- interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
329
- timestampWrites?: GPUComputePassTimestampWrites;
330
- }
331
-
332
- interface GPUComputePassTimestampWrites {
333
- beginningOfPassWriteIndex?: GPUSize32;
334
- endOfPassWriteIndex?: GPUSize32;
335
- querySet: GPUQuerySet;
336
- }
337
-
338
- interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
339
- compute: GPUProgrammableStage;
340
- }
341
-
342
- interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
343
- colorSpace?: PredefinedColorSpace;
344
- premultipliedAlpha?: boolean;
345
- }
346
-
347
- interface GPUCopyExternalImageSourceInfo {
348
- flipY?: boolean;
349
- origin?: GPUOrigin2D;
350
- source: GPUCopyExternalImageSource;
351
- }
352
-
353
- interface GPUDepthStencilState {
354
- depthBias?: GPUDepthBias;
355
- depthBiasClamp?: number;
356
- depthBiasSlopeScale?: number;
357
- depthCompare?: GPUCompareFunction;
358
- depthWriteEnabled?: boolean;
359
- format: GPUTextureFormat;
360
- stencilBack?: GPUStencilFaceState;
361
- stencilFront?: GPUStencilFaceState;
362
- stencilReadMask?: GPUStencilValue;
363
- stencilWriteMask?: GPUStencilValue;
364
- }
365
-
366
- interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
367
- defaultQueue?: GPUQueueDescriptor;
368
- requiredFeatures?: GPUFeatureName[];
369
- requiredLimits?: Record<string, GPUSize64 | undefined>;
370
- }
371
-
372
- interface GPUExtent3DDict {
373
- depthOrArrayLayers?: GPUIntegerCoordinate;
374
- height?: GPUIntegerCoordinate;
375
- width: GPUIntegerCoordinate;
376
- }
377
-
378
- interface GPUExternalTextureBindingLayout {
379
- }
380
-
381
- interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
382
- colorSpace?: PredefinedColorSpace;
383
- }
384
-
385
- interface GPUFragmentState extends GPUProgrammableStage {
386
- targets: (GPUColorTargetState | null)[];
387
- }
388
-
389
- interface GPUMultisampleState {
390
- alphaToCoverageEnabled?: boolean;
391
- count?: GPUSize32;
392
- mask?: GPUSampleMask;
393
- }
394
-
395
- interface GPUObjectDescriptorBase {
396
- label?: string;
397
- }
398
-
399
- interface GPUOrigin2DDict {
400
- x?: GPUIntegerCoordinate;
401
- y?: GPUIntegerCoordinate;
402
- }
403
-
404
- interface GPUOrigin3DDict {
405
- x?: GPUIntegerCoordinate;
406
- y?: GPUIntegerCoordinate;
407
- z?: GPUIntegerCoordinate;
408
- }
409
-
410
- interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
411
- layout: GPUPipelineLayout | GPUAutoLayoutMode;
412
- }
413
-
414
- interface GPUPipelineErrorInit {
415
- reason: GPUPipelineErrorReason;
416
- }
417
-
418
- interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
419
- bindGroupLayouts: (GPUBindGroupLayout | null)[];
420
- }
421
-
422
- interface GPUPrimitiveState {
423
- cullMode?: GPUCullMode;
424
- frontFace?: GPUFrontFace;
425
- stripIndexFormat?: GPUIndexFormat;
426
- topology?: GPUPrimitiveTopology;
427
- unclippedDepth?: boolean;
428
- }
429
-
430
- interface GPUProgrammableStage {
431
- constants?: Record<string, GPUPipelineConstantValue>;
432
- entryPoint?: string;
433
- module: GPUShaderModule;
434
- }
435
-
436
- interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
437
- count: GPUSize32;
438
- type: GPUQueryType;
439
- }
440
-
441
- interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
442
- }
443
-
444
- interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
445
- }
446
-
447
- interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
448
- depthReadOnly?: boolean;
449
- stencilReadOnly?: boolean;
450
- }
451
-
452
- interface GPURenderPassColorAttachment {
453
- clearValue?: GPUColor;
454
- depthSlice?: GPUIntegerCoordinate;
455
- loadOp: GPULoadOp;
456
- resolveTarget?: GPUTextureView;
457
- storeOp: GPUStoreOp;
458
- view: GPUTextureView;
459
- }
460
-
461
- interface GPURenderPassDepthStencilAttachment {
462
- depthClearValue?: number;
463
- depthLoadOp?: GPULoadOp;
464
- depthReadOnly?: boolean;
465
- depthStoreOp?: GPUStoreOp;
466
- stencilClearValue?: GPUStencilValue;
467
- stencilLoadOp?: GPULoadOp;
468
- stencilReadOnly?: boolean;
469
- stencilStoreOp?: GPUStoreOp;
470
- view: GPUTextureView;
471
- }
472
-
473
- interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
474
- colorAttachments: (GPURenderPassColorAttachment | null)[];
475
- depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
476
- maxDrawCount?: GPUSize64;
477
- occlusionQuerySet?: GPUQuerySet;
478
- timestampWrites?: GPURenderPassTimestampWrites;
479
- }
480
-
481
- interface GPURenderPassLayout extends GPUObjectDescriptorBase {
482
- colorFormats: (GPUTextureFormat | null)[];
483
- depthStencilFormat?: GPUTextureFormat;
484
- sampleCount?: GPUSize32;
485
- }
486
-
487
- interface GPURenderPassTimestampWrites {
488
- beginningOfPassWriteIndex?: GPUSize32;
489
- endOfPassWriteIndex?: GPUSize32;
490
- querySet: GPUQuerySet;
491
- }
492
-
493
- interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
494
- depthStencil?: GPUDepthStencilState;
495
- fragment?: GPUFragmentState;
496
- multisample?: GPUMultisampleState;
497
- primitive?: GPUPrimitiveState;
498
- vertex: GPUVertexState;
499
- }
500
-
501
- interface GPURequestAdapterOptions {
502
- forceFallbackAdapter?: boolean;
503
- powerPreference?: GPUPowerPreference;
504
- xrCompatible?: boolean;
505
- }
506
-
507
- interface GPUSamplerBindingLayout {
508
- type?: GPUSamplerBindingType;
509
- }
510
-
511
- interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
512
- addressModeU?: GPUAddressMode;
513
- addressModeV?: GPUAddressMode;
514
- addressModeW?: GPUAddressMode;
515
- compare?: GPUCompareFunction;
516
- lodMaxClamp?: number;
517
- lodMinClamp?: number;
518
- magFilter?: GPUFilterMode;
519
- maxAnisotropy?: number;
520
- minFilter?: GPUFilterMode;
521
- mipmapFilter?: GPUMipmapFilterMode;
522
- }
523
-
524
- interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
525
- code: string;
526
- }
527
-
528
- interface GPUStencilFaceState {
529
- compare?: GPUCompareFunction;
530
- depthFailOp?: GPUStencilOperation;
531
- failOp?: GPUStencilOperation;
532
- passOp?: GPUStencilOperation;
533
- }
534
-
535
- interface GPUStorageTextureBindingLayout {
536
- access?: GPUStorageTextureAccess;
537
- format: GPUTextureFormat;
538
- viewDimension?: GPUTextureViewDimension;
539
- }
540
-
541
- interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
542
- buffer: GPUBuffer;
543
- }
544
-
545
- interface GPUTexelCopyBufferLayout {
546
- bytesPerRow?: GPUSize32;
547
- offset?: GPUSize64;
548
- rowsPerImage?: GPUSize32;
549
- }
550
-
551
- interface GPUTexelCopyTextureInfo {
552
- aspect?: GPUTextureAspect;
553
- mipLevel?: GPUIntegerCoordinate;
554
- origin?: GPUOrigin3D;
555
- texture: GPUTexture;
556
- }
557
-
558
- interface GPUTextureBindingLayout {
559
- multisampled?: boolean;
560
- sampleType?: GPUTextureSampleType;
561
- viewDimension?: GPUTextureViewDimension;
562
- }
563
-
564
- interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
565
- dimension?: GPUTextureDimension;
566
- format: GPUTextureFormat;
567
- mipLevelCount?: GPUIntegerCoordinate;
568
- sampleCount?: GPUSize32;
569
- size: GPUExtent3D;
570
- usage: GPUTextureUsageFlags;
571
- viewFormats?: GPUTextureFormat[];
572
- }
573
-
574
- interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
575
- arrayLayerCount?: GPUIntegerCoordinate;
576
- aspect?: GPUTextureAspect;
577
- baseArrayLayer?: GPUIntegerCoordinate;
578
- baseMipLevel?: GPUIntegerCoordinate;
579
- dimension?: GPUTextureViewDimension;
580
- format?: GPUTextureFormat;
581
- mipLevelCount?: GPUIntegerCoordinate;
582
- }
583
-
584
- interface GPUUncapturedErrorEventInit extends EventInit {
585
- error: GPUError;
586
- }
587
-
588
- interface GPUVertexAttribute {
589
- format: GPUVertexFormat;
590
- offset: GPUSize64;
591
- shaderLocation: GPUIndex32;
592
- }
593
-
594
- interface GPUVertexBufferLayout {
595
- arrayStride: GPUSize64;
596
- attributes: GPUVertexAttribute[];
597
- stepMode?: GPUVertexStepMode;
598
- }
599
-
600
- interface GPUVertexState extends GPUProgrammableStage {
601
- buffers?: (GPUVertexBufferLayout | null)[];
602
- }
603
-
604
242
  interface GetNotificationOptions {
605
243
  tag?: string;
606
244
  }
@@ -3176,350 +2814,6 @@ declare var FormData: {
3176
2814
  new(): FormData;
3177
2815
  };
3178
2816
 
3179
- /**
3180
- * Available only in secure contexts.
3181
- *
3182
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
3183
- */
3184
- interface GPU {
3185
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures) */
3186
- readonly wgslLanguageFeatures: WGSLLanguageFeatures;
3187
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat) */
3188
- getPreferredCanvasFormat(): GPUTextureFormat;
3189
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter) */
3190
- requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
3191
- }
3192
-
3193
- declare var GPU: {
3194
- prototype: GPU;
3195
- new(): GPU;
3196
- };
3197
-
3198
- /**
3199
- * Available only in secure contexts.
3200
- *
3201
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
3202
- */
3203
- interface GPUAdapter {
3204
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) */
3205
- readonly features: GPUSupportedFeatures;
3206
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) */
3207
- readonly info: GPUAdapterInfo;
3208
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/isFallbackAdapter) */
3209
- readonly isFallbackAdapter: boolean;
3210
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) */
3211
- readonly limits: GPUSupportedLimits;
3212
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) */
3213
- requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
3214
- }
3215
-
3216
- declare var GPUAdapter: {
3217
- prototype: GPUAdapter;
3218
- new(): GPUAdapter;
3219
- };
3220
-
3221
- /**
3222
- * Available only in secure contexts.
3223
- *
3224
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
3225
- */
3226
- interface GPUAdapterInfo {
3227
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture) */
3228
- readonly architecture: string;
3229
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description) */
3230
- readonly description: string;
3231
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device) */
3232
- readonly device: string;
3233
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor) */
3234
- readonly vendor: string;
3235
- }
3236
-
3237
- declare var GPUAdapterInfo: {
3238
- prototype: GPUAdapterInfo;
3239
- new(): GPUAdapterInfo;
3240
- };
3241
-
3242
- /**
3243
- * Available only in secure contexts.
3244
- *
3245
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
3246
- */
3247
- interface GPUBindGroup extends GPUObjectBase {
3248
- }
3249
-
3250
- declare var GPUBindGroup: {
3251
- prototype: GPUBindGroup;
3252
- new(): GPUBindGroup;
3253
- };
3254
-
3255
- /**
3256
- * Available only in secure contexts.
3257
- *
3258
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
3259
- */
3260
- interface GPUBindGroupLayout extends GPUObjectBase {
3261
- }
3262
-
3263
- declare var GPUBindGroupLayout: {
3264
- prototype: GPUBindGroupLayout;
3265
- new(): GPUBindGroupLayout;
3266
- };
3267
-
3268
- interface GPUBindingCommandsMixin {
3269
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
3270
- setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
3271
- setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
3272
- }
3273
-
3274
- /**
3275
- * Available only in secure contexts.
3276
- *
3277
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
3278
- */
3279
- interface GPUBuffer extends GPUObjectBase {
3280
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState) */
3281
- readonly mapState: GPUBufferMapState;
3282
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size) */
3283
- readonly size: GPUSize64Out;
3284
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage) */
3285
- readonly usage: GPUFlagsConstant;
3286
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy) */
3287
- destroy(): void;
3288
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange) */
3289
- getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
3290
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync) */
3291
- mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
3292
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap) */
3293
- unmap(): void;
3294
- }
3295
-
3296
- declare var GPUBuffer: {
3297
- prototype: GPUBuffer;
3298
- new(): GPUBuffer;
3299
- };
3300
-
3301
- /**
3302
- * Available only in secure contexts.
3303
- *
3304
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
3305
- */
3306
- interface GPUCanvasContext {
3307
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas) */
3308
- readonly canvas: OffscreenCanvas;
3309
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure) */
3310
- configure(configuration: GPUCanvasConfiguration): void;
3311
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture) */
3312
- getCurrentTexture(): GPUTexture;
3313
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure) */
3314
- unconfigure(): void;
3315
- }
3316
-
3317
- declare var GPUCanvasContext: {
3318
- prototype: GPUCanvasContext;
3319
- new(): GPUCanvasContext;
3320
- };
3321
-
3322
- /**
3323
- * Available only in secure contexts.
3324
- *
3325
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
3326
- */
3327
- interface GPUCommandBuffer extends GPUObjectBase {
3328
- }
3329
-
3330
- declare var GPUCommandBuffer: {
3331
- prototype: GPUCommandBuffer;
3332
- new(): GPUCommandBuffer;
3333
- };
3334
-
3335
- /**
3336
- * Available only in secure contexts.
3337
- *
3338
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
3339
- */
3340
- interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
3341
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass) */
3342
- beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
3343
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass) */
3344
- beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
3345
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer) */
3346
- clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
3347
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer) */
3348
- copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size: GPUSize64): void;
3349
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) */
3350
- copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
3351
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) */
3352
- copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
3353
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) */
3354
- copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
3355
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish) */
3356
- finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
3357
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet) */
3358
- resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
3359
- }
3360
-
3361
- declare var GPUCommandEncoder: {
3362
- prototype: GPUCommandEncoder;
3363
- new(): GPUCommandEncoder;
3364
- };
3365
-
3366
- /**
3367
- * Available only in secure contexts.
3368
- *
3369
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
3370
- */
3371
- interface GPUCompilationInfo {
3372
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) */
3373
- readonly messages: ReadonlyArray<GPUCompilationMessage>;
3374
- }
3375
-
3376
- declare var GPUCompilationInfo: {
3377
- prototype: GPUCompilationInfo;
3378
- new(): GPUCompilationInfo;
3379
- };
3380
-
3381
- /**
3382
- * Available only in secure contexts.
3383
- *
3384
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
3385
- */
3386
- interface GPUCompilationMessage {
3387
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) */
3388
- readonly length: number;
3389
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) */
3390
- readonly lineNum: number;
3391
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) */
3392
- readonly linePos: number;
3393
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) */
3394
- readonly message: string;
3395
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) */
3396
- readonly offset: number;
3397
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) */
3398
- readonly type: GPUCompilationMessageType;
3399
- }
3400
-
3401
- declare var GPUCompilationMessage: {
3402
- prototype: GPUCompilationMessage;
3403
- new(): GPUCompilationMessage;
3404
- };
3405
-
3406
- /**
3407
- * Available only in secure contexts.
3408
- *
3409
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
3410
- */
3411
- interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
3412
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups) */
3413
- dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
3414
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect) */
3415
- dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
3416
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end) */
3417
- end(): void;
3418
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline) */
3419
- setPipeline(pipeline: GPUComputePipeline): void;
3420
- }
3421
-
3422
- declare var GPUComputePassEncoder: {
3423
- prototype: GPUComputePassEncoder;
3424
- new(): GPUComputePassEncoder;
3425
- };
3426
-
3427
- /**
3428
- * Available only in secure contexts.
3429
- *
3430
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
3431
- */
3432
- interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
3433
- }
3434
-
3435
- declare var GPUComputePipeline: {
3436
- prototype: GPUComputePipeline;
3437
- new(): GPUComputePipeline;
3438
- };
3439
-
3440
- interface GPUDebugCommandsMixin {
3441
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
3442
- insertDebugMarker(markerLabel: string): void;
3443
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
3444
- popDebugGroup(): void;
3445
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
3446
- pushDebugGroup(groupLabel: string): void;
3447
- }
3448
-
3449
- /**
3450
- * Available only in secure contexts.
3451
- *
3452
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
3453
- */
3454
- interface GPUDevice extends EventTarget, GPUObjectBase {
3455
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features) */
3456
- readonly features: GPUSupportedFeatures;
3457
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits) */
3458
- readonly limits: GPUSupportedLimits;
3459
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost) */
3460
- readonly lost: Promise<GPUDeviceLostInfo>;
3461
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */
3462
- readonly queue: GPUQueue;
3463
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup) */
3464
- createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
3465
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout) */
3466
- createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
3467
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer) */
3468
- createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
3469
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder) */
3470
- createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
3471
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline) */
3472
- createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
3473
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync) */
3474
- createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
3475
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout) */
3476
- createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
3477
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet) */
3478
- createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
3479
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder) */
3480
- createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
3481
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline) */
3482
- createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
3483
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync) */
3484
- createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
3485
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler) */
3486
- createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
3487
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule) */
3488
- createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
3489
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture) */
3490
- createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
3491
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) */
3492
- destroy(): void;
3493
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) */
3494
- importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
3495
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) */
3496
- popErrorScope(): Promise<GPUError | null>;
3497
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) */
3498
- pushErrorScope(filter: GPUErrorFilter): void;
3499
- }
3500
-
3501
- declare var GPUDevice: {
3502
- prototype: GPUDevice;
3503
- new(): GPUDevice;
3504
- };
3505
-
3506
- /**
3507
- * Available only in secure contexts.
3508
- *
3509
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
3510
- */
3511
- interface GPUDeviceLostInfo {
3512
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) */
3513
- readonly message: string;
3514
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) */
3515
- readonly reason: GPUDeviceLostReason;
3516
- }
3517
-
3518
- declare var GPUDeviceLostInfo: {
3519
- prototype: GPUDeviceLostInfo;
3520
- new(): GPUDeviceLostInfo;
3521
- };
3522
-
3523
2817
  /**
3524
2818
  * Available only in secure contexts.
3525
2819
  *
@@ -3530,403 +2824,6 @@ interface GPUError {
3530
2824
  readonly message: string;
3531
2825
  }
3532
2826
 
3533
- /**
3534
- * Available only in secure contexts.
3535
- *
3536
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
3537
- */
3538
- interface GPUExternalTexture extends GPUObjectBase {
3539
- }
3540
-
3541
- declare var GPUExternalTexture: {
3542
- prototype: GPUExternalTexture;
3543
- new(): GPUExternalTexture;
3544
- };
3545
-
3546
- /**
3547
- * Available only in secure contexts.
3548
- *
3549
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
3550
- */
3551
- interface GPUInternalError extends GPUError {
3552
- }
3553
-
3554
- declare var GPUInternalError: {
3555
- prototype: GPUInternalError;
3556
- new(message: string): GPUInternalError;
3557
- };
3558
-
3559
- interface GPUObjectBase {
3560
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
3561
- label: string;
3562
- }
3563
-
3564
- /**
3565
- * Available only in secure contexts.
3566
- *
3567
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
3568
- */
3569
- interface GPUOutOfMemoryError extends GPUError {
3570
- }
3571
-
3572
- declare var GPUOutOfMemoryError: {
3573
- prototype: GPUOutOfMemoryError;
3574
- new(message: string): GPUOutOfMemoryError;
3575
- };
3576
-
3577
- interface GPUPipelineBase {
3578
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
3579
- getBindGroupLayout(index: number): GPUBindGroupLayout;
3580
- }
3581
-
3582
- /**
3583
- * Available only in secure contexts.
3584
- *
3585
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
3586
- */
3587
- interface GPUPipelineError extends DOMException {
3588
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) */
3589
- readonly reason: GPUPipelineErrorReason;
3590
- }
3591
-
3592
- declare var GPUPipelineError: {
3593
- prototype: GPUPipelineError;
3594
- new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
3595
- };
3596
-
3597
- /**
3598
- * Available only in secure contexts.
3599
- *
3600
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
3601
- */
3602
- interface GPUPipelineLayout extends GPUObjectBase {
3603
- }
3604
-
3605
- declare var GPUPipelineLayout: {
3606
- prototype: GPUPipelineLayout;
3607
- new(): GPUPipelineLayout;
3608
- };
3609
-
3610
- /**
3611
- * Available only in secure contexts.
3612
- *
3613
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
3614
- */
3615
- interface GPUQuerySet extends GPUObjectBase {
3616
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count) */
3617
- readonly count: GPUSize32Out;
3618
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type) */
3619
- readonly type: GPUQueryType;
3620
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy) */
3621
- destroy(): void;
3622
- }
3623
-
3624
- declare var GPUQuerySet: {
3625
- prototype: GPUQuerySet;
3626
- new(): GPUQuerySet;
3627
- };
3628
-
3629
- /**
3630
- * Available only in secure contexts.
3631
- *
3632
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
3633
- */
3634
- interface GPUQueue extends GPUObjectBase {
3635
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) */
3636
- copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
3637
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone) */
3638
- onSubmittedWorkDone(): Promise<void>;
3639
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) */
3640
- submit(commandBuffers: GPUCommandBuffer[]): void;
3641
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer) */
3642
- writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
3643
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) */
3644
- writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
3645
- }
3646
-
3647
- declare var GPUQueue: {
3648
- prototype: GPUQueue;
3649
- new(): GPUQueue;
3650
- };
3651
-
3652
- /**
3653
- * Available only in secure contexts.
3654
- *
3655
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
3656
- */
3657
- interface GPURenderBundle extends GPUObjectBase {
3658
- }
3659
-
3660
- declare var GPURenderBundle: {
3661
- prototype: GPURenderBundle;
3662
- new(): GPURenderBundle;
3663
- };
3664
-
3665
- /**
3666
- * Available only in secure contexts.
3667
- *
3668
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
3669
- */
3670
- interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
3671
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish) */
3672
- finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
3673
- }
3674
-
3675
- declare var GPURenderBundleEncoder: {
3676
- prototype: GPURenderBundleEncoder;
3677
- new(): GPURenderBundleEncoder;
3678
- };
3679
-
3680
- interface GPURenderCommandsMixin {
3681
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
3682
- draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
3683
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
3684
- drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
3685
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
3686
- drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
3687
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
3688
- drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
3689
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
3690
- setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
3691
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
3692
- setPipeline(pipeline: GPURenderPipeline): void;
3693
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
3694
- setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
3695
- }
3696
-
3697
- /**
3698
- * Available only in secure contexts.
3699
- *
3700
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
3701
- */
3702
- interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
3703
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery) */
3704
- beginOcclusionQuery(queryIndex: GPUSize32): void;
3705
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end) */
3706
- end(): void;
3707
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery) */
3708
- endOcclusionQuery(): void;
3709
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) */
3710
- executeBundles(bundles: GPURenderBundle[]): void;
3711
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) */
3712
- setBlendConstant(color: GPUColor): void;
3713
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect) */
3714
- setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
3715
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference) */
3716
- setStencilReference(reference: GPUStencilValue): void;
3717
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport) */
3718
- setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
3719
- }
3720
-
3721
- declare var GPURenderPassEncoder: {
3722
- prototype: GPURenderPassEncoder;
3723
- new(): GPURenderPassEncoder;
3724
- };
3725
-
3726
- /**
3727
- * Available only in secure contexts.
3728
- *
3729
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
3730
- */
3731
- interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
3732
- }
3733
-
3734
- declare var GPURenderPipeline: {
3735
- prototype: GPURenderPipeline;
3736
- new(): GPURenderPipeline;
3737
- };
3738
-
3739
- /**
3740
- * Available only in secure contexts.
3741
- *
3742
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
3743
- */
3744
- interface GPUSampler extends GPUObjectBase {
3745
- }
3746
-
3747
- declare var GPUSampler: {
3748
- prototype: GPUSampler;
3749
- new(): GPUSampler;
3750
- };
3751
-
3752
- /**
3753
- * Available only in secure contexts.
3754
- *
3755
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
3756
- */
3757
- interface GPUShaderModule extends GPUObjectBase {
3758
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo) */
3759
- getCompilationInfo(): Promise<GPUCompilationInfo>;
3760
- }
3761
-
3762
- declare var GPUShaderModule: {
3763
- prototype: GPUShaderModule;
3764
- new(): GPUShaderModule;
3765
- };
3766
-
3767
- /**
3768
- * Available only in secure contexts.
3769
- *
3770
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
3771
- */
3772
- interface GPUSupportedFeatures {
3773
- forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
3774
- }
3775
-
3776
- declare var GPUSupportedFeatures: {
3777
- prototype: GPUSupportedFeatures;
3778
- new(): GPUSupportedFeatures;
3779
- };
3780
-
3781
- /**
3782
- * Available only in secure contexts.
3783
- *
3784
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
3785
- */
3786
- interface GPUSupportedLimits {
3787
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3788
- readonly maxBindGroups: number;
3789
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3790
- readonly maxBindGroupsPlusVertexBuffers: number;
3791
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3792
- readonly maxBindingsPerBindGroup: number;
3793
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3794
- readonly maxBufferSize: number;
3795
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3796
- readonly maxColorAttachmentBytesPerSample: number;
3797
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3798
- readonly maxColorAttachments: number;
3799
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3800
- readonly maxComputeInvocationsPerWorkgroup: number;
3801
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3802
- readonly maxComputeWorkgroupSizeX: number;
3803
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3804
- readonly maxComputeWorkgroupSizeY: number;
3805
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3806
- readonly maxComputeWorkgroupSizeZ: number;
3807
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3808
- readonly maxComputeWorkgroupStorageSize: number;
3809
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3810
- readonly maxComputeWorkgroupsPerDimension: number;
3811
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3812
- readonly maxDynamicStorageBuffersPerPipelineLayout: number;
3813
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3814
- readonly maxDynamicUniformBuffersPerPipelineLayout: number;
3815
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3816
- readonly maxInterStageShaderVariables: number;
3817
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3818
- readonly maxSampledTexturesPerShaderStage: number;
3819
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3820
- readonly maxSamplersPerShaderStage: number;
3821
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3822
- readonly maxStorageBufferBindingSize: number;
3823
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3824
- readonly maxStorageBuffersPerShaderStage: number;
3825
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3826
- readonly maxStorageTexturesPerShaderStage: number;
3827
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3828
- readonly maxTextureArrayLayers: number;
3829
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3830
- readonly maxTextureDimension1D: number;
3831
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3832
- readonly maxTextureDimension2D: number;
3833
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3834
- readonly maxTextureDimension3D: number;
3835
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3836
- readonly maxUniformBufferBindingSize: number;
3837
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3838
- readonly maxUniformBuffersPerShaderStage: number;
3839
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3840
- readonly maxVertexAttributes: number;
3841
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3842
- readonly maxVertexBufferArrayStride: number;
3843
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3844
- readonly maxVertexBuffers: number;
3845
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3846
- readonly minStorageBufferOffsetAlignment: number;
3847
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
3848
- readonly minUniformBufferOffsetAlignment: number;
3849
- }
3850
-
3851
- declare var GPUSupportedLimits: {
3852
- prototype: GPUSupportedLimits;
3853
- new(): GPUSupportedLimits;
3854
- };
3855
-
3856
- /**
3857
- * Available only in secure contexts.
3858
- *
3859
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
3860
- */
3861
- interface GPUTexture extends GPUObjectBase {
3862
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) */
3863
- readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
3864
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) */
3865
- readonly dimension: GPUTextureDimension;
3866
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) */
3867
- readonly format: GPUTextureFormat;
3868
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) */
3869
- readonly height: GPUIntegerCoordinateOut;
3870
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) */
3871
- readonly mipLevelCount: GPUIntegerCoordinateOut;
3872
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) */
3873
- readonly sampleCount: GPUSize32Out;
3874
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) */
3875
- readonly usage: GPUFlagsConstant;
3876
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) */
3877
- readonly width: GPUIntegerCoordinateOut;
3878
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) */
3879
- createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
3880
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) */
3881
- destroy(): void;
3882
- }
3883
-
3884
- declare var GPUTexture: {
3885
- prototype: GPUTexture;
3886
- new(): GPUTexture;
3887
- };
3888
-
3889
- /**
3890
- * Available only in secure contexts.
3891
- *
3892
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
3893
- */
3894
- interface GPUTextureView extends GPUObjectBase {
3895
- }
3896
-
3897
- declare var GPUTextureView: {
3898
- prototype: GPUTextureView;
3899
- new(): GPUTextureView;
3900
- };
3901
-
3902
- /**
3903
- * Available only in secure contexts.
3904
- *
3905
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
3906
- */
3907
- interface GPUUncapturedErrorEvent extends Event {
3908
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) */
3909
- readonly error: GPUError;
3910
- }
3911
-
3912
- declare var GPUUncapturedErrorEvent: {
3913
- prototype: GPUUncapturedErrorEvent;
3914
- new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
3915
- };
3916
-
3917
- /**
3918
- * Available only in secure contexts.
3919
- *
3920
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
3921
- */
3922
- interface GPUValidationError extends GPUError {
3923
- }
3924
-
3925
- declare var GPUValidationError: {
3926
- prototype: GPUValidationError;
3927
- new(message: string): GPUValidationError;
3928
- };
3929
-
3930
2827
  interface GenericTransformStream {
3931
2828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
3932
2829
  readonly readable: ReadableStream;
@@ -4925,15 +3822,6 @@ interface NavigatorConcurrentHardware {
4925
3822
  readonly hardwareConcurrency: number;
4926
3823
  }
4927
3824
 
4928
- interface NavigatorGPU {
4929
- /**
4930
- * Available only in secure contexts.
4931
- *
4932
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
4933
- */
4934
- readonly gpu: GPU;
4935
- }
4936
-
4937
3825
  interface NavigatorID {
4938
3826
  /**
4939
3827
  * @deprecated
@@ -6697,20 +5585,6 @@ interface WEBGL_multi_draw {
6697
5585
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
6698
5586
  }
6699
5587
 
6700
- /**
6701
- * Available only in secure contexts.
6702
- *
6703
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
6704
- */
6705
- interface WGSLLanguageFeatures {
6706
- forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
6707
- }
6708
-
6709
- declare var WGSLLanguageFeatures: {
6710
- prototype: WGSLLanguageFeatures;
6711
- new(): WGSLLanguageFeatures;
6712
- };
6713
-
6714
5588
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
6715
5589
  interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
6716
5590
  }
@@ -9249,7 +8123,7 @@ declare var WorkerLocation: {
9249
8123
  *
9250
8124
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
9251
8125
  */
9252
- interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorGPU, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
8126
+ interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
9253
8127
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */
9254
8128
  readonly mediaCapabilities: MediaCapabilities;
9255
8129
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */
@@ -9750,31 +8624,6 @@ type GLsizei = number;
9750
8624
  type GLsizeiptr = number;
9751
8625
  type GLuint = number;
9752
8626
  type GLuint64 = number;
9753
- type GPUBindingResource = GPUSampler | GPUTextureView | GPUBufferBinding | GPUExternalTexture;
9754
- type GPUBufferDynamicOffset = number;
9755
- type GPUBufferUsageFlags = number;
9756
- type GPUColor = number[] | GPUColorDict;
9757
- type GPUColorWriteFlags = number;
9758
- type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
9759
- type GPUDepthBias = number;
9760
- type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
9761
- type GPUFlagsConstant = number;
9762
- type GPUIndex32 = number;
9763
- type GPUIntegerCoordinate = number;
9764
- type GPUIntegerCoordinateOut = number;
9765
- type GPUMapModeFlags = number;
9766
- type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
9767
- type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
9768
- type GPUPipelineConstantValue = number;
9769
- type GPUSampleMask = number;
9770
- type GPUShaderStageFlags = number;
9771
- type GPUSignedOffset32 = number;
9772
- type GPUSize32 = number;
9773
- type GPUSize32Out = number;
9774
- type GPUSize64 = number;
9775
- type GPUSize64Out = number;
9776
- type GPUStencilValue = number;
9777
- type GPUTextureUsageFlags = number;
9778
8627
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
9779
8628
  type HeadersInit = [string, string][] | Record<string, string> | Headers;
9780
8629
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
@@ -9782,7 +8631,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
9782
8631
  type Int32List = Int32Array | GLint[];
9783
8632
  type MessageEventSource = MessagePort | ServiceWorker;
9784
8633
  type NamedCurve = string;
9785
- type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext | GPUCanvasContext;
8634
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
9786
8635
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
9787
8636
  type PerformanceEntryList = PerformanceEntry[];
9788
8637
  type PushMessageDataInit = BufferSource | string;
@@ -9820,40 +8669,6 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
9820
8669
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
9821
8670
  type FontFaceSetLoadStatus = "loaded" | "loading";
9822
8671
  type FrameType = "auxiliary" | "nested" | "none" | "top-level";
9823
- type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
9824
- type GPUAutoLayoutMode = "auto";
9825
- type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero";
9826
- type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
9827
- type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
9828
- type GPUBufferMapState = "mapped" | "pending" | "unmapped";
9829
- type GPUCanvasAlphaMode = "opaque" | "premultiplied";
9830
- type GPUCanvasToneMappingMode = "extended" | "standard";
9831
- type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
9832
- type GPUCompilationMessageType = "error" | "info" | "warning";
9833
- type GPUCullMode = "back" | "front" | "none";
9834
- type GPUDeviceLostReason = "destroyed" | "unknown";
9835
- type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
9836
- type GPUFeatureName = "bgra8unorm-storage" | "depth-clip-control" | "depth32float-stencil8" | "float32-filterable" | "indirect-first-instance" | "rg11b10ufloat-renderable" | "shader-f16" | "texture-compression-astc" | "texture-compression-bc" | "texture-compression-etc2" | "timestamp-query";
9837
- type GPUFilterMode = "linear" | "nearest";
9838
- type GPUFrontFace = "ccw" | "cw";
9839
- type GPUIndexFormat = "uint16" | "uint32";
9840
- type GPULoadOp = "clear" | "load";
9841
- type GPUMipmapFilterMode = "linear" | "nearest";
9842
- type GPUPipelineErrorReason = "internal" | "validation";
9843
- type GPUPowerPreference = "high-performance" | "low-power";
9844
- type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
9845
- type GPUQueryType = "occlusion" | "timestamp";
9846
- type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
9847
- type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
9848
- type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
9849
- type GPUStoreOp = "discard" | "store";
9850
- type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
9851
- type GPUTextureDimension = "1d" | "2d" | "3d";
9852
- 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" | "r16uint" | "r32float" | "r32sint" | "r32uint" | "r8sint" | "r8snorm" | "r8uint" | "r8unorm" | "rg11b10ufloat" | "rg16float" | "rg16sint" | "rg16uint" | "rg32float" | "rg32sint" | "rg32uint" | "rg8sint" | "rg8snorm" | "rg8uint" | "rg8unorm" | "rgb10a2uint" | "rgb10a2unorm" | "rgb9e5ufloat" | "rgba16float" | "rgba16sint" | "rgba16uint" | "rgba32float" | "rgba32sint" | "rgba32uint" | "rgba8sint" | "rgba8snorm" | "rgba8uint" | "rgba8unorm" | "rgba8unorm-srgb" | "stencil8";
9853
- type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
9854
- type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
9855
- type GPUVertexFormat = "float16x2" | "float16x4" | "float32" | "float32x2" | "float32x3" | "float32x4" | "sint16x2" | "sint16x4" | "sint32" | "sint32x2" | "sint32x3" | "sint32x4" | "sint8x2" | "sint8x4" | "snorm16x2" | "snorm16x4" | "snorm8x2" | "snorm8x4" | "uint16x2" | "uint16x4" | "uint32" | "uint32x2" | "uint32x3" | "uint32x4" | "uint8x2" | "uint8x4" | "unorm10-10-10-2" | "unorm16x2" | "unorm16x4" | "unorm8x2" | "unorm8x4";
9856
- type GPUVertexStepMode = "instance" | "vertex";
9857
8672
  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";
9858
8673
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
9859
8674
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";