@types/sharedworker 0.0.133 → 0.0.135
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/ts5.5/index.d.ts
CHANGED
|
@@ -214,367 +214,6 @@ interface FontFaceSetLoadEventInit extends EventInit {
|
|
|
214
214
|
fontfaces?: FontFace[];
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
interface GPUBindGroupDescriptor extends GPUObjectDescriptorBase {
|
|
218
|
-
entries: GPUBindGroupEntry[];
|
|
219
|
-
layout: GPUBindGroupLayout;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
interface GPUBindGroupEntry {
|
|
223
|
-
binding: GPUIndex32;
|
|
224
|
-
resource: GPUBindingResource;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
interface GPUBindGroupLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
228
|
-
entries: GPUBindGroupLayoutEntry[];
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
interface GPUBindGroupLayoutEntry {
|
|
232
|
-
binding: GPUIndex32;
|
|
233
|
-
buffer?: GPUBufferBindingLayout;
|
|
234
|
-
externalTexture?: GPUExternalTextureBindingLayout;
|
|
235
|
-
sampler?: GPUSamplerBindingLayout;
|
|
236
|
-
storageTexture?: GPUStorageTextureBindingLayout;
|
|
237
|
-
texture?: GPUTextureBindingLayout;
|
|
238
|
-
visibility: GPUShaderStageFlags;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
interface GPUBlendComponent {
|
|
242
|
-
dstFactor?: GPUBlendFactor;
|
|
243
|
-
operation?: GPUBlendOperation;
|
|
244
|
-
srcFactor?: GPUBlendFactor;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
interface GPUBlendState {
|
|
248
|
-
alpha: GPUBlendComponent;
|
|
249
|
-
color: GPUBlendComponent;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
interface GPUBufferBinding {
|
|
253
|
-
buffer: GPUBuffer;
|
|
254
|
-
offset?: GPUSize64;
|
|
255
|
-
size?: GPUSize64;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
interface GPUBufferBindingLayout {
|
|
259
|
-
hasDynamicOffset?: boolean;
|
|
260
|
-
minBindingSize?: GPUSize64;
|
|
261
|
-
type?: GPUBufferBindingType;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
interface GPUBufferDescriptor extends GPUObjectDescriptorBase {
|
|
265
|
-
mappedAtCreation?: boolean;
|
|
266
|
-
size: GPUSize64;
|
|
267
|
-
usage: GPUBufferUsageFlags;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
interface GPUCanvasConfiguration {
|
|
271
|
-
alphaMode?: GPUCanvasAlphaMode;
|
|
272
|
-
colorSpace?: PredefinedColorSpace;
|
|
273
|
-
device: GPUDevice;
|
|
274
|
-
format: GPUTextureFormat;
|
|
275
|
-
toneMapping?: GPUCanvasToneMapping;
|
|
276
|
-
usage?: GPUTextureUsageFlags;
|
|
277
|
-
viewFormats?: GPUTextureFormat[];
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
interface GPUCanvasToneMapping {
|
|
281
|
-
mode?: GPUCanvasToneMappingMode;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
interface GPUColorDict {
|
|
285
|
-
a: number;
|
|
286
|
-
b: number;
|
|
287
|
-
g: number;
|
|
288
|
-
r: number;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
interface GPUColorTargetState {
|
|
292
|
-
blend?: GPUBlendState;
|
|
293
|
-
format: GPUTextureFormat;
|
|
294
|
-
writeMask?: GPUColorWriteFlags;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
interface GPUCommandBufferDescriptor extends GPUObjectDescriptorBase {
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
interface GPUCommandEncoderDescriptor extends GPUObjectDescriptorBase {
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
interface GPUComputePassDescriptor extends GPUObjectDescriptorBase {
|
|
304
|
-
timestampWrites?: GPUComputePassTimestampWrites;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
interface GPUComputePassTimestampWrites {
|
|
308
|
-
beginningOfPassWriteIndex?: GPUSize32;
|
|
309
|
-
endOfPassWriteIndex?: GPUSize32;
|
|
310
|
-
querySet: GPUQuerySet;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
interface GPUComputePipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
314
|
-
compute: GPUProgrammableStage;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
interface GPUCopyExternalImageDestInfo extends GPUTexelCopyTextureInfo {
|
|
318
|
-
colorSpace?: PredefinedColorSpace;
|
|
319
|
-
premultipliedAlpha?: boolean;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
interface GPUCopyExternalImageSourceInfo {
|
|
323
|
-
flipY?: boolean;
|
|
324
|
-
origin?: GPUOrigin2D;
|
|
325
|
-
source: GPUCopyExternalImageSource;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
interface GPUDepthStencilState {
|
|
329
|
-
depthBias?: GPUDepthBias;
|
|
330
|
-
depthBiasClamp?: number;
|
|
331
|
-
depthBiasSlopeScale?: number;
|
|
332
|
-
depthCompare?: GPUCompareFunction;
|
|
333
|
-
depthWriteEnabled?: boolean;
|
|
334
|
-
format: GPUTextureFormat;
|
|
335
|
-
stencilBack?: GPUStencilFaceState;
|
|
336
|
-
stencilFront?: GPUStencilFaceState;
|
|
337
|
-
stencilReadMask?: GPUStencilValue;
|
|
338
|
-
stencilWriteMask?: GPUStencilValue;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
interface GPUDeviceDescriptor extends GPUObjectDescriptorBase {
|
|
342
|
-
defaultQueue?: GPUQueueDescriptor;
|
|
343
|
-
requiredFeatures?: GPUFeatureName[];
|
|
344
|
-
requiredLimits?: Record<string, GPUSize64 | undefined>;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
interface GPUExtent3DDict {
|
|
348
|
-
depthOrArrayLayers?: GPUIntegerCoordinate;
|
|
349
|
-
height?: GPUIntegerCoordinate;
|
|
350
|
-
width: GPUIntegerCoordinate;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
interface GPUExternalTextureBindingLayout {
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
interface GPUExternalTextureDescriptor extends GPUObjectDescriptorBase {
|
|
357
|
-
colorSpace?: PredefinedColorSpace;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
interface GPUFragmentState extends GPUProgrammableStage {
|
|
361
|
-
targets: (GPUColorTargetState | null)[];
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
interface GPUMultisampleState {
|
|
365
|
-
alphaToCoverageEnabled?: boolean;
|
|
366
|
-
count?: GPUSize32;
|
|
367
|
-
mask?: GPUSampleMask;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
interface GPUObjectDescriptorBase {
|
|
371
|
-
label?: string;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
interface GPUOrigin2DDict {
|
|
375
|
-
x?: GPUIntegerCoordinate;
|
|
376
|
-
y?: GPUIntegerCoordinate;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
interface GPUOrigin3DDict {
|
|
380
|
-
x?: GPUIntegerCoordinate;
|
|
381
|
-
y?: GPUIntegerCoordinate;
|
|
382
|
-
z?: GPUIntegerCoordinate;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
interface GPUPipelineDescriptorBase extends GPUObjectDescriptorBase {
|
|
386
|
-
layout: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
interface GPUPipelineErrorInit {
|
|
390
|
-
reason: GPUPipelineErrorReason;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
interface GPUPipelineLayoutDescriptor extends GPUObjectDescriptorBase {
|
|
394
|
-
bindGroupLayouts: (GPUBindGroupLayout | null)[];
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
interface GPUPrimitiveState {
|
|
398
|
-
cullMode?: GPUCullMode;
|
|
399
|
-
frontFace?: GPUFrontFace;
|
|
400
|
-
stripIndexFormat?: GPUIndexFormat;
|
|
401
|
-
topology?: GPUPrimitiveTopology;
|
|
402
|
-
unclippedDepth?: boolean;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
interface GPUProgrammableStage {
|
|
406
|
-
constants?: Record<string, GPUPipelineConstantValue>;
|
|
407
|
-
entryPoint?: string;
|
|
408
|
-
module: GPUShaderModule;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
interface GPUQuerySetDescriptor extends GPUObjectDescriptorBase {
|
|
412
|
-
count: GPUSize32;
|
|
413
|
-
type: GPUQueryType;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
interface GPUQueueDescriptor extends GPUObjectDescriptorBase {
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
interface GPURenderBundleDescriptor extends GPUObjectDescriptorBase {
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
interface GPURenderBundleEncoderDescriptor extends GPURenderPassLayout {
|
|
423
|
-
depthReadOnly?: boolean;
|
|
424
|
-
stencilReadOnly?: boolean;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
interface GPURenderPassColorAttachment {
|
|
428
|
-
clearValue?: GPUColor;
|
|
429
|
-
depthSlice?: GPUIntegerCoordinate;
|
|
430
|
-
loadOp: GPULoadOp;
|
|
431
|
-
resolveTarget?: GPUTextureView;
|
|
432
|
-
storeOp: GPUStoreOp;
|
|
433
|
-
view: GPUTextureView;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
interface GPURenderPassDepthStencilAttachment {
|
|
437
|
-
depthClearValue?: number;
|
|
438
|
-
depthLoadOp?: GPULoadOp;
|
|
439
|
-
depthReadOnly?: boolean;
|
|
440
|
-
depthStoreOp?: GPUStoreOp;
|
|
441
|
-
stencilClearValue?: GPUStencilValue;
|
|
442
|
-
stencilLoadOp?: GPULoadOp;
|
|
443
|
-
stencilReadOnly?: boolean;
|
|
444
|
-
stencilStoreOp?: GPUStoreOp;
|
|
445
|
-
view: GPUTextureView;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
interface GPURenderPassDescriptor extends GPUObjectDescriptorBase {
|
|
449
|
-
colorAttachments: (GPURenderPassColorAttachment | null)[];
|
|
450
|
-
depthStencilAttachment?: GPURenderPassDepthStencilAttachment;
|
|
451
|
-
maxDrawCount?: GPUSize64;
|
|
452
|
-
occlusionQuerySet?: GPUQuerySet;
|
|
453
|
-
timestampWrites?: GPURenderPassTimestampWrites;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
interface GPURenderPassLayout extends GPUObjectDescriptorBase {
|
|
457
|
-
colorFormats: (GPUTextureFormat | null)[];
|
|
458
|
-
depthStencilFormat?: GPUTextureFormat;
|
|
459
|
-
sampleCount?: GPUSize32;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
interface GPURenderPassTimestampWrites {
|
|
463
|
-
beginningOfPassWriteIndex?: GPUSize32;
|
|
464
|
-
endOfPassWriteIndex?: GPUSize32;
|
|
465
|
-
querySet: GPUQuerySet;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
469
|
-
depthStencil?: GPUDepthStencilState;
|
|
470
|
-
fragment?: GPUFragmentState;
|
|
471
|
-
multisample?: GPUMultisampleState;
|
|
472
|
-
primitive?: GPUPrimitiveState;
|
|
473
|
-
vertex: GPUVertexState;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
interface GPURequestAdapterOptions {
|
|
477
|
-
forceFallbackAdapter?: boolean;
|
|
478
|
-
powerPreference?: GPUPowerPreference;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
interface GPUSamplerBindingLayout {
|
|
482
|
-
type?: GPUSamplerBindingType;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
486
|
-
addressModeU?: GPUAddressMode;
|
|
487
|
-
addressModeV?: GPUAddressMode;
|
|
488
|
-
addressModeW?: GPUAddressMode;
|
|
489
|
-
compare?: GPUCompareFunction;
|
|
490
|
-
lodMaxClamp?: number;
|
|
491
|
-
lodMinClamp?: number;
|
|
492
|
-
magFilter?: GPUFilterMode;
|
|
493
|
-
maxAnisotropy?: number;
|
|
494
|
-
minFilter?: GPUFilterMode;
|
|
495
|
-
mipmapFilter?: GPUMipmapFilterMode;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
499
|
-
code: string;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
interface GPUStencilFaceState {
|
|
503
|
-
compare?: GPUCompareFunction;
|
|
504
|
-
depthFailOp?: GPUStencilOperation;
|
|
505
|
-
failOp?: GPUStencilOperation;
|
|
506
|
-
passOp?: GPUStencilOperation;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
interface GPUStorageTextureBindingLayout {
|
|
510
|
-
access?: GPUStorageTextureAccess;
|
|
511
|
-
format: GPUTextureFormat;
|
|
512
|
-
viewDimension?: GPUTextureViewDimension;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
interface GPUTexelCopyBufferInfo extends GPUTexelCopyBufferLayout {
|
|
516
|
-
buffer: GPUBuffer;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
interface GPUTexelCopyBufferLayout {
|
|
520
|
-
bytesPerRow?: GPUSize32;
|
|
521
|
-
offset?: GPUSize64;
|
|
522
|
-
rowsPerImage?: GPUSize32;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
interface GPUTexelCopyTextureInfo {
|
|
526
|
-
aspect?: GPUTextureAspect;
|
|
527
|
-
mipLevel?: GPUIntegerCoordinate;
|
|
528
|
-
origin?: GPUOrigin3D;
|
|
529
|
-
texture: GPUTexture;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
interface GPUTextureBindingLayout {
|
|
533
|
-
multisampled?: boolean;
|
|
534
|
-
sampleType?: GPUTextureSampleType;
|
|
535
|
-
viewDimension?: GPUTextureViewDimension;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
interface GPUTextureDescriptor extends GPUObjectDescriptorBase {
|
|
539
|
-
dimension?: GPUTextureDimension;
|
|
540
|
-
format: GPUTextureFormat;
|
|
541
|
-
mipLevelCount?: GPUIntegerCoordinate;
|
|
542
|
-
sampleCount?: GPUSize32;
|
|
543
|
-
size: GPUExtent3D;
|
|
544
|
-
usage: GPUTextureUsageFlags;
|
|
545
|
-
viewFormats?: GPUTextureFormat[];
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
549
|
-
arrayLayerCount?: GPUIntegerCoordinate;
|
|
550
|
-
aspect?: GPUTextureAspect;
|
|
551
|
-
baseArrayLayer?: GPUIntegerCoordinate;
|
|
552
|
-
baseMipLevel?: GPUIntegerCoordinate;
|
|
553
|
-
dimension?: GPUTextureViewDimension;
|
|
554
|
-
format?: GPUTextureFormat;
|
|
555
|
-
mipLevelCount?: GPUIntegerCoordinate;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
interface GPUUncapturedErrorEventInit extends EventInit {
|
|
559
|
-
error: GPUError;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
interface GPUVertexAttribute {
|
|
563
|
-
format: GPUVertexFormat;
|
|
564
|
-
offset: GPUSize64;
|
|
565
|
-
shaderLocation: GPUIndex32;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
interface GPUVertexBufferLayout {
|
|
569
|
-
arrayStride: GPUSize64;
|
|
570
|
-
attributes: GPUVertexAttribute[];
|
|
571
|
-
stepMode?: GPUVertexStepMode;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
interface GPUVertexState extends GPUProgrammableStage {
|
|
575
|
-
buffers?: (GPUVertexBufferLayout | null)[];
|
|
576
|
-
}
|
|
577
|
-
|
|
578
217
|
interface GetNotificationOptions {
|
|
579
218
|
tag?: string;
|
|
580
219
|
}
|
|
@@ -2293,9 +1932,13 @@ declare var DOMPointReadOnly: {
|
|
|
2293
1932
|
|
|
2294
1933
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
|
|
2295
1934
|
interface DOMQuad {
|
|
1935
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
|
|
2296
1936
|
readonly p1: DOMPoint;
|
|
1937
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
|
|
2297
1938
|
readonly p2: DOMPoint;
|
|
1939
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
|
|
2298
1940
|
readonly p3: DOMPoint;
|
|
1941
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
|
|
2299
1942
|
readonly p4: DOMPoint;
|
|
2300
1943
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
|
|
2301
1944
|
getBounds(): DOMRect;
|
|
@@ -2312,9 +1955,13 @@ declare var DOMQuad: {
|
|
|
2312
1955
|
|
|
2313
1956
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
|
|
2314
1957
|
interface DOMRect extends DOMRectReadOnly {
|
|
1958
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */
|
|
2315
1959
|
height: number;
|
|
1960
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */
|
|
2316
1961
|
width: number;
|
|
1962
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */
|
|
2317
1963
|
x: number;
|
|
1964
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */
|
|
2318
1965
|
y: number;
|
|
2319
1966
|
}
|
|
2320
1967
|
|
|
@@ -2343,6 +1990,7 @@ interface DOMRectReadOnly {
|
|
|
2343
1990
|
readonly x: number;
|
|
2344
1991
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
|
|
2345
1992
|
readonly y: number;
|
|
1993
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */
|
|
2346
1994
|
toJSON(): any;
|
|
2347
1995
|
}
|
|
2348
1996
|
|
|
@@ -3055,350 +2703,6 @@ declare var FormData: {
|
|
|
3055
2703
|
new(): FormData;
|
|
3056
2704
|
};
|
|
3057
2705
|
|
|
3058
|
-
/**
|
|
3059
|
-
* Available only in secure contexts.
|
|
3060
|
-
*
|
|
3061
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU)
|
|
3062
|
-
*/
|
|
3063
|
-
interface GPU {
|
|
3064
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/wgslLanguageFeatures) */
|
|
3065
|
-
readonly wgslLanguageFeatures: WGSLLanguageFeatures;
|
|
3066
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/getPreferredCanvasFormat) */
|
|
3067
|
-
getPreferredCanvasFormat(): GPUTextureFormat;
|
|
3068
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPU/requestAdapter) */
|
|
3069
|
-
requestAdapter(options?: GPURequestAdapterOptions): Promise<GPUAdapter | null>;
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
declare var GPU: {
|
|
3073
|
-
prototype: GPU;
|
|
3074
|
-
new(): GPU;
|
|
3075
|
-
};
|
|
3076
|
-
|
|
3077
|
-
/**
|
|
3078
|
-
* Available only in secure contexts.
|
|
3079
|
-
*
|
|
3080
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter)
|
|
3081
|
-
*/
|
|
3082
|
-
interface GPUAdapter {
|
|
3083
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/features) */
|
|
3084
|
-
readonly features: GPUSupportedFeatures;
|
|
3085
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/info) */
|
|
3086
|
-
readonly info: GPUAdapterInfo;
|
|
3087
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/isFallbackAdapter) */
|
|
3088
|
-
readonly isFallbackAdapter: boolean;
|
|
3089
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/limits) */
|
|
3090
|
-
readonly limits: GPUSupportedLimits;
|
|
3091
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapter/requestDevice) */
|
|
3092
|
-
requestDevice(descriptor?: GPUDeviceDescriptor): Promise<GPUDevice>;
|
|
3093
|
-
}
|
|
3094
|
-
|
|
3095
|
-
declare var GPUAdapter: {
|
|
3096
|
-
prototype: GPUAdapter;
|
|
3097
|
-
new(): GPUAdapter;
|
|
3098
|
-
};
|
|
3099
|
-
|
|
3100
|
-
/**
|
|
3101
|
-
* Available only in secure contexts.
|
|
3102
|
-
*
|
|
3103
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo)
|
|
3104
|
-
*/
|
|
3105
|
-
interface GPUAdapterInfo {
|
|
3106
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/architecture) */
|
|
3107
|
-
readonly architecture: string;
|
|
3108
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/description) */
|
|
3109
|
-
readonly description: string;
|
|
3110
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/device) */
|
|
3111
|
-
readonly device: string;
|
|
3112
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUAdapterInfo/vendor) */
|
|
3113
|
-
readonly vendor: string;
|
|
3114
|
-
}
|
|
3115
|
-
|
|
3116
|
-
declare var GPUAdapterInfo: {
|
|
3117
|
-
prototype: GPUAdapterInfo;
|
|
3118
|
-
new(): GPUAdapterInfo;
|
|
3119
|
-
};
|
|
3120
|
-
|
|
3121
|
-
/**
|
|
3122
|
-
* Available only in secure contexts.
|
|
3123
|
-
*
|
|
3124
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup)
|
|
3125
|
-
*/
|
|
3126
|
-
interface GPUBindGroup extends GPUObjectBase {
|
|
3127
|
-
}
|
|
3128
|
-
|
|
3129
|
-
declare var GPUBindGroup: {
|
|
3130
|
-
prototype: GPUBindGroup;
|
|
3131
|
-
new(): GPUBindGroup;
|
|
3132
|
-
};
|
|
3133
|
-
|
|
3134
|
-
/**
|
|
3135
|
-
* Available only in secure contexts.
|
|
3136
|
-
*
|
|
3137
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroupLayout)
|
|
3138
|
-
*/
|
|
3139
|
-
interface GPUBindGroupLayout extends GPUObjectBase {
|
|
3140
|
-
}
|
|
3141
|
-
|
|
3142
|
-
declare var GPUBindGroupLayout: {
|
|
3143
|
-
prototype: GPUBindGroupLayout;
|
|
3144
|
-
new(): GPUBindGroupLayout;
|
|
3145
|
-
};
|
|
3146
|
-
|
|
3147
|
-
interface GPUBindingCommandsMixin {
|
|
3148
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setBindGroup) */
|
|
3149
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsets?: GPUBufferDynamicOffset[]): void;
|
|
3150
|
-
setBindGroup(index: GPUIndex32, bindGroup: GPUBindGroup | null, dynamicOffsetsData: Uint32Array, dynamicOffsetsDataStart: GPUSize64, dynamicOffsetsDataLength: GPUSize32): void;
|
|
3151
|
-
}
|
|
3152
|
-
|
|
3153
|
-
/**
|
|
3154
|
-
* Available only in secure contexts.
|
|
3155
|
-
*
|
|
3156
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer)
|
|
3157
|
-
*/
|
|
3158
|
-
interface GPUBuffer extends GPUObjectBase {
|
|
3159
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapState) */
|
|
3160
|
-
readonly mapState: GPUBufferMapState;
|
|
3161
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/size) */
|
|
3162
|
-
readonly size: GPUSize64Out;
|
|
3163
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/usage) */
|
|
3164
|
-
readonly usage: GPUFlagsConstant;
|
|
3165
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/destroy) */
|
|
3166
|
-
destroy(): void;
|
|
3167
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/getMappedRange) */
|
|
3168
|
-
getMappedRange(offset?: GPUSize64, size?: GPUSize64): ArrayBuffer;
|
|
3169
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/mapAsync) */
|
|
3170
|
-
mapAsync(mode: GPUMapModeFlags, offset?: GPUSize64, size?: GPUSize64): Promise<void>;
|
|
3171
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBuffer/unmap) */
|
|
3172
|
-
unmap(): void;
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
declare var GPUBuffer: {
|
|
3176
|
-
prototype: GPUBuffer;
|
|
3177
|
-
new(): GPUBuffer;
|
|
3178
|
-
};
|
|
3179
|
-
|
|
3180
|
-
/**
|
|
3181
|
-
* Available only in secure contexts.
|
|
3182
|
-
*
|
|
3183
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext)
|
|
3184
|
-
*/
|
|
3185
|
-
interface GPUCanvasContext {
|
|
3186
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/canvas) */
|
|
3187
|
-
readonly canvas: OffscreenCanvas;
|
|
3188
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/configure) */
|
|
3189
|
-
configure(configuration: GPUCanvasConfiguration): void;
|
|
3190
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/getCurrentTexture) */
|
|
3191
|
-
getCurrentTexture(): GPUTexture;
|
|
3192
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCanvasContext/unconfigure) */
|
|
3193
|
-
unconfigure(): void;
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
declare var GPUCanvasContext: {
|
|
3197
|
-
prototype: GPUCanvasContext;
|
|
3198
|
-
new(): GPUCanvasContext;
|
|
3199
|
-
};
|
|
3200
|
-
|
|
3201
|
-
/**
|
|
3202
|
-
* Available only in secure contexts.
|
|
3203
|
-
*
|
|
3204
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandBuffer)
|
|
3205
|
-
*/
|
|
3206
|
-
interface GPUCommandBuffer extends GPUObjectBase {
|
|
3207
|
-
}
|
|
3208
|
-
|
|
3209
|
-
declare var GPUCommandBuffer: {
|
|
3210
|
-
prototype: GPUCommandBuffer;
|
|
3211
|
-
new(): GPUCommandBuffer;
|
|
3212
|
-
};
|
|
3213
|
-
|
|
3214
|
-
/**
|
|
3215
|
-
* Available only in secure contexts.
|
|
3216
|
-
*
|
|
3217
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder)
|
|
3218
|
-
*/
|
|
3219
|
-
interface GPUCommandEncoder extends GPUDebugCommandsMixin, GPUObjectBase {
|
|
3220
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginComputePass) */
|
|
3221
|
-
beginComputePass(descriptor?: GPUComputePassDescriptor): GPUComputePassEncoder;
|
|
3222
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/beginRenderPass) */
|
|
3223
|
-
beginRenderPass(descriptor: GPURenderPassDescriptor): GPURenderPassEncoder;
|
|
3224
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/clearBuffer) */
|
|
3225
|
-
clearBuffer(buffer: GPUBuffer, offset?: GPUSize64, size?: GPUSize64): void;
|
|
3226
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer) */
|
|
3227
|
-
copyBufferToBuffer(source: GPUBuffer, sourceOffset: GPUSize64, destination: GPUBuffer, destinationOffset: GPUSize64, size: GPUSize64): void;
|
|
3228
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyBufferToTexture) */
|
|
3229
|
-
copyBufferToTexture(source: GPUTexelCopyBufferInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
3230
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer) */
|
|
3231
|
-
copyTextureToBuffer(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyBufferInfo, copySize: GPUExtent3D): void;
|
|
3232
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/copyTextureToTexture) */
|
|
3233
|
-
copyTextureToTexture(source: GPUTexelCopyTextureInfo, destination: GPUTexelCopyTextureInfo, copySize: GPUExtent3D): void;
|
|
3234
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/finish) */
|
|
3235
|
-
finish(descriptor?: GPUCommandBufferDescriptor): GPUCommandBuffer;
|
|
3236
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/resolveQuerySet) */
|
|
3237
|
-
resolveQuerySet(querySet: GPUQuerySet, firstQuery: GPUSize32, queryCount: GPUSize32, destination: GPUBuffer, destinationOffset: GPUSize64): void;
|
|
3238
|
-
}
|
|
3239
|
-
|
|
3240
|
-
declare var GPUCommandEncoder: {
|
|
3241
|
-
prototype: GPUCommandEncoder;
|
|
3242
|
-
new(): GPUCommandEncoder;
|
|
3243
|
-
};
|
|
3244
|
-
|
|
3245
|
-
/**
|
|
3246
|
-
* Available only in secure contexts.
|
|
3247
|
-
*
|
|
3248
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo)
|
|
3249
|
-
*/
|
|
3250
|
-
interface GPUCompilationInfo {
|
|
3251
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationInfo/messages) */
|
|
3252
|
-
readonly messages: ReadonlyArray<GPUCompilationMessage>;
|
|
3253
|
-
}
|
|
3254
|
-
|
|
3255
|
-
declare var GPUCompilationInfo: {
|
|
3256
|
-
prototype: GPUCompilationInfo;
|
|
3257
|
-
new(): GPUCompilationInfo;
|
|
3258
|
-
};
|
|
3259
|
-
|
|
3260
|
-
/**
|
|
3261
|
-
* Available only in secure contexts.
|
|
3262
|
-
*
|
|
3263
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage)
|
|
3264
|
-
*/
|
|
3265
|
-
interface GPUCompilationMessage {
|
|
3266
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/length) */
|
|
3267
|
-
readonly length: number;
|
|
3268
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/lineNum) */
|
|
3269
|
-
readonly lineNum: number;
|
|
3270
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/linePos) */
|
|
3271
|
-
readonly linePos: number;
|
|
3272
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/message) */
|
|
3273
|
-
readonly message: string;
|
|
3274
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/offset) */
|
|
3275
|
-
readonly offset: number;
|
|
3276
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCompilationMessage/type) */
|
|
3277
|
-
readonly type: GPUCompilationMessageType;
|
|
3278
|
-
}
|
|
3279
|
-
|
|
3280
|
-
declare var GPUCompilationMessage: {
|
|
3281
|
-
prototype: GPUCompilationMessage;
|
|
3282
|
-
new(): GPUCompilationMessage;
|
|
3283
|
-
};
|
|
3284
|
-
|
|
3285
|
-
/**
|
|
3286
|
-
* Available only in secure contexts.
|
|
3287
|
-
*
|
|
3288
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder)
|
|
3289
|
-
*/
|
|
3290
|
-
interface GPUComputePassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase {
|
|
3291
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroups) */
|
|
3292
|
-
dispatchWorkgroups(workgroupCountX: GPUSize32, workgroupCountY?: GPUSize32, workgroupCountZ?: GPUSize32): void;
|
|
3293
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/dispatchWorkgroupsIndirect) */
|
|
3294
|
-
dispatchWorkgroupsIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
3295
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/end) */
|
|
3296
|
-
end(): void;
|
|
3297
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePassEncoder/setPipeline) */
|
|
3298
|
-
setPipeline(pipeline: GPUComputePipeline): void;
|
|
3299
|
-
}
|
|
3300
|
-
|
|
3301
|
-
declare var GPUComputePassEncoder: {
|
|
3302
|
-
prototype: GPUComputePassEncoder;
|
|
3303
|
-
new(): GPUComputePassEncoder;
|
|
3304
|
-
};
|
|
3305
|
-
|
|
3306
|
-
/**
|
|
3307
|
-
* Available only in secure contexts.
|
|
3308
|
-
*
|
|
3309
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline)
|
|
3310
|
-
*/
|
|
3311
|
-
interface GPUComputePipeline extends GPUObjectBase, GPUPipelineBase {
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
|
-
declare var GPUComputePipeline: {
|
|
3315
|
-
prototype: GPUComputePipeline;
|
|
3316
|
-
new(): GPUComputePipeline;
|
|
3317
|
-
};
|
|
3318
|
-
|
|
3319
|
-
interface GPUDebugCommandsMixin {
|
|
3320
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/insertDebugMarker) */
|
|
3321
|
-
insertDebugMarker(markerLabel: string): void;
|
|
3322
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/popDebugGroup) */
|
|
3323
|
-
popDebugGroup(): void;
|
|
3324
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUCommandEncoder/pushDebugGroup) */
|
|
3325
|
-
pushDebugGroup(groupLabel: string): void;
|
|
3326
|
-
}
|
|
3327
|
-
|
|
3328
|
-
/**
|
|
3329
|
-
* Available only in secure contexts.
|
|
3330
|
-
*
|
|
3331
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice)
|
|
3332
|
-
*/
|
|
3333
|
-
interface GPUDevice extends EventTarget, GPUObjectBase {
|
|
3334
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/features) */
|
|
3335
|
-
readonly features: GPUSupportedFeatures;
|
|
3336
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/limits) */
|
|
3337
|
-
readonly limits: GPUSupportedLimits;
|
|
3338
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/lost) */
|
|
3339
|
-
readonly lost: Promise<GPUDeviceLostInfo>;
|
|
3340
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/queue) */
|
|
3341
|
-
readonly queue: GPUQueue;
|
|
3342
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroup) */
|
|
3343
|
-
createBindGroup(descriptor: GPUBindGroupDescriptor): GPUBindGroup;
|
|
3344
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBindGroupLayout) */
|
|
3345
|
-
createBindGroupLayout(descriptor: GPUBindGroupLayoutDescriptor): GPUBindGroupLayout;
|
|
3346
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createBuffer) */
|
|
3347
|
-
createBuffer(descriptor: GPUBufferDescriptor): GPUBuffer;
|
|
3348
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createCommandEncoder) */
|
|
3349
|
-
createCommandEncoder(descriptor?: GPUCommandEncoderDescriptor): GPUCommandEncoder;
|
|
3350
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipeline) */
|
|
3351
|
-
createComputePipeline(descriptor: GPUComputePipelineDescriptor): GPUComputePipeline;
|
|
3352
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createComputePipelineAsync) */
|
|
3353
|
-
createComputePipelineAsync(descriptor: GPUComputePipelineDescriptor): Promise<GPUComputePipeline>;
|
|
3354
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createPipelineLayout) */
|
|
3355
|
-
createPipelineLayout(descriptor: GPUPipelineLayoutDescriptor): GPUPipelineLayout;
|
|
3356
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createQuerySet) */
|
|
3357
|
-
createQuerySet(descriptor: GPUQuerySetDescriptor): GPUQuerySet;
|
|
3358
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderBundleEncoder) */
|
|
3359
|
-
createRenderBundleEncoder(descriptor: GPURenderBundleEncoderDescriptor): GPURenderBundleEncoder;
|
|
3360
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipeline) */
|
|
3361
|
-
createRenderPipeline(descriptor: GPURenderPipelineDescriptor): GPURenderPipeline;
|
|
3362
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createRenderPipelineAsync) */
|
|
3363
|
-
createRenderPipelineAsync(descriptor: GPURenderPipelineDescriptor): Promise<GPURenderPipeline>;
|
|
3364
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createSampler) */
|
|
3365
|
-
createSampler(descriptor?: GPUSamplerDescriptor): GPUSampler;
|
|
3366
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createShaderModule) */
|
|
3367
|
-
createShaderModule(descriptor: GPUShaderModuleDescriptor): GPUShaderModule;
|
|
3368
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/createTexture) */
|
|
3369
|
-
createTexture(descriptor: GPUTextureDescriptor): GPUTexture;
|
|
3370
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/destroy) */
|
|
3371
|
-
destroy(): void;
|
|
3372
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/importExternalTexture) */
|
|
3373
|
-
importExternalTexture(descriptor: GPUExternalTextureDescriptor): GPUExternalTexture;
|
|
3374
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/popErrorScope) */
|
|
3375
|
-
popErrorScope(): Promise<GPUError | null>;
|
|
3376
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDevice/pushErrorScope) */
|
|
3377
|
-
pushErrorScope(filter: GPUErrorFilter): void;
|
|
3378
|
-
}
|
|
3379
|
-
|
|
3380
|
-
declare var GPUDevice: {
|
|
3381
|
-
prototype: GPUDevice;
|
|
3382
|
-
new(): GPUDevice;
|
|
3383
|
-
};
|
|
3384
|
-
|
|
3385
|
-
/**
|
|
3386
|
-
* Available only in secure contexts.
|
|
3387
|
-
*
|
|
3388
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo)
|
|
3389
|
-
*/
|
|
3390
|
-
interface GPUDeviceLostInfo {
|
|
3391
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/message) */
|
|
3392
|
-
readonly message: string;
|
|
3393
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUDeviceLostInfo/reason) */
|
|
3394
|
-
readonly reason: GPUDeviceLostReason;
|
|
3395
|
-
}
|
|
3396
|
-
|
|
3397
|
-
declare var GPUDeviceLostInfo: {
|
|
3398
|
-
prototype: GPUDeviceLostInfo;
|
|
3399
|
-
new(): GPUDeviceLostInfo;
|
|
3400
|
-
};
|
|
3401
|
-
|
|
3402
2706
|
/**
|
|
3403
2707
|
* Available only in secure contexts.
|
|
3404
2708
|
*
|
|
@@ -3409,403 +2713,6 @@ interface GPUError {
|
|
|
3409
2713
|
readonly message: string;
|
|
3410
2714
|
}
|
|
3411
2715
|
|
|
3412
|
-
/**
|
|
3413
|
-
* Available only in secure contexts.
|
|
3414
|
-
*
|
|
3415
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUExternalTexture)
|
|
3416
|
-
*/
|
|
3417
|
-
interface GPUExternalTexture extends GPUObjectBase {
|
|
3418
|
-
}
|
|
3419
|
-
|
|
3420
|
-
declare var GPUExternalTexture: {
|
|
3421
|
-
prototype: GPUExternalTexture;
|
|
3422
|
-
new(): GPUExternalTexture;
|
|
3423
|
-
};
|
|
3424
|
-
|
|
3425
|
-
/**
|
|
3426
|
-
* Available only in secure contexts.
|
|
3427
|
-
*
|
|
3428
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUInternalError)
|
|
3429
|
-
*/
|
|
3430
|
-
interface GPUInternalError extends GPUError {
|
|
3431
|
-
}
|
|
3432
|
-
|
|
3433
|
-
declare var GPUInternalError: {
|
|
3434
|
-
prototype: GPUInternalError;
|
|
3435
|
-
new(message: string): GPUInternalError;
|
|
3436
|
-
};
|
|
3437
|
-
|
|
3438
|
-
interface GPUObjectBase {
|
|
3439
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUBindGroup/label) */
|
|
3440
|
-
label: string;
|
|
3441
|
-
}
|
|
3442
|
-
|
|
3443
|
-
/**
|
|
3444
|
-
* Available only in secure contexts.
|
|
3445
|
-
*
|
|
3446
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUOutOfMemoryError)
|
|
3447
|
-
*/
|
|
3448
|
-
interface GPUOutOfMemoryError extends GPUError {
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
|
-
declare var GPUOutOfMemoryError: {
|
|
3452
|
-
prototype: GPUOutOfMemoryError;
|
|
3453
|
-
new(message: string): GPUOutOfMemoryError;
|
|
3454
|
-
};
|
|
3455
|
-
|
|
3456
|
-
interface GPUPipelineBase {
|
|
3457
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUComputePipeline/getBindGroupLayout) */
|
|
3458
|
-
getBindGroupLayout(index: number): GPUBindGroupLayout;
|
|
3459
|
-
}
|
|
3460
|
-
|
|
3461
|
-
/**
|
|
3462
|
-
* Available only in secure contexts.
|
|
3463
|
-
*
|
|
3464
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
|
|
3465
|
-
*/
|
|
3466
|
-
interface GPUPipelineError extends DOMException {
|
|
3467
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError/reason) */
|
|
3468
|
-
readonly reason: GPUPipelineErrorReason;
|
|
3469
|
-
}
|
|
3470
|
-
|
|
3471
|
-
declare var GPUPipelineError: {
|
|
3472
|
-
prototype: GPUPipelineError;
|
|
3473
|
-
new(message: string, options: GPUPipelineErrorInit): GPUPipelineError;
|
|
3474
|
-
};
|
|
3475
|
-
|
|
3476
|
-
/**
|
|
3477
|
-
* Available only in secure contexts.
|
|
3478
|
-
*
|
|
3479
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineLayout)
|
|
3480
|
-
*/
|
|
3481
|
-
interface GPUPipelineLayout extends GPUObjectBase {
|
|
3482
|
-
}
|
|
3483
|
-
|
|
3484
|
-
declare var GPUPipelineLayout: {
|
|
3485
|
-
prototype: GPUPipelineLayout;
|
|
3486
|
-
new(): GPUPipelineLayout;
|
|
3487
|
-
};
|
|
3488
|
-
|
|
3489
|
-
/**
|
|
3490
|
-
* Available only in secure contexts.
|
|
3491
|
-
*
|
|
3492
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet)
|
|
3493
|
-
*/
|
|
3494
|
-
interface GPUQuerySet extends GPUObjectBase {
|
|
3495
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/count) */
|
|
3496
|
-
readonly count: GPUSize32Out;
|
|
3497
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/type) */
|
|
3498
|
-
readonly type: GPUQueryType;
|
|
3499
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQuerySet/destroy) */
|
|
3500
|
-
destroy(): void;
|
|
3501
|
-
}
|
|
3502
|
-
|
|
3503
|
-
declare var GPUQuerySet: {
|
|
3504
|
-
prototype: GPUQuerySet;
|
|
3505
|
-
new(): GPUQuerySet;
|
|
3506
|
-
};
|
|
3507
|
-
|
|
3508
|
-
/**
|
|
3509
|
-
* Available only in secure contexts.
|
|
3510
|
-
*
|
|
3511
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue)
|
|
3512
|
-
*/
|
|
3513
|
-
interface GPUQueue extends GPUObjectBase {
|
|
3514
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/copyExternalImageToTexture) */
|
|
3515
|
-
copyExternalImageToTexture(source: GPUCopyExternalImageSourceInfo, destination: GPUCopyExternalImageDestInfo, copySize: GPUExtent3D): void;
|
|
3516
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/onSubmittedWorkDone) */
|
|
3517
|
-
onSubmittedWorkDone(): Promise<void>;
|
|
3518
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/submit) */
|
|
3519
|
-
submit(commandBuffers: GPUCommandBuffer[]): void;
|
|
3520
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeBuffer) */
|
|
3521
|
-
writeBuffer(buffer: GPUBuffer, bufferOffset: GPUSize64, data: AllowSharedBufferSource, dataOffset?: GPUSize64, size?: GPUSize64): void;
|
|
3522
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUQueue/writeTexture) */
|
|
3523
|
-
writeTexture(destination: GPUTexelCopyTextureInfo, data: AllowSharedBufferSource, dataLayout: GPUTexelCopyBufferLayout, size: GPUExtent3D): void;
|
|
3524
|
-
}
|
|
3525
|
-
|
|
3526
|
-
declare var GPUQueue: {
|
|
3527
|
-
prototype: GPUQueue;
|
|
3528
|
-
new(): GPUQueue;
|
|
3529
|
-
};
|
|
3530
|
-
|
|
3531
|
-
/**
|
|
3532
|
-
* Available only in secure contexts.
|
|
3533
|
-
*
|
|
3534
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundle)
|
|
3535
|
-
*/
|
|
3536
|
-
interface GPURenderBundle extends GPUObjectBase {
|
|
3537
|
-
}
|
|
3538
|
-
|
|
3539
|
-
declare var GPURenderBundle: {
|
|
3540
|
-
prototype: GPURenderBundle;
|
|
3541
|
-
new(): GPURenderBundle;
|
|
3542
|
-
};
|
|
3543
|
-
|
|
3544
|
-
/**
|
|
3545
|
-
* Available only in secure contexts.
|
|
3546
|
-
*
|
|
3547
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder)
|
|
3548
|
-
*/
|
|
3549
|
-
interface GPURenderBundleEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
3550
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/finish) */
|
|
3551
|
-
finish(descriptor?: GPURenderBundleDescriptor): GPURenderBundle;
|
|
3552
|
-
}
|
|
3553
|
-
|
|
3554
|
-
declare var GPURenderBundleEncoder: {
|
|
3555
|
-
prototype: GPURenderBundleEncoder;
|
|
3556
|
-
new(): GPURenderBundleEncoder;
|
|
3557
|
-
};
|
|
3558
|
-
|
|
3559
|
-
interface GPURenderCommandsMixin {
|
|
3560
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/draw) */
|
|
3561
|
-
draw(vertexCount: GPUSize32, instanceCount?: GPUSize32, firstVertex?: GPUSize32, firstInstance?: GPUSize32): void;
|
|
3562
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexed) */
|
|
3563
|
-
drawIndexed(indexCount: GPUSize32, instanceCount?: GPUSize32, firstIndex?: GPUSize32, baseVertex?: GPUSignedOffset32, firstInstance?: GPUSize32): void;
|
|
3564
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect) */
|
|
3565
|
-
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
3566
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/drawIndirect) */
|
|
3567
|
-
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: GPUSize64): void;
|
|
3568
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer) */
|
|
3569
|
-
setIndexBuffer(buffer: GPUBuffer, indexFormat: GPUIndexFormat, offset?: GPUSize64, size?: GPUSize64): void;
|
|
3570
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setPipeline) */
|
|
3571
|
-
setPipeline(pipeline: GPURenderPipeline): void;
|
|
3572
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer) */
|
|
3573
|
-
setVertexBuffer(slot: GPUIndex32, buffer: GPUBuffer | null, offset?: GPUSize64, size?: GPUSize64): void;
|
|
3574
|
-
}
|
|
3575
|
-
|
|
3576
|
-
/**
|
|
3577
|
-
* Available only in secure contexts.
|
|
3578
|
-
*
|
|
3579
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder)
|
|
3580
|
-
*/
|
|
3581
|
-
interface GPURenderPassEncoder extends GPUBindingCommandsMixin, GPUDebugCommandsMixin, GPUObjectBase, GPURenderCommandsMixin {
|
|
3582
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery) */
|
|
3583
|
-
beginOcclusionQuery(queryIndex: GPUSize32): void;
|
|
3584
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/end) */
|
|
3585
|
-
end(): void;
|
|
3586
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery) */
|
|
3587
|
-
endOcclusionQuery(): void;
|
|
3588
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/executeBundles) */
|
|
3589
|
-
executeBundles(bundles: GPURenderBundle[]): void;
|
|
3590
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setBlendConstant) */
|
|
3591
|
-
setBlendConstant(color: GPUColor): void;
|
|
3592
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setScissorRect) */
|
|
3593
|
-
setScissorRect(x: GPUIntegerCoordinate, y: GPUIntegerCoordinate, width: GPUIntegerCoordinate, height: GPUIntegerCoordinate): void;
|
|
3594
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setStencilReference) */
|
|
3595
|
-
setStencilReference(reference: GPUStencilValue): void;
|
|
3596
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPassEncoder/setViewport) */
|
|
3597
|
-
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
3598
|
-
}
|
|
3599
|
-
|
|
3600
|
-
declare var GPURenderPassEncoder: {
|
|
3601
|
-
prototype: GPURenderPassEncoder;
|
|
3602
|
-
new(): GPURenderPassEncoder;
|
|
3603
|
-
};
|
|
3604
|
-
|
|
3605
|
-
/**
|
|
3606
|
-
* Available only in secure contexts.
|
|
3607
|
-
*
|
|
3608
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPURenderPipeline)
|
|
3609
|
-
*/
|
|
3610
|
-
interface GPURenderPipeline extends GPUObjectBase, GPUPipelineBase {
|
|
3611
|
-
}
|
|
3612
|
-
|
|
3613
|
-
declare var GPURenderPipeline: {
|
|
3614
|
-
prototype: GPURenderPipeline;
|
|
3615
|
-
new(): GPURenderPipeline;
|
|
3616
|
-
};
|
|
3617
|
-
|
|
3618
|
-
/**
|
|
3619
|
-
* Available only in secure contexts.
|
|
3620
|
-
*
|
|
3621
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSampler)
|
|
3622
|
-
*/
|
|
3623
|
-
interface GPUSampler extends GPUObjectBase {
|
|
3624
|
-
}
|
|
3625
|
-
|
|
3626
|
-
declare var GPUSampler: {
|
|
3627
|
-
prototype: GPUSampler;
|
|
3628
|
-
new(): GPUSampler;
|
|
3629
|
-
};
|
|
3630
|
-
|
|
3631
|
-
/**
|
|
3632
|
-
* Available only in secure contexts.
|
|
3633
|
-
*
|
|
3634
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule)
|
|
3635
|
-
*/
|
|
3636
|
-
interface GPUShaderModule extends GPUObjectBase {
|
|
3637
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUShaderModule/getCompilationInfo) */
|
|
3638
|
-
getCompilationInfo(): Promise<GPUCompilationInfo>;
|
|
3639
|
-
}
|
|
3640
|
-
|
|
3641
|
-
declare var GPUShaderModule: {
|
|
3642
|
-
prototype: GPUShaderModule;
|
|
3643
|
-
new(): GPUShaderModule;
|
|
3644
|
-
};
|
|
3645
|
-
|
|
3646
|
-
/**
|
|
3647
|
-
* Available only in secure contexts.
|
|
3648
|
-
*
|
|
3649
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedFeatures)
|
|
3650
|
-
*/
|
|
3651
|
-
interface GPUSupportedFeatures {
|
|
3652
|
-
forEach(callbackfn: (value: string, key: string, parent: GPUSupportedFeatures) => void, thisArg?: any): void;
|
|
3653
|
-
}
|
|
3654
|
-
|
|
3655
|
-
declare var GPUSupportedFeatures: {
|
|
3656
|
-
prototype: GPUSupportedFeatures;
|
|
3657
|
-
new(): GPUSupportedFeatures;
|
|
3658
|
-
};
|
|
3659
|
-
|
|
3660
|
-
/**
|
|
3661
|
-
* Available only in secure contexts.
|
|
3662
|
-
*
|
|
3663
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits)
|
|
3664
|
-
*/
|
|
3665
|
-
interface GPUSupportedLimits {
|
|
3666
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3667
|
-
readonly maxBindGroups: number;
|
|
3668
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3669
|
-
readonly maxBindGroupsPlusVertexBuffers: number;
|
|
3670
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3671
|
-
readonly maxBindingsPerBindGroup: number;
|
|
3672
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3673
|
-
readonly maxBufferSize: number;
|
|
3674
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3675
|
-
readonly maxColorAttachmentBytesPerSample: number;
|
|
3676
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3677
|
-
readonly maxColorAttachments: number;
|
|
3678
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3679
|
-
readonly maxComputeInvocationsPerWorkgroup: number;
|
|
3680
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3681
|
-
readonly maxComputeWorkgroupSizeX: number;
|
|
3682
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3683
|
-
readonly maxComputeWorkgroupSizeY: number;
|
|
3684
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3685
|
-
readonly maxComputeWorkgroupSizeZ: number;
|
|
3686
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3687
|
-
readonly maxComputeWorkgroupStorageSize: number;
|
|
3688
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3689
|
-
readonly maxComputeWorkgroupsPerDimension: number;
|
|
3690
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3691
|
-
readonly maxDynamicStorageBuffersPerPipelineLayout: number;
|
|
3692
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3693
|
-
readonly maxDynamicUniformBuffersPerPipelineLayout: number;
|
|
3694
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3695
|
-
readonly maxInterStageShaderVariables: number;
|
|
3696
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3697
|
-
readonly maxSampledTexturesPerShaderStage: number;
|
|
3698
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3699
|
-
readonly maxSamplersPerShaderStage: number;
|
|
3700
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3701
|
-
readonly maxStorageBufferBindingSize: number;
|
|
3702
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3703
|
-
readonly maxStorageBuffersPerShaderStage: number;
|
|
3704
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3705
|
-
readonly maxStorageTexturesPerShaderStage: number;
|
|
3706
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3707
|
-
readonly maxTextureArrayLayers: number;
|
|
3708
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3709
|
-
readonly maxTextureDimension1D: number;
|
|
3710
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3711
|
-
readonly maxTextureDimension2D: number;
|
|
3712
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3713
|
-
readonly maxTextureDimension3D: number;
|
|
3714
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3715
|
-
readonly maxUniformBufferBindingSize: number;
|
|
3716
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3717
|
-
readonly maxUniformBuffersPerShaderStage: number;
|
|
3718
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3719
|
-
readonly maxVertexAttributes: number;
|
|
3720
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3721
|
-
readonly maxVertexBufferArrayStride: number;
|
|
3722
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3723
|
-
readonly maxVertexBuffers: number;
|
|
3724
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3725
|
-
readonly minStorageBufferOffsetAlignment: number;
|
|
3726
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUSupportedLimits#instance_properties) */
|
|
3727
|
-
readonly minUniformBufferOffsetAlignment: number;
|
|
3728
|
-
}
|
|
3729
|
-
|
|
3730
|
-
declare var GPUSupportedLimits: {
|
|
3731
|
-
prototype: GPUSupportedLimits;
|
|
3732
|
-
new(): GPUSupportedLimits;
|
|
3733
|
-
};
|
|
3734
|
-
|
|
3735
|
-
/**
|
|
3736
|
-
* Available only in secure contexts.
|
|
3737
|
-
*
|
|
3738
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture)
|
|
3739
|
-
*/
|
|
3740
|
-
interface GPUTexture extends GPUObjectBase {
|
|
3741
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/depthOrArrayLayers) */
|
|
3742
|
-
readonly depthOrArrayLayers: GPUIntegerCoordinateOut;
|
|
3743
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/dimension) */
|
|
3744
|
-
readonly dimension: GPUTextureDimension;
|
|
3745
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/format) */
|
|
3746
|
-
readonly format: GPUTextureFormat;
|
|
3747
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/height) */
|
|
3748
|
-
readonly height: GPUIntegerCoordinateOut;
|
|
3749
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/mipLevelCount) */
|
|
3750
|
-
readonly mipLevelCount: GPUIntegerCoordinateOut;
|
|
3751
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/sampleCount) */
|
|
3752
|
-
readonly sampleCount: GPUSize32Out;
|
|
3753
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/usage) */
|
|
3754
|
-
readonly usage: GPUFlagsConstant;
|
|
3755
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/width) */
|
|
3756
|
-
readonly width: GPUIntegerCoordinateOut;
|
|
3757
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/createView) */
|
|
3758
|
-
createView(descriptor?: GPUTextureViewDescriptor): GPUTextureView;
|
|
3759
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTexture/destroy) */
|
|
3760
|
-
destroy(): void;
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3763
|
-
declare var GPUTexture: {
|
|
3764
|
-
prototype: GPUTexture;
|
|
3765
|
-
new(): GPUTexture;
|
|
3766
|
-
};
|
|
3767
|
-
|
|
3768
|
-
/**
|
|
3769
|
-
* Available only in secure contexts.
|
|
3770
|
-
*
|
|
3771
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUTextureView)
|
|
3772
|
-
*/
|
|
3773
|
-
interface GPUTextureView extends GPUObjectBase {
|
|
3774
|
-
}
|
|
3775
|
-
|
|
3776
|
-
declare var GPUTextureView: {
|
|
3777
|
-
prototype: GPUTextureView;
|
|
3778
|
-
new(): GPUTextureView;
|
|
3779
|
-
};
|
|
3780
|
-
|
|
3781
|
-
/**
|
|
3782
|
-
* Available only in secure contexts.
|
|
3783
|
-
*
|
|
3784
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent)
|
|
3785
|
-
*/
|
|
3786
|
-
interface GPUUncapturedErrorEvent extends Event {
|
|
3787
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUUncapturedErrorEvent/error) */
|
|
3788
|
-
readonly error: GPUError;
|
|
3789
|
-
}
|
|
3790
|
-
|
|
3791
|
-
declare var GPUUncapturedErrorEvent: {
|
|
3792
|
-
prototype: GPUUncapturedErrorEvent;
|
|
3793
|
-
new(type: string, gpuUncapturedErrorEventInitDict: GPUUncapturedErrorEventInit): GPUUncapturedErrorEvent;
|
|
3794
|
-
};
|
|
3795
|
-
|
|
3796
|
-
/**
|
|
3797
|
-
* Available only in secure contexts.
|
|
3798
|
-
*
|
|
3799
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUValidationError)
|
|
3800
|
-
*/
|
|
3801
|
-
interface GPUValidationError extends GPUError {
|
|
3802
|
-
}
|
|
3803
|
-
|
|
3804
|
-
declare var GPUValidationError: {
|
|
3805
|
-
prototype: GPUValidationError;
|
|
3806
|
-
new(message: string): GPUValidationError;
|
|
3807
|
-
};
|
|
3808
|
-
|
|
3809
2716
|
interface GenericTransformStream {
|
|
3810
2717
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
|
|
3811
2718
|
readonly readable: ReadableStream;
|
|
@@ -4804,15 +3711,6 @@ interface NavigatorConcurrentHardware {
|
|
|
4804
3711
|
readonly hardwareConcurrency: number;
|
|
4805
3712
|
}
|
|
4806
3713
|
|
|
4807
|
-
interface NavigatorGPU {
|
|
4808
|
-
/**
|
|
4809
|
-
* Available only in secure contexts.
|
|
4810
|
-
*
|
|
4811
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/gpu)
|
|
4812
|
-
*/
|
|
4813
|
-
readonly gpu: GPU;
|
|
4814
|
-
}
|
|
4815
|
-
|
|
4816
3714
|
interface NavigatorID {
|
|
4817
3715
|
/**
|
|
4818
3716
|
* @deprecated
|
|
@@ -6498,20 +5396,6 @@ interface WEBGL_multi_draw {
|
|
|
6498
5396
|
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
|
|
6499
5397
|
}
|
|
6500
5398
|
|
|
6501
|
-
/**
|
|
6502
|
-
* Available only in secure contexts.
|
|
6503
|
-
*
|
|
6504
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WGSLLanguageFeatures)
|
|
6505
|
-
*/
|
|
6506
|
-
interface WGSLLanguageFeatures {
|
|
6507
|
-
forEach(callbackfn: (value: string, key: string, parent: WGSLLanguageFeatures) => void, thisArg?: any): void;
|
|
6508
|
-
}
|
|
6509
|
-
|
|
6510
|
-
declare var WGSLLanguageFeatures: {
|
|
6511
|
-
prototype: WGSLLanguageFeatures;
|
|
6512
|
-
new(): WGSLLanguageFeatures;
|
|
6513
|
-
};
|
|
6514
|
-
|
|
6515
5399
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
|
|
6516
5400
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
6517
5401
|
}
|
|
@@ -9068,7 +7952,7 @@ declare var WorkerLocation: {
|
|
|
9068
7952
|
*
|
|
9069
7953
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
|
9070
7954
|
*/
|
|
9071
|
-
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware,
|
|
7955
|
+
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
9072
7956
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */
|
|
9073
7957
|
readonly mediaCapabilities: MediaCapabilities;
|
|
9074
7958
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */
|
|
@@ -9744,31 +8628,6 @@ type GLsizei = number;
|
|
|
9744
8628
|
type GLsizeiptr = number;
|
|
9745
8629
|
type GLuint = number;
|
|
9746
8630
|
type GLuint64 = number;
|
|
9747
|
-
type GPUBindingResource = GPUSampler | GPUTextureView | GPUBufferBinding | GPUExternalTexture;
|
|
9748
|
-
type GPUBufferDynamicOffset = number;
|
|
9749
|
-
type GPUBufferUsageFlags = number;
|
|
9750
|
-
type GPUColor = number[] | GPUColorDict;
|
|
9751
|
-
type GPUColorWriteFlags = number;
|
|
9752
|
-
type GPUCopyExternalImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
9753
|
-
type GPUDepthBias = number;
|
|
9754
|
-
type GPUExtent3D = GPUIntegerCoordinate[] | GPUExtent3DDict;
|
|
9755
|
-
type GPUFlagsConstant = number;
|
|
9756
|
-
type GPUIndex32 = number;
|
|
9757
|
-
type GPUIntegerCoordinate = number;
|
|
9758
|
-
type GPUIntegerCoordinateOut = number;
|
|
9759
|
-
type GPUMapModeFlags = number;
|
|
9760
|
-
type GPUOrigin2D = GPUIntegerCoordinate[] | GPUOrigin2DDict;
|
|
9761
|
-
type GPUOrigin3D = GPUIntegerCoordinate[] | GPUOrigin3DDict;
|
|
9762
|
-
type GPUPipelineConstantValue = number;
|
|
9763
|
-
type GPUSampleMask = number;
|
|
9764
|
-
type GPUShaderStageFlags = number;
|
|
9765
|
-
type GPUSignedOffset32 = number;
|
|
9766
|
-
type GPUSize32 = number;
|
|
9767
|
-
type GPUSize32Out = number;
|
|
9768
|
-
type GPUSize64 = number;
|
|
9769
|
-
type GPUSize64Out = number;
|
|
9770
|
-
type GPUStencilValue = number;
|
|
9771
|
-
type GPUTextureUsageFlags = number;
|
|
9772
8631
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
9773
8632
|
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
9774
8633
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
@@ -9776,7 +8635,7 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
|
9776
8635
|
type Int32List = Int32Array | GLint[];
|
|
9777
8636
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
9778
8637
|
type NamedCurve = string;
|
|
9779
|
-
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext
|
|
8638
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
9780
8639
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
9781
8640
|
type PerformanceEntryList = PerformanceEntry[];
|
|
9782
8641
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
@@ -9811,40 +8670,6 @@ type FileSystemHandleKind = "directory" | "file";
|
|
|
9811
8670
|
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
|
|
9812
8671
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
9813
8672
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
9814
|
-
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
9815
|
-
type GPUAutoLayoutMode = "auto";
|
|
9816
|
-
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";
|
|
9817
|
-
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
9818
|
-
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
9819
|
-
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
9820
|
-
type GPUCanvasAlphaMode = "opaque" | "premultiplied";
|
|
9821
|
-
type GPUCanvasToneMappingMode = "extended" | "standard";
|
|
9822
|
-
type GPUCompareFunction = "always" | "equal" | "greater" | "greater-equal" | "less" | "less-equal" | "never" | "not-equal";
|
|
9823
|
-
type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
9824
|
-
type GPUCullMode = "back" | "front" | "none";
|
|
9825
|
-
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
9826
|
-
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
9827
|
-
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";
|
|
9828
|
-
type GPUFilterMode = "linear" | "nearest";
|
|
9829
|
-
type GPUFrontFace = "ccw" | "cw";
|
|
9830
|
-
type GPUIndexFormat = "uint16" | "uint32";
|
|
9831
|
-
type GPULoadOp = "clear" | "load";
|
|
9832
|
-
type GPUMipmapFilterMode = "linear" | "nearest";
|
|
9833
|
-
type GPUPipelineErrorReason = "internal" | "validation";
|
|
9834
|
-
type GPUPowerPreference = "high-performance" | "low-power";
|
|
9835
|
-
type GPUPrimitiveTopology = "line-list" | "line-strip" | "point-list" | "triangle-list" | "triangle-strip";
|
|
9836
|
-
type GPUQueryType = "occlusion" | "timestamp";
|
|
9837
|
-
type GPUSamplerBindingType = "comparison" | "filtering" | "non-filtering";
|
|
9838
|
-
type GPUStencilOperation = "decrement-clamp" | "decrement-wrap" | "increment-clamp" | "increment-wrap" | "invert" | "keep" | "replace" | "zero";
|
|
9839
|
-
type GPUStorageTextureAccess = "read-only" | "read-write" | "write-only";
|
|
9840
|
-
type GPUStoreOp = "discard" | "store";
|
|
9841
|
-
type GPUTextureAspect = "all" | "depth-only" | "stencil-only";
|
|
9842
|
-
type GPUTextureDimension = "1d" | "2d" | "3d";
|
|
9843
|
-
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";
|
|
9844
|
-
type GPUTextureSampleType = "depth" | "float" | "sint" | "uint" | "unfilterable-float";
|
|
9845
|
-
type GPUTextureViewDimension = "1d" | "2d" | "2d-array" | "3d" | "cube" | "cube-array";
|
|
9846
|
-
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";
|
|
9847
|
-
type GPUVertexStepMode = "instance" | "vertex";
|
|
9848
8673
|
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";
|
|
9849
8674
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
9850
8675
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|