@types/serviceworker 0.0.104 → 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/README.md +1 -1
- package/index.d.ts +11 -1186
- package/iterable.d.ts +0 -36
- package/package.json +1 -1
- package/ts5.5/index.d.ts +11 -1186
- package/ts5.5/iterable.d.ts +0 -36
package/index.d.ts
CHANGED
|
@@ -239,367 +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
|
-
}
|
|
505
|
-
|
|
506
|
-
interface GPUSamplerBindingLayout {
|
|
507
|
-
type?: GPUSamplerBindingType;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
511
|
-
addressModeU?: GPUAddressMode;
|
|
512
|
-
addressModeV?: GPUAddressMode;
|
|
513
|
-
addressModeW?: GPUAddressMode;
|
|
514
|
-
compare?: GPUCompareFunction;
|
|
515
|
-
lodMaxClamp?: number;
|
|
516
|
-
lodMinClamp?: number;
|
|
517
|
-
magFilter?: GPUFilterMode;
|
|
518
|
-
maxAnisotropy?: number;
|
|
519
|
-
minFilter?: GPUFilterMode;
|
|
520
|
-
mipmapFilter?: GPUMipmapFilterMode;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
524
|
-
code: string;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
interface GPUStencilFaceState {
|
|
528
|
-
compare?: GPUCompareFunction;
|
|
529
|
-
depthFailOp?: GPUStencilOperation;
|
|
530
|
-
failOp?: GPUStencilOperation;
|
|
531
|
-
passOp?: GPUStencilOperation;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
interface GPUStorageTextureBindingLayout {
|
|
535
|
-
access?: GPUStorageTextureAccess;
|
|
536
|
-
format: GPUTextureFormat;
|
|
537
|
-
viewDimension?: GPUTextureViewDimension;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
541
|
-
buffer: GPUBuffer;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
interface GPUTexelCopyBufferLayout {
|
|
545
|
-
bytesPerRow?: GPUSize32;
|
|
546
|
-
offset?: GPUSize64;
|
|
547
|
-
rowsPerImage?: GPUSize32;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
interface GPUTexelCopyTextureInfo {
|
|
551
|
-
aspect?: GPUTextureAspect;
|
|
552
|
-
mipLevel?: GPUIntegerCoordinate;
|
|
553
|
-
origin?: GPUOrigin3D;
|
|
554
|
-
texture: GPUTexture;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
interface GPUTextureBindingLayout {
|
|
558
|
-
multisampled?: boolean;
|
|
559
|
-
sampleType?: GPUTextureSampleType;
|
|
560
|
-
viewDimension?: GPUTextureViewDimension;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
564
|
-
dimension?: GPUTextureDimension;
|
|
565
|
-
format: GPUTextureFormat;
|
|
566
|
-
mipLevelCount?: GPUIntegerCoordinate;
|
|
567
|
-
sampleCount?: GPUSize32;
|
|
568
|
-
size: GPUExtent3D;
|
|
569
|
-
usage: GPUTextureUsageFlags;
|
|
570
|
-
viewFormats?: GPUTextureFormat[];
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
574
|
-
arrayLayerCount?: GPUIntegerCoordinate;
|
|
575
|
-
aspect?: GPUTextureAspect;
|
|
576
|
-
baseArrayLayer?: GPUIntegerCoordinate;
|
|
577
|
-
baseMipLevel?: GPUIntegerCoordinate;
|
|
578
|
-
dimension?: GPUTextureViewDimension;
|
|
579
|
-
format?: GPUTextureFormat;
|
|
580
|
-
mipLevelCount?: GPUIntegerCoordinate;
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
584
|
-
error: GPUError;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
interface GPUVertexAttribute {
|
|
588
|
-
format: GPUVertexFormat;
|
|
589
|
-
offset: GPUSize64;
|
|
590
|
-
shaderLocation: GPUIndex32;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
interface GPUVertexBufferLayout {
|
|
594
|
-
arrayStride: GPUSize64;
|
|
595
|
-
attributes: GPUVertexAttribute[];
|
|
596
|
-
stepMode?: GPUVertexStepMode;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
interface GPUVertexState extends GPUProgrammableStage {
|
|
600
|
-
buffers?: (GPUVertexBufferLayout | null)[];
|
|
601
|
-
}
|
|
602
|
-
|
|
603
242
|
interface GetNotificationOptions {
|
|
604
243
|
tag?: string;
|
|
605
244
|
}
|
|
@@ -2366,9 +2005,13 @@ declare var DOMPointReadOnly: {
|
|
|
2366
2005
|
|
|
2367
2006
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
|
|
2368
2007
|
interface DOMQuad {
|
|
2008
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
|
|
2369
2009
|
readonly p1: DOMPoint;
|
|
2010
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
|
|
2370
2011
|
readonly p2: DOMPoint;
|
|
2012
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
|
|
2371
2013
|
readonly p3: DOMPoint;
|
|
2014
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
|
|
2372
2015
|
readonly p4: DOMPoint;
|
|
2373
2016
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
|
|
2374
2017
|
getBounds(): DOMRect;
|
|
@@ -2385,9 +2028,13 @@ declare var DOMQuad: {
|
|
|
2385
2028
|
|
|
2386
2029
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
|
|
2387
2030
|
interface DOMRect extends DOMRectReadOnly {
|
|
2031
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */
|
|
2388
2032
|
height: number;
|
|
2033
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */
|
|
2389
2034
|
width: number;
|
|
2035
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */
|
|
2390
2036
|
x: number;
|
|
2037
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */
|
|
2391
2038
|
y: number;
|
|
2392
2039
|
}
|
|
2393
2040
|
|
|
@@ -2416,6 +2063,7 @@ interface DOMRectReadOnly {
|
|
|
2416
2063
|
readonly x: number;
|
|
2417
2064
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
|
|
2418
2065
|
readonly y: number;
|
|
2066
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */
|
|
2419
2067
|
toJSON(): any;
|
|
2420
2068
|
}
|
|
2421
2069
|
|
|
@@ -3166,350 +2814,6 @@ declare var FormData: {
|
|
|
3166
2814
|
new(): FormData;
|
|
3167
2815
|
};
|
|
3168
2816
|
|
|
3169
|
-
/**
|
|
3170
|
-
* Available only in secure contexts.
|
|
3171
|
-
*
|
|
3172
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
3173
|
-
*/
|
|
3174
|
-
interface GPU {
|
|
3175
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures) */
|
|
3176
|
-
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
3177
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat) */
|
|
3178
|
-
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
3179
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter) */
|
|
3180
|
-
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
3181
|
-
}
|
|
3182
|
-
|
|
3183
|
-
declare var GPU: {
|
|
3184
|
-
prototype: GPU;
|
|
3185
|
-
new(): GPU;
|
|
3186
|
-
};
|
|
3187
|
-
|
|
3188
|
-
/**
|
|
3189
|
-
* Available only in secure contexts.
|
|
3190
|
-
*
|
|
3191
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
3192
|
-
*/
|
|
3193
|
-
interface GPUAdapter {
|
|
3194
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) */
|
|
3195
|
-
readonly features: GPUSupportedFeatures;
|
|
3196
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) */
|
|
3197
|
-
readonly info: GPUAdapterInfo;
|
|
3198
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/isFallbackAdapter) */
|
|
3199
|
-
readonly isFallbackAdapter: boolean;
|
|
3200
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) */
|
|
3201
|
-
readonly limits: GPUSupportedLimits;
|
|
3202
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) */
|
|
3203
|
-
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
3204
|
-
}
|
|
3205
|
-
|
|
3206
|
-
declare var GPUAdapter: {
|
|
3207
|
-
prototype: GPUAdapter;
|
|
3208
|
-
new(): GPUAdapter;
|
|
3209
|
-
};
|
|
3210
|
-
|
|
3211
|
-
/**
|
|
3212
|
-
* Available only in secure contexts.
|
|
3213
|
-
*
|
|
3214
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3215
|
-
*/
|
|
3216
|
-
interface GPUAdapterInfo {
|
|
3217
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture) */
|
|
3218
|
-
readonly architecture: string;
|
|
3219
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description) */
|
|
3220
|
-
readonly description: string;
|
|
3221
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device) */
|
|
3222
|
-
readonly device: string;
|
|
3223
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor) */
|
|
3224
|
-
readonly vendor: string;
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
declare var GPUAdapterInfo: {
|
|
3228
|
-
prototype: GPUAdapterInfo;
|
|
3229
|
-
new(): GPUAdapterInfo;
|
|
3230
|
-
};
|
|
3231
|
-
|
|
3232
|
-
/**
|
|
3233
|
-
* Available only in secure contexts.
|
|
3234
|
-
*
|
|
3235
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
3236
|
-
*/
|
|
3237
|
-
interface GPUBindGroup extends GPUObjectBase {
|
|
3238
|
-
}
|
|
3239
|
-
|
|
3240
|
-
declare var GPUBindGroup: {
|
|
3241
|
-
prototype: GPUBindGroup;
|
|
3242
|
-
new(): GPUBindGroup;
|
|
3243
|
-
};
|
|
3244
|
-
|
|
3245
|
-
/**
|
|
3246
|
-
* Available only in secure contexts.
|
|
3247
|
-
*
|
|
3248
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
3249
|
-
*/
|
|
3250
|
-
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
3251
|
-
}
|
|
3252
|
-
|
|
3253
|
-
declare var GPUBindGroupLayout: {
|
|
3254
|
-
prototype: GPUBindGroupLayout;
|
|
3255
|
-
new(): GPUBindGroupLayout;
|
|
3256
|
-
};
|
|
3257
|
-
|
|
3258
|
-
interface GPUBindingCommandsMixin {
|
|
3259
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
3260
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
3261
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
3262
|
-
}
|
|
3263
|
-
|
|
3264
|
-
/**
|
|
3265
|
-
* Available only in secure contexts.
|
|
3266
|
-
*
|
|
3267
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
3268
|
-
*/
|
|
3269
|
-
interface GPUBuffer extends GPUObjectBase {
|
|
3270
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState) */
|
|
3271
|
-
readonly mapState: GPUBufferMapState;
|
|
3272
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size) */
|
|
3273
|
-
readonly size: GPUSize64Out;
|
|
3274
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage) */
|
|
3275
|
-
readonly usage: GPUFlagsConstant;
|
|
3276
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy) */
|
|
3277
|
-
destroy(): void;
|
|
3278
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange) */
|
|
3279
|
-
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
3280
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync) */
|
|
3281
|
-
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
3282
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap) */
|
|
3283
|
-
unmap(): void;
|
|
3284
|
-
}
|
|
3285
|
-
|
|
3286
|
-
declare var GPUBuffer: {
|
|
3287
|
-
prototype: GPUBuffer;
|
|
3288
|
-
new(): GPUBuffer;
|
|
3289
|
-
};
|
|
3290
|
-
|
|
3291
|
-
/**
|
|
3292
|
-
* Available only in secure contexts.
|
|
3293
|
-
*
|
|
3294
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
3295
|
-
*/
|
|
3296
|
-
interface GPUCanvasContext {
|
|
3297
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas) */
|
|
3298
|
-
readonly canvas: OffscreenCanvas;
|
|
3299
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure) */
|
|
3300
|
-
configure(configuration: GPUCanvasConfiguration): void;
|
|
3301
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture) */
|
|
3302
|
-
getCurrentTexture(): GPUTexture;
|
|
3303
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure) */
|
|
3304
|
-
unconfigure(): void;
|
|
3305
|
-
}
|
|
3306
|
-
|
|
3307
|
-
declare var GPUCanvasContext: {
|
|
3308
|
-
prototype: GPUCanvasContext;
|
|
3309
|
-
new(): GPUCanvasContext;
|
|
3310
|
-
};
|
|
3311
|
-
|
|
3312
|
-
/**
|
|
3313
|
-
* Available only in secure contexts.
|
|
3314
|
-
*
|
|
3315
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
3316
|
-
*/
|
|
3317
|
-
interface GPUCommandBuffer extends GPUObjectBase {
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
declare var GPUCommandBuffer: {
|
|
3321
|
-
prototype: GPUCommandBuffer;
|
|
3322
|
-
new(): GPUCommandBuffer;
|
|
3323
|
-
};
|
|
3324
|
-
|
|
3325
|
-
/**
|
|
3326
|
-
* Available only in secure contexts.
|
|
3327
|
-
*
|
|
3328
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
3329
|
-
*/
|
|
3330
|
-
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
3331
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass) */
|
|
3332
|
-
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
3333
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass) */
|
|
3334
|
-
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
3335
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer) */
|
|
3336
|
-
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
3337
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer) */
|
|
3338
|
-
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size: GPUSize64): void;
|
|
3339
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) */
|
|
3340
|
-
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
3341
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) */
|
|
3342
|
-
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
3343
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) */
|
|
3344
|
-
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
3345
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish) */
|
|
3346
|
-
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
3347
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet) */
|
|
3348
|
-
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
3349
|
-
}
|
|
3350
|
-
|
|
3351
|
-
declare var GPUCommandEncoder: {
|
|
3352
|
-
prototype: GPUCommandEncoder;
|
|
3353
|
-
new(): GPUCommandEncoder;
|
|
3354
|
-
};
|
|
3355
|
-
|
|
3356
|
-
/**
|
|
3357
|
-
* Available only in secure contexts.
|
|
3358
|
-
*
|
|
3359
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
3360
|
-
*/
|
|
3361
|
-
interface GPUCompilationInfo {
|
|
3362
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) */
|
|
3363
|
-
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
3364
|
-
}
|
|
3365
|
-
|
|
3366
|
-
declare var GPUCompilationInfo: {
|
|
3367
|
-
prototype: GPUCompilationInfo;
|
|
3368
|
-
new(): GPUCompilationInfo;
|
|
3369
|
-
};
|
|
3370
|
-
|
|
3371
|
-
/**
|
|
3372
|
-
* Available only in secure contexts.
|
|
3373
|
-
*
|
|
3374
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
3375
|
-
*/
|
|
3376
|
-
interface GPUCompilationMessage {
|
|
3377
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) */
|
|
3378
|
-
readonly length: number;
|
|
3379
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) */
|
|
3380
|
-
readonly lineNum: number;
|
|
3381
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) */
|
|
3382
|
-
readonly linePos: number;
|
|
3383
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) */
|
|
3384
|
-
readonly message: string;
|
|
3385
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) */
|
|
3386
|
-
readonly offset: number;
|
|
3387
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) */
|
|
3388
|
-
readonly type: GPUCompilationMessageType;
|
|
3389
|
-
}
|
|
3390
|
-
|
|
3391
|
-
declare var GPUCompilationMessage: {
|
|
3392
|
-
prototype: GPUCompilationMessage;
|
|
3393
|
-
new(): GPUCompilationMessage;
|
|
3394
|
-
};
|
|
3395
|
-
|
|
3396
|
-
/**
|
|
3397
|
-
* Available only in secure contexts.
|
|
3398
|
-
*
|
|
3399
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
3400
|
-
*/
|
|
3401
|
-
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
3402
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups) */
|
|
3403
|
-
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
3404
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect) */
|
|
3405
|
-
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
3406
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end) */
|
|
3407
|
-
end(): void;
|
|
3408
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline) */
|
|
3409
|
-
setPipeline(pipeline: GPUComputePipeline): void;
|
|
3410
|
-
}
|
|
3411
|
-
|
|
3412
|
-
declare var GPUComputePassEncoder: {
|
|
3413
|
-
prototype: GPUComputePassEncoder;
|
|
3414
|
-
new(): GPUComputePassEncoder;
|
|
3415
|
-
};
|
|
3416
|
-
|
|
3417
|
-
/**
|
|
3418
|
-
* Available only in secure contexts.
|
|
3419
|
-
*
|
|
3420
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
3421
|
-
*/
|
|
3422
|
-
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
3423
|
-
}
|
|
3424
|
-
|
|
3425
|
-
declare var GPUComputePipeline: {
|
|
3426
|
-
prototype: GPUComputePipeline;
|
|
3427
|
-
new(): GPUComputePipeline;
|
|
3428
|
-
};
|
|
3429
|
-
|
|
3430
|
-
interface GPUDebugCommandsMixin {
|
|
3431
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
3432
|
-
insertDebugMarker(markerLabel: string): void;
|
|
3433
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
3434
|
-
popDebugGroup(): void;
|
|
3435
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
3436
|
-
pushDebugGroup(groupLabel: string): void;
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
/**
|
|
3440
|
-
* Available only in secure contexts.
|
|
3441
|
-
*
|
|
3442
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
3443
|
-
*/
|
|
3444
|
-
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
3445
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features) */
|
|
3446
|
-
readonly features: GPUSupportedFeatures;
|
|
3447
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits) */
|
|
3448
|
-
readonly limits: GPUSupportedLimits;
|
|
3449
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost) */
|
|
3450
|
-
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
3451
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */
|
|
3452
|
-
readonly queue: GPUQueue;
|
|
3453
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup) */
|
|
3454
|
-
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
3455
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout) */
|
|
3456
|
-
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
3457
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer) */
|
|
3458
|
-
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
3459
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder) */
|
|
3460
|
-
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
3461
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline) */
|
|
3462
|
-
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
3463
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync) */
|
|
3464
|
-
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
3465
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout) */
|
|
3466
|
-
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
3467
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet) */
|
|
3468
|
-
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
3469
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder) */
|
|
3470
|
-
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
3471
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline) */
|
|
3472
|
-
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
3473
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync) */
|
|
3474
|
-
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
3475
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler) */
|
|
3476
|
-
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
3477
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule) */
|
|
3478
|
-
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
3479
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture) */
|
|
3480
|
-
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
3481
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) */
|
|
3482
|
-
destroy(): void;
|
|
3483
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) */
|
|
3484
|
-
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
3485
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) */
|
|
3486
|
-
popErrorScope(): Promise<GPUError | null>;
|
|
3487
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) */
|
|
3488
|
-
pushErrorScope(filter: GPUErrorFilter): void;
|
|
3489
|
-
}
|
|
3490
|
-
|
|
3491
|
-
declare var GPUDevice: {
|
|
3492
|
-
prototype: GPUDevice;
|
|
3493
|
-
new(): GPUDevice;
|
|
3494
|
-
};
|
|
3495
|
-
|
|
3496
|
-
/**
|
|
3497
|
-
* Available only in secure contexts.
|
|
3498
|
-
*
|
|
3499
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
3500
|
-
*/
|
|
3501
|
-
interface GPUDeviceLostInfo {
|
|
3502
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) */
|
|
3503
|
-
readonly message: string;
|
|
3504
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) */
|
|
3505
|
-
readonly reason: GPUDeviceLostReason;
|
|
3506
|
-
}
|
|
3507
|
-
|
|
3508
|
-
declare var GPUDeviceLostInfo: {
|
|
3509
|
-
prototype: GPUDeviceLostInfo;
|
|
3510
|
-
new(): GPUDeviceLostInfo;
|
|
3511
|
-
};
|
|
3512
|
-
|
|
3513
2817
|
/**
|
|
3514
2818
|
* Available only in secure contexts.
|
|
3515
2819
|
*
|
|
@@ -3520,403 +2824,6 @@ interface GPUError {
|
|
|
3520
2824
|
readonly message: string;
|
|
3521
2825
|
}
|
|
3522
2826
|
|
|
3523
|
-
/**
|
|
3524
|
-
* Available only in secure contexts.
|
|
3525
|
-
*
|
|
3526
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
3527
|
-
*/
|
|
3528
|
-
interface GPUExternalTexture extends GPUObjectBase {
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3531
|
-
declare var GPUExternalTexture: {
|
|
3532
|
-
prototype: GPUExternalTexture;
|
|
3533
|
-
new(): GPUExternalTexture;
|
|
3534
|
-
};
|
|
3535
|
-
|
|
3536
|
-
/**
|
|
3537
|
-
* Available only in secure contexts.
|
|
3538
|
-
*
|
|
3539
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
3540
|
-
*/
|
|
3541
|
-
interface GPUInternalError extends GPUError {
|
|
3542
|
-
}
|
|
3543
|
-
|
|
3544
|
-
declare var GPUInternalError: {
|
|
3545
|
-
prototype: GPUInternalError;
|
|
3546
|
-
new(message: string): GPUInternalError;
|
|
3547
|
-
};
|
|
3548
|
-
|
|
3549
|
-
interface GPUObjectBase {
|
|
3550
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
3551
|
-
label: string;
|
|
3552
|
-
}
|
|
3553
|
-
|
|
3554
|
-
/**
|
|
3555
|
-
* Available only in secure contexts.
|
|
3556
|
-
*
|
|
3557
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
3558
|
-
*/
|
|
3559
|
-
interface GPUOutOfMemoryError extends GPUError {
|
|
3560
|
-
}
|
|
3561
|
-
|
|
3562
|
-
declare var GPUOutOfMemoryError: {
|
|
3563
|
-
prototype: GPUOutOfMemoryError;
|
|
3564
|
-
new(message: string): GPUOutOfMemoryError;
|
|
3565
|
-
};
|
|
3566
|
-
|
|
3567
|
-
interface GPUPipelineBase {
|
|
3568
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
3569
|
-
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
3570
|
-
}
|
|
3571
|
-
|
|
3572
|
-
/**
|
|
3573
|
-
* Available only in secure contexts.
|
|
3574
|
-
*
|
|
3575
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
|
|
3576
|
-
*/
|
|
3577
|
-
interface GPUPipelineError extends DOMException {
|
|
3578
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) */
|
|
3579
|
-
readonly reason: GPUPipelineErrorReason;
|
|
3580
|
-
}
|
|
3581
|
-
|
|
3582
|
-
declare var GPUPipelineError: {
|
|
3583
|
-
prototype: GPUPipelineError;
|
|
3584
|
-
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
3585
|
-
};
|
|
3586
|
-
|
|
3587
|
-
/**
|
|
3588
|
-
* Available only in secure contexts.
|
|
3589
|
-
*
|
|
3590
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
3591
|
-
*/
|
|
3592
|
-
interface GPUPipelineLayout extends GPUObjectBase {
|
|
3593
|
-
}
|
|
3594
|
-
|
|
3595
|
-
declare var GPUPipelineLayout: {
|
|
3596
|
-
prototype: GPUPipelineLayout;
|
|
3597
|
-
new(): GPUPipelineLayout;
|
|
3598
|
-
};
|
|
3599
|
-
|
|
3600
|
-
/**
|
|
3601
|
-
* Available only in secure contexts.
|
|
3602
|
-
*
|
|
3603
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
3604
|
-
*/
|
|
3605
|
-
interface GPUQuerySet extends GPUObjectBase {
|
|
3606
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count) */
|
|
3607
|
-
readonly count: GPUSize32Out;
|
|
3608
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type) */
|
|
3609
|
-
readonly type: GPUQueryType;
|
|
3610
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy) */
|
|
3611
|
-
destroy(): void;
|
|
3612
|
-
}
|
|
3613
|
-
|
|
3614
|
-
declare var GPUQuerySet: {
|
|
3615
|
-
prototype: GPUQuerySet;
|
|
3616
|
-
new(): GPUQuerySet;
|
|
3617
|
-
};
|
|
3618
|
-
|
|
3619
|
-
/**
|
|
3620
|
-
* Available only in secure contexts.
|
|
3621
|
-
*
|
|
3622
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
3623
|
-
*/
|
|
3624
|
-
interface GPUQueue extends GPUObjectBase {
|
|
3625
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) */
|
|
3626
|
-
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
3627
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone) */
|
|
3628
|
-
onSubmittedWorkDone(): Promise<void>;
|
|
3629
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) */
|
|
3630
|
-
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
3631
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer) */
|
|
3632
|
-
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
3633
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) */
|
|
3634
|
-
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
3635
|
-
}
|
|
3636
|
-
|
|
3637
|
-
declare var GPUQueue: {
|
|
3638
|
-
prototype: GPUQueue;
|
|
3639
|
-
new(): GPUQueue;
|
|
3640
|
-
};
|
|
3641
|
-
|
|
3642
|
-
/**
|
|
3643
|
-
* Available only in secure contexts.
|
|
3644
|
-
*
|
|
3645
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
3646
|
-
*/
|
|
3647
|
-
interface GPURenderBundle extends GPUObjectBase {
|
|
3648
|
-
}
|
|
3649
|
-
|
|
3650
|
-
declare var GPURenderBundle: {
|
|
3651
|
-
prototype: GPURenderBundle;
|
|
3652
|
-
new(): GPURenderBundle;
|
|
3653
|
-
};
|
|
3654
|
-
|
|
3655
|
-
/**
|
|
3656
|
-
* Available only in secure contexts.
|
|
3657
|
-
*
|
|
3658
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
3659
|
-
*/
|
|
3660
|
-
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
3661
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish) */
|
|
3662
|
-
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
3663
|
-
}
|
|
3664
|
-
|
|
3665
|
-
declare var GPURenderBundleEncoder: {
|
|
3666
|
-
prototype: GPURenderBundleEncoder;
|
|
3667
|
-
new(): GPURenderBundleEncoder;
|
|
3668
|
-
};
|
|
3669
|
-
|
|
3670
|
-
interface GPURenderCommandsMixin {
|
|
3671
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
3672
|
-
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
3673
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
3674
|
-
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
3675
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
3676
|
-
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
3677
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
3678
|
-
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
3679
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
3680
|
-
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
3681
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
3682
|
-
setPipeline(pipeline: GPURenderPipeline): void;
|
|
3683
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
3684
|
-
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
3685
|
-
}
|
|
3686
|
-
|
|
3687
|
-
/**
|
|
3688
|
-
* Available only in secure contexts.
|
|
3689
|
-
*
|
|
3690
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
3691
|
-
*/
|
|
3692
|
-
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
3693
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery) */
|
|
3694
|
-
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
3695
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end) */
|
|
3696
|
-
end(): void;
|
|
3697
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery) */
|
|
3698
|
-
endOcclusionQuery(): void;
|
|
3699
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) */
|
|
3700
|
-
executeBundles(bundles: GPURenderBundle[]): void;
|
|
3701
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) */
|
|
3702
|
-
setBlendConstant(color: GPUColor): void;
|
|
3703
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect) */
|
|
3704
|
-
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
3705
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference) */
|
|
3706
|
-
setStencilReference(reference: GPUStencilValue): void;
|
|
3707
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport) */
|
|
3708
|
-
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
3709
|
-
}
|
|
3710
|
-
|
|
3711
|
-
declare var GPURenderPassEncoder: {
|
|
3712
|
-
prototype: GPURenderPassEncoder;
|
|
3713
|
-
new(): GPURenderPassEncoder;
|
|
3714
|
-
};
|
|
3715
|
-
|
|
3716
|
-
/**
|
|
3717
|
-
* Available only in secure contexts.
|
|
3718
|
-
*
|
|
3719
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
3720
|
-
*/
|
|
3721
|
-
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
3722
|
-
}
|
|
3723
|
-
|
|
3724
|
-
declare var GPURenderPipeline: {
|
|
3725
|
-
prototype: GPURenderPipeline;
|
|
3726
|
-
new(): GPURenderPipeline;
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
|
-
/**
|
|
3730
|
-
* Available only in secure contexts.
|
|
3731
|
-
*
|
|
3732
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
3733
|
-
*/
|
|
3734
|
-
interface GPUSampler extends GPUObjectBase {
|
|
3735
|
-
}
|
|
3736
|
-
|
|
3737
|
-
declare var GPUSampler: {
|
|
3738
|
-
prototype: GPUSampler;
|
|
3739
|
-
new(): GPUSampler;
|
|
3740
|
-
};
|
|
3741
|
-
|
|
3742
|
-
/**
|
|
3743
|
-
* Available only in secure contexts.
|
|
3744
|
-
*
|
|
3745
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
3746
|
-
*/
|
|
3747
|
-
interface GPUShaderModule extends GPUObjectBase {
|
|
3748
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo) */
|
|
3749
|
-
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
3750
|
-
}
|
|
3751
|
-
|
|
3752
|
-
declare var GPUShaderModule: {
|
|
3753
|
-
prototype: GPUShaderModule;
|
|
3754
|
-
new(): GPUShaderModule;
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
/**
|
|
3758
|
-
* Available only in secure contexts.
|
|
3759
|
-
*
|
|
3760
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
3761
|
-
*/
|
|
3762
|
-
interface GPUSupportedFeatures {
|
|
3763
|
-
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
3764
|
-
}
|
|
3765
|
-
|
|
3766
|
-
declare var GPUSupportedFeatures: {
|
|
3767
|
-
prototype: GPUSupportedFeatures;
|
|
3768
|
-
new(): GPUSupportedFeatures;
|
|
3769
|
-
};
|
|
3770
|
-
|
|
3771
|
-
/**
|
|
3772
|
-
* Available only in secure contexts.
|
|
3773
|
-
*
|
|
3774
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
3775
|
-
*/
|
|
3776
|
-
interface GPUSupportedLimits {
|
|
3777
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3778
|
-
readonly maxBindGroups: number;
|
|
3779
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3780
|
-
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
3781
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3782
|
-
readonly maxBindingsPerBindGroup: number;
|
|
3783
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3784
|
-
readonly maxBufferSize: number;
|
|
3785
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3786
|
-
readonly maxColorAttachmentBytesPerSample: number;
|
|
3787
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3788
|
-
readonly maxColorAttachments: number;
|
|
3789
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3790
|
-
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
3791
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3792
|
-
readonly maxComputeWorkgroupSizeX: number;
|
|
3793
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3794
|
-
readonly maxComputeWorkgroupSizeY: number;
|
|
3795
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3796
|
-
readonly maxComputeWorkgroupSizeZ: number;
|
|
3797
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3798
|
-
readonly maxComputeWorkgroupStorageSize: number;
|
|
3799
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3800
|
-
readonly maxComputeWorkgroupsPerDimension: number;
|
|
3801
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3802
|
-
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
3803
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3804
|
-
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
3805
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3806
|
-
readonly maxInterStageShaderVariables: number;
|
|
3807
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3808
|
-
readonly maxSampledTexturesPerShaderStage: number;
|
|
3809
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3810
|
-
readonly maxSamplersPerShaderStage: number;
|
|
3811
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3812
|
-
readonly maxStorageBufferBindingSize: number;
|
|
3813
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3814
|
-
readonly maxStorageBuffersPerShaderStage: number;
|
|
3815
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3816
|
-
readonly maxStorageTexturesPerShaderStage: number;
|
|
3817
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3818
|
-
readonly maxTextureArrayLayers: number;
|
|
3819
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3820
|
-
readonly maxTextureDimension1D: number;
|
|
3821
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3822
|
-
readonly maxTextureDimension2D: number;
|
|
3823
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3824
|
-
readonly maxTextureDimension3D: number;
|
|
3825
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3826
|
-
readonly maxUniformBufferBindingSize: number;
|
|
3827
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3828
|
-
readonly maxUniformBuffersPerShaderStage: number;
|
|
3829
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3830
|
-
readonly maxVertexAttributes: number;
|
|
3831
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3832
|
-
readonly maxVertexBufferArrayStride: number;
|
|
3833
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3834
|
-
readonly maxVertexBuffers: number;
|
|
3835
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3836
|
-
readonly minStorageBufferOffsetAlignment: number;
|
|
3837
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3838
|
-
readonly minUniformBufferOffsetAlignment: number;
|
|
3839
|
-
}
|
|
3840
|
-
|
|
3841
|
-
declare var GPUSupportedLimits: {
|
|
3842
|
-
prototype: GPUSupportedLimits;
|
|
3843
|
-
new(): GPUSupportedLimits;
|
|
3844
|
-
};
|
|
3845
|
-
|
|
3846
|
-
/**
|
|
3847
|
-
* Available only in secure contexts.
|
|
3848
|
-
*
|
|
3849
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
3850
|
-
*/
|
|
3851
|
-
interface GPUTexture extends GPUObjectBase {
|
|
3852
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) */
|
|
3853
|
-
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
3854
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) */
|
|
3855
|
-
readonly dimension: GPUTextureDimension;
|
|
3856
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) */
|
|
3857
|
-
readonly format: GPUTextureFormat;
|
|
3858
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) */
|
|
3859
|
-
readonly height: GPUIntegerCoordinateOut;
|
|
3860
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) */
|
|
3861
|
-
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
3862
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) */
|
|
3863
|
-
readonly sampleCount: GPUSize32Out;
|
|
3864
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) */
|
|
3865
|
-
readonly usage: GPUFlagsConstant;
|
|
3866
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) */
|
|
3867
|
-
readonly width: GPUIntegerCoordinateOut;
|
|
3868
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) */
|
|
3869
|
-
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
3870
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) */
|
|
3871
|
-
destroy(): void;
|
|
3872
|
-
}
|
|
3873
|
-
|
|
3874
|
-
declare var GPUTexture: {
|
|
3875
|
-
prototype: GPUTexture;
|
|
3876
|
-
new(): GPUTexture;
|
|
3877
|
-
};
|
|
3878
|
-
|
|
3879
|
-
/**
|
|
3880
|
-
* Available only in secure contexts.
|
|
3881
|
-
*
|
|
3882
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
3883
|
-
*/
|
|
3884
|
-
interface GPUTextureView extends GPUObjectBase {
|
|
3885
|
-
}
|
|
3886
|
-
|
|
3887
|
-
declare var GPUTextureView: {
|
|
3888
|
-
prototype: GPUTextureView;
|
|
3889
|
-
new(): GPUTextureView;
|
|
3890
|
-
};
|
|
3891
|
-
|
|
3892
|
-
/**
|
|
3893
|
-
* Available only in secure contexts.
|
|
3894
|
-
*
|
|
3895
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
3896
|
-
*/
|
|
3897
|
-
interface GPUUncapturedErrorEvent extends Event {
|
|
3898
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) */
|
|
3899
|
-
readonly error: GPUError;
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
|
-
declare var GPUUncapturedErrorEvent: {
|
|
3903
|
-
prototype: GPUUncapturedErrorEvent;
|
|
3904
|
-
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
3905
|
-
};
|
|
3906
|
-
|
|
3907
|
-
/**
|
|
3908
|
-
* Available only in secure contexts.
|
|
3909
|
-
*
|
|
3910
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
3911
|
-
*/
|
|
3912
|
-
interface GPUValidationError extends GPUError {
|
|
3913
|
-
}
|
|
3914
|
-
|
|
3915
|
-
declare var GPUValidationError: {
|
|
3916
|
-
prototype: GPUValidationError;
|
|
3917
|
-
new(message: string): GPUValidationError;
|
|
3918
|
-
};
|
|
3919
|
-
|
|
3920
2827
|
interface GenericTransformStream {
|
|
3921
2828
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
3922
2829
|
readonly readable: ReadableStream;
|
|
@@ -4915,15 +3822,6 @@ interface NavigatorConcurrentHardware {
|
|
|
4915
3822
|
readonly hardwareConcurrency: number;
|
|
4916
3823
|
}
|
|
4917
3824
|
|
|
4918
|
-
interface NavigatorGPU {
|
|
4919
|
-
/**
|
|
4920
|
-
* Available only in secure contexts.
|
|
4921
|
-
*
|
|
4922
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
4923
|
-
*/
|
|
4924
|
-
readonly gpu: GPU;
|
|
4925
|
-
}
|
|
4926
|
-
|
|
4927
3825
|
interface NavigatorID {
|
|
4928
3826
|
/**
|
|
4929
3827
|
* @deprecated
|
|
@@ -6687,20 +5585,6 @@ interface WEBGL_multi_draw {
|
|
|
6687
5585
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
6688
5586
|
}
|
|
6689
5587
|
|
|
6690
|
-
/**
|
|
6691
|
-
* Available only in secure contexts.
|
|
6692
|
-
*
|
|
6693
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
6694
|
-
*/
|
|
6695
|
-
interface WGSLLanguageFeatures {
|
|
6696
|
-
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
6697
|
-
}
|
|
6698
|
-
|
|
6699
|
-
declare var WGSLLanguageFeatures: {
|
|
6700
|
-
prototype: WGSLLanguageFeatures;
|
|
6701
|
-
new(): WGSLLanguageFeatures;
|
|
6702
|
-
};
|
|
6703
|
-
|
|
6704
5588
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
|
|
6705
5589
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
6706
5590
|
}
|
|
@@ -9239,7 +8123,7 @@ declare var WorkerLocation: {
|
|
|
9239
8123
|
*
|
|
9240
8124
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
|
9241
8125
|
*/
|
|
9242
|
-
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware,
|
|
8126
|
+
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
9243
8127
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */
|
|
9244
8128
|
readonly mediaCapabilities: MediaCapabilities;
|
|
9245
8129
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */
|
|
@@ -9740,31 +8624,6 @@ type GLsizei = number;
|
|
|
9740
8624
|
type GLsizeiptr = number;
|
|
9741
8625
|
type GLuint = number;
|
|
9742
8626
|
type GLuint64 = number;
|
|
9743
|
-
type GPUBindingResource = GPUSampler | GPUTextureView | GPUBufferBinding | GPUExternalTexture;
|
|
9744
|
-
type GPUBufferDynamicOffset = number;
|
|
9745
|
-
type GPUBufferUsageFlags = number;
|
|
9746
|
-
type GPUColor = number[] | GPUColorDict;
|
|
9747
|
-
type GPUColorWriteFlags = number;
|
|
9748
|
-
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
9749
|
-
type GPUDepthBias = number;
|
|
9750
|
-
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
9751
|
-
type GPUFlagsConstant = number;
|
|
9752
|
-
type GPUIndex32 = number;
|
|
9753
|
-
type GPUIntegerCoordinate = number;
|
|
9754
|
-
type GPUIntegerCoordinateOut = number;
|
|
9755
|
-
type GPUMapModeFlags = number;
|
|
9756
|
-
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
9757
|
-
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
9758
|
-
type GPUPipelineConstantValue = number;
|
|
9759
|
-
type GPUSampleMask = number;
|
|
9760
|
-
type GPUShaderStageFlags = number;
|
|
9761
|
-
type GPUSignedOffset32 = number;
|
|
9762
|
-
type GPUSize32 = number;
|
|
9763
|
-
type GPUSize32Out = number;
|
|
9764
|
-
type GPUSize64 = number;
|
|
9765
|
-
type GPUSize64Out = number;
|
|
9766
|
-
type GPUStencilValue = number;
|
|
9767
|
-
type GPUTextureUsageFlags = number;
|
|
9768
8627
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
9769
8628
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
9770
8629
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
@@ -9772,7 +8631,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
|
9772
8631
|
type Int32List = Int32Array | GLint[];
|
|
9773
8632
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
9774
8633
|
type NamedCurve = string;
|
|
9775
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext
|
|
8634
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
9776
8635
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
9777
8636
|
type PerformanceEntryList = PerformanceEntry[];
|
|
9778
8637
|
type PushMessageDataInit = BufferSource | string;
|
|
@@ -9810,40 +8669,6 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
|
9810
8669
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
9811
8670
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
9812
8671
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
9813
|
-
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
9814
|
-
type GPUAutoLayoutMode = "auto";
|
|
9815
|
-
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";
|
|
9816
|
-
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
9817
|
-
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
9818
|
-
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
9819
|
-
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
9820
|
-
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
9821
|
-
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
9822
|
-
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
9823
|
-
type GPUCullMode = "back" | "front" | "none";
|
|
9824
|
-
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
9825
|
-
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
9826
|
-
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";
|
|
9827
|
-
type GPUFilterMode = "linear" | "nearest";
|
|
9828
|
-
type GPUFrontFace = "ccw" | "cw";
|
|
9829
|
-
type GPUIndexFormat = "uint16" | "uint32";
|
|
9830
|
-
type GPULoadOp = "clear" | "load";
|
|
9831
|
-
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
9832
|
-
type GPUPipelineErrorReason = "internal" | "validation";
|
|
9833
|
-
type GPUPowerPreference = "high-performance" | "low-power";
|
|
9834
|
-
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
9835
|
-
type GPUQueryType = "occlusion" | "timestamp";
|
|
9836
|
-
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
9837
|
-
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
9838
|
-
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
9839
|
-
type GPUStoreOp = "discard" | "store";
|
|
9840
|
-
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
9841
|
-
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
9842
|
-
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";
|
|
9843
|
-
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
9844
|
-
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
9845
|
-
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";
|
|
9846
|
-
type GPUVertexStepMode = "instance" | "vertex";
|
|
9847
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";
|
|
9848
8673
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
9849
8674
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|