@webref/idl 3.10.0 → 3.11.2
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/{mediacapture-handle-identity.idl → capture-handle-identity.idl} +0 -10
- package/conversion-measurement-api.idl +4 -23
- package/cssom-view.idl +0 -1
- package/fetch.idl +1 -0
- package/html.idl +1 -1
- package/media-source.idl +10 -6
- package/package.json +2 -2
- package/screen-capture.idl +6 -0
- package/touch-events.idl +1 -0
- package/visual-viewport.idl +1 -1
- package/webgl1.idl +2 -0
- package/webgpu.idl +78 -63
- package/webnn.idl +4 -1
- package/webrtc-encoded-transform.idl +1 -1
|
@@ -22,16 +22,6 @@ partial interface MediaStreamTrack {
|
|
|
22
22
|
CaptureHandle? getCaptureHandle();
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
[Exposed=Window]
|
|
26
|
-
interface CaptureHandleChangeEvent : Event {
|
|
27
|
-
constructor(optional CaptureHandleChangeEventInit init = {});
|
|
28
|
-
[SameObject] CaptureHandle captureHandle();
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
dictionary CaptureHandleChangeEventInit : EventInit {
|
|
32
|
-
CaptureHandle captureHandle;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
25
|
partial interface MediaStreamTrack {
|
|
36
26
|
attribute EventHandler oncapturehandlechange;
|
|
37
27
|
};
|
|
@@ -1,31 +1,12 @@
|
|
|
1
1
|
// GENERATED CONTENT - DO NOT EDIT
|
|
2
2
|
// Content was automatically extracted by Reffy into webref
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
|
-
// Source: Attribution Reporting (https://wicg.github.io/
|
|
4
|
+
// Source: Attribution Reporting (https://wicg.github.io/attribution-reporting-api/)
|
|
5
5
|
|
|
6
6
|
partial interface HTMLAnchorElement {
|
|
7
|
-
[CEReactions] attribute USVString
|
|
8
|
-
[CEReactions] attribute DOMString attributionSourceEventId;
|
|
9
|
-
[CEReactions] attribute USVString attributionReportTo;
|
|
10
|
-
[CEReactions] attribute long long attributionExpiry;
|
|
11
|
-
[CEReactions] attribute long long attributionSourcePriority;
|
|
12
|
-
[CEReactions] attribute boolean registerAttributionSource;
|
|
7
|
+
[CEReactions] attribute USVString attributionSrc;
|
|
13
8
|
};
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
required DOMString attributionSourceEventId;
|
|
18
|
-
USVString attributionReportTo;
|
|
19
|
-
long long attributionExpiry;
|
|
20
|
-
long long attributionSourcePriority;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
[Exposed=Window, SecureContext]
|
|
24
|
-
interface AttributionReporting {
|
|
25
|
-
Promise<undefined> registerAttributionSource(AttributionSourceParams params);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
[SecureContext]
|
|
29
|
-
partial interface Window {
|
|
30
|
-
readonly attribute AttributionReporting attributionReporting;
|
|
10
|
+
partial interface HTMLImageElement {
|
|
11
|
+
[CEReactions] attribute USVString attributionSrc;
|
|
31
12
|
};
|
package/cssom-view.idl
CHANGED
package/fetch.idl
CHANGED
|
@@ -83,6 +83,7 @@ enum RequestRedirect { "follow", "error", "manual" };
|
|
|
83
83
|
|
|
84
84
|
[NewObject] static Response error();
|
|
85
85
|
[NewObject] static Response redirect(USVString url, optional unsigned short status = 302);
|
|
86
|
+
[NewObject] static Response json(any data, optional ResponseInit init = {});
|
|
86
87
|
|
|
87
88
|
readonly attribute ResponseType type;
|
|
88
89
|
|
package/html.idl
CHANGED
|
@@ -192,7 +192,7 @@ interface HTMLLinkElement : HTMLElement {
|
|
|
192
192
|
[CEReactions] attribute USVString href;
|
|
193
193
|
[CEReactions] attribute DOMString? crossOrigin;
|
|
194
194
|
[CEReactions] attribute DOMString rel;
|
|
195
|
-
[CEReactions] attribute DOMString as;
|
|
195
|
+
[CEReactions] attribute DOMString as;
|
|
196
196
|
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
|
197
197
|
[CEReactions] attribute DOMString media;
|
|
198
198
|
[CEReactions] attribute DOMString integrity;
|
package/media-source.idl
CHANGED
|
@@ -25,14 +25,18 @@ interface MediaSource : EventTarget {
|
|
|
25
25
|
attribute EventHandler onsourceended;
|
|
26
26
|
attribute EventHandler onsourceclose;
|
|
27
27
|
static readonly attribute boolean canConstructInDedicatedWorker;
|
|
28
|
-
SourceBuffer
|
|
29
|
-
undefined
|
|
30
|
-
undefined
|
|
31
|
-
undefined
|
|
32
|
-
undefined
|
|
33
|
-
|
|
28
|
+
SourceBuffer addSourceBuffer (DOMString type);
|
|
29
|
+
undefined removeSourceBuffer (SourceBuffer sourceBuffer);
|
|
30
|
+
undefined endOfStream (optional EndOfStreamError error);
|
|
31
|
+
undefined setLiveSeekableRange (double start, double end);
|
|
32
|
+
undefined clearLiveSeekableRange ();
|
|
33
|
+
MediaSourceHandle getHandle ();
|
|
34
|
+
static boolean isTypeSupported (DOMString type);
|
|
34
35
|
};
|
|
35
36
|
|
|
37
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
38
|
+
interface MediaSourceHandle {};
|
|
39
|
+
|
|
36
40
|
enum AppendMode {
|
|
37
41
|
"segments",
|
|
38
42
|
"sequence"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webref/idl",
|
|
3
3
|
"description": "Web IDL definitions of the web platform",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.11.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/w3c/webref.git"
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"main": "index.js",
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"webidl2": "^24.2.
|
|
15
|
+
"webidl2": "^24.2.2"
|
|
16
16
|
}
|
|
17
17
|
}
|
package/screen-capture.idl
CHANGED
|
@@ -12,10 +12,16 @@ enum SelfCapturePreferenceEnum {
|
|
|
12
12
|
"exclude"
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
enum SystemAudioPreferenceEnum {
|
|
16
|
+
"include",
|
|
17
|
+
"exclude"
|
|
18
|
+
};
|
|
19
|
+
|
|
15
20
|
dictionary DisplayMediaStreamConstraints {
|
|
16
21
|
(boolean or MediaTrackConstraints) video = true;
|
|
17
22
|
(boolean or MediaTrackConstraints) audio = false;
|
|
18
23
|
SelfCapturePreferenceEnum selfBrowserSurface;
|
|
24
|
+
SystemAudioPreferenceEnum systemAudio;
|
|
19
25
|
};
|
|
20
26
|
|
|
21
27
|
partial dictionary MediaTrackSupportedConstraints {
|
package/touch-events.idl
CHANGED
|
@@ -68,6 +68,7 @@ interface TouchEvent : UIEvent {
|
|
|
68
68
|
readonly attribute boolean metaKey;
|
|
69
69
|
readonly attribute boolean ctrlKey;
|
|
70
70
|
readonly attribute boolean shiftKey;
|
|
71
|
+
getter boolean getModifierState (DOMString keyArg);
|
|
71
72
|
};
|
|
72
73
|
|
|
73
74
|
partial interface mixin GlobalEventHandlers {
|
package/visual-viewport.idl
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Source: Visual Viewport API (https://wicg.github.io/visual-viewport/)
|
|
5
5
|
|
|
6
6
|
partial interface Window {
|
|
7
|
-
[SameObject, Replaceable] readonly attribute VisualViewport visualViewport;
|
|
7
|
+
[SameObject, Replaceable] readonly attribute VisualViewport? visualViewport;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
[Exposed=Window]
|
package/webgl1.idl
CHANGED
|
@@ -516,6 +516,8 @@ interface mixin WebGLRenderingContextBase
|
|
|
516
516
|
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
|
|
517
517
|
readonly attribute GLsizei drawingBufferWidth;
|
|
518
518
|
readonly attribute GLsizei drawingBufferHeight;
|
|
519
|
+
attribute PredefinedColorSpace drawingBufferColorSpace;
|
|
520
|
+
attribute PredefinedColorSpace unpackColorSpace;
|
|
519
521
|
|
|
520
522
|
[WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
|
|
521
523
|
[WebGLHandlesContextLoss] boolean isContextLost();
|
package/webgpu.idl
CHANGED
|
@@ -33,6 +33,7 @@ interface GPUSupportedLimits {
|
|
|
33
33
|
readonly attribute unsigned long maxVertexAttributes;
|
|
34
34
|
readonly attribute unsigned long maxVertexBufferArrayStride;
|
|
35
35
|
readonly attribute unsigned long maxInterStageShaderComponents;
|
|
36
|
+
readonly attribute unsigned long maxInterStageShaderVariables;
|
|
36
37
|
readonly attribute unsigned long maxComputeWorkgroupStorageSize;
|
|
37
38
|
readonly attribute unsigned long maxComputeInvocationsPerWorkgroup;
|
|
38
39
|
readonly attribute unsigned long maxComputeWorkgroupSizeX;
|
|
@@ -46,8 +47,16 @@ interface GPUSupportedFeatures {
|
|
|
46
47
|
readonly setlike<DOMString>;
|
|
47
48
|
};
|
|
48
49
|
|
|
50
|
+
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
51
|
+
interface GPUAdapterInfo {
|
|
52
|
+
readonly attribute DOMString vendor;
|
|
53
|
+
readonly attribute DOMString architecture;
|
|
54
|
+
readonly attribute DOMString device;
|
|
55
|
+
readonly attribute DOMString description;
|
|
56
|
+
};
|
|
57
|
+
|
|
49
58
|
enum GPUPredefinedColorSpace {
|
|
50
|
-
"srgb"
|
|
59
|
+
"srgb"
|
|
51
60
|
};
|
|
52
61
|
|
|
53
62
|
interface mixin NavigatorGPU {
|
|
@@ -59,6 +68,7 @@ WorkerNavigator includes NavigatorGPU;
|
|
|
59
68
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
60
69
|
interface GPU {
|
|
61
70
|
Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {});
|
|
71
|
+
GPUTextureFormat getPreferredCanvasFormat();
|
|
62
72
|
};
|
|
63
73
|
|
|
64
74
|
dictionary GPURequestAdapterOptions {
|
|
@@ -68,17 +78,17 @@ dictionary GPURequestAdapterOptions {
|
|
|
68
78
|
|
|
69
79
|
enum GPUPowerPreference {
|
|
70
80
|
"low-power",
|
|
71
|
-
"high-performance"
|
|
81
|
+
"high-performance"
|
|
72
82
|
};
|
|
73
83
|
|
|
74
84
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
75
85
|
interface GPUAdapter {
|
|
76
|
-
readonly attribute DOMString name;
|
|
77
86
|
[SameObject] readonly attribute GPUSupportedFeatures features;
|
|
78
87
|
[SameObject] readonly attribute GPUSupportedLimits limits;
|
|
79
88
|
readonly attribute boolean isFallbackAdapter;
|
|
80
89
|
|
|
81
90
|
Promise<GPUDevice> requestDevice(optional GPUDeviceDescriptor descriptor = {});
|
|
91
|
+
Promise<GPUAdapterInfo> requestAdapterInfo(optional sequence<DOMString> unmaskHints = []);
|
|
82
92
|
};
|
|
83
93
|
|
|
84
94
|
dictionary GPUDeviceDescriptor : GPUObjectDescriptorBase {
|
|
@@ -97,6 +107,7 @@ enum GPUFeatureName {
|
|
|
97
107
|
"timestamp-query",
|
|
98
108
|
"indirect-first-instance",
|
|
99
109
|
"shader-f16",
|
|
110
|
+
"bgra8unorm-storage"
|
|
100
111
|
};
|
|
101
112
|
|
|
102
113
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
@@ -189,7 +200,7 @@ dictionary GPUTextureDescriptor : GPUObjectDescriptorBase {
|
|
|
189
200
|
enum GPUTextureDimension {
|
|
190
201
|
"1d",
|
|
191
202
|
"2d",
|
|
192
|
-
"3d"
|
|
203
|
+
"3d"
|
|
193
204
|
};
|
|
194
205
|
|
|
195
206
|
typedef [EnforceRange] unsigned long GPUTextureUsageFlags;
|
|
@@ -223,13 +234,13 @@ enum GPUTextureViewDimension {
|
|
|
223
234
|
"2d-array",
|
|
224
235
|
"cube",
|
|
225
236
|
"cube-array",
|
|
226
|
-
"3d"
|
|
237
|
+
"3d"
|
|
227
238
|
};
|
|
228
239
|
|
|
229
240
|
enum GPUTextureAspect {
|
|
230
241
|
"all",
|
|
231
242
|
"stencil-only",
|
|
232
|
-
"depth-only"
|
|
243
|
+
"depth-only"
|
|
233
244
|
};
|
|
234
245
|
|
|
235
246
|
enum GPUTextureFormat {
|
|
@@ -352,7 +363,7 @@ enum GPUTextureFormat {
|
|
|
352
363
|
"astc-12x10-unorm",
|
|
353
364
|
"astc-12x10-unorm-srgb",
|
|
354
365
|
"astc-12x12-unorm",
|
|
355
|
-
"astc-12x12-unorm-srgb"
|
|
366
|
+
"astc-12x12-unorm-srgb"
|
|
356
367
|
};
|
|
357
368
|
|
|
358
369
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
@@ -387,17 +398,17 @@ dictionary GPUSamplerDescriptor : GPUObjectDescriptorBase {
|
|
|
387
398
|
enum GPUAddressMode {
|
|
388
399
|
"clamp-to-edge",
|
|
389
400
|
"repeat",
|
|
390
|
-
"mirror-repeat"
|
|
401
|
+
"mirror-repeat"
|
|
391
402
|
};
|
|
392
403
|
|
|
393
404
|
enum GPUFilterMode {
|
|
394
405
|
"nearest",
|
|
395
|
-
"linear"
|
|
406
|
+
"linear"
|
|
396
407
|
};
|
|
397
408
|
|
|
398
409
|
enum GPUMipmapFilterMode {
|
|
399
410
|
"nearest",
|
|
400
|
-
"linear"
|
|
411
|
+
"linear"
|
|
401
412
|
};
|
|
402
413
|
|
|
403
414
|
enum GPUCompareFunction {
|
|
@@ -408,7 +419,7 @@ enum GPUCompareFunction {
|
|
|
408
419
|
"greater",
|
|
409
420
|
"not-equal",
|
|
410
421
|
"greater-equal",
|
|
411
|
-
"always"
|
|
422
|
+
"always"
|
|
412
423
|
};
|
|
413
424
|
|
|
414
425
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
@@ -420,14 +431,6 @@ dictionary GPUBindGroupLayoutDescriptor : GPUObjectDescriptorBase {
|
|
|
420
431
|
required sequence<GPUBindGroupLayoutEntry> entries;
|
|
421
432
|
};
|
|
422
433
|
|
|
423
|
-
typedef [EnforceRange] unsigned long GPUShaderStageFlags;
|
|
424
|
-
[Exposed=(Window, DedicatedWorker)]
|
|
425
|
-
namespace GPUShaderStage {
|
|
426
|
-
const GPUFlagsConstant VERTEX = 0x1;
|
|
427
|
-
const GPUFlagsConstant FRAGMENT = 0x2;
|
|
428
|
-
const GPUFlagsConstant COMPUTE = 0x4;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
434
|
dictionary GPUBindGroupLayoutEntry {
|
|
432
435
|
required GPUIndex32 binding;
|
|
433
436
|
required GPUShaderStageFlags visibility;
|
|
@@ -439,10 +442,18 @@ dictionary GPUBindGroupLayoutEntry {
|
|
|
439
442
|
GPUExternalTextureBindingLayout externalTexture;
|
|
440
443
|
};
|
|
441
444
|
|
|
445
|
+
typedef [EnforceRange] unsigned long GPUShaderStageFlags;
|
|
446
|
+
[Exposed=(Window, DedicatedWorker)]
|
|
447
|
+
namespace GPUShaderStage {
|
|
448
|
+
const GPUFlagsConstant VERTEX = 0x1;
|
|
449
|
+
const GPUFlagsConstant FRAGMENT = 0x2;
|
|
450
|
+
const GPUFlagsConstant COMPUTE = 0x4;
|
|
451
|
+
};
|
|
452
|
+
|
|
442
453
|
enum GPUBufferBindingType {
|
|
443
454
|
"uniform",
|
|
444
455
|
"storage",
|
|
445
|
-
"read-only-storage"
|
|
456
|
+
"read-only-storage"
|
|
446
457
|
};
|
|
447
458
|
|
|
448
459
|
dictionary GPUBufferBindingLayout {
|
|
@@ -454,7 +465,7 @@ dictionary GPUBufferBindingLayout {
|
|
|
454
465
|
enum GPUSamplerBindingType {
|
|
455
466
|
"filtering",
|
|
456
467
|
"non-filtering",
|
|
457
|
-
"comparison"
|
|
468
|
+
"comparison"
|
|
458
469
|
};
|
|
459
470
|
|
|
460
471
|
dictionary GPUSamplerBindingLayout {
|
|
@@ -466,7 +477,7 @@ enum GPUTextureSampleType {
|
|
|
466
477
|
"unfilterable-float",
|
|
467
478
|
"depth",
|
|
468
479
|
"sint",
|
|
469
|
-
"uint"
|
|
480
|
+
"uint"
|
|
470
481
|
};
|
|
471
482
|
|
|
472
483
|
dictionary GPUTextureBindingLayout {
|
|
@@ -476,7 +487,7 @@ dictionary GPUTextureBindingLayout {
|
|
|
476
487
|
};
|
|
477
488
|
|
|
478
489
|
enum GPUStorageTextureAccess {
|
|
479
|
-
"write-only"
|
|
490
|
+
"write-only"
|
|
480
491
|
};
|
|
481
492
|
|
|
482
493
|
dictionary GPUStorageTextureBindingLayout {
|
|
@@ -526,20 +537,20 @@ interface GPUShaderModule {
|
|
|
526
537
|
};
|
|
527
538
|
GPUShaderModule includes GPUObjectBase;
|
|
528
539
|
|
|
529
|
-
dictionary GPUShaderModuleCompilationHint {
|
|
530
|
-
required GPUPipelineLayout layout;
|
|
531
|
-
};
|
|
532
|
-
|
|
533
540
|
dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
|
|
534
541
|
required USVString code;
|
|
535
542
|
object sourceMap;
|
|
536
543
|
record<USVString, GPUShaderModuleCompilationHint> hints;
|
|
537
544
|
};
|
|
538
545
|
|
|
546
|
+
dictionary GPUShaderModuleCompilationHint {
|
|
547
|
+
(GPUPipelineLayout or GPUAutoLayoutMode) layout;
|
|
548
|
+
};
|
|
549
|
+
|
|
539
550
|
enum GPUCompilationMessageType {
|
|
540
551
|
"error",
|
|
541
552
|
"warning",
|
|
542
|
-
"info"
|
|
553
|
+
"info"
|
|
543
554
|
};
|
|
544
555
|
|
|
545
556
|
[Exposed=(Window, DedicatedWorker), Serializable, SecureContext]
|
|
@@ -557,12 +568,16 @@ interface GPUCompilationInfo {
|
|
|
557
568
|
readonly attribute FrozenArray<GPUCompilationMessage> messages;
|
|
558
569
|
};
|
|
559
570
|
|
|
571
|
+
enum GPUAutoLayoutMode {
|
|
572
|
+
"auto"
|
|
573
|
+
};
|
|
574
|
+
|
|
560
575
|
dictionary GPUPipelineDescriptorBase : GPUObjectDescriptorBase {
|
|
561
|
-
GPUPipelineLayout layout;
|
|
576
|
+
required (GPUPipelineLayout or GPUAutoLayoutMode) layout;
|
|
562
577
|
};
|
|
563
578
|
|
|
564
579
|
interface mixin GPUPipelineBase {
|
|
565
|
-
GPUBindGroupLayout getBindGroupLayout(unsigned long index);
|
|
580
|
+
[NewObject] GPUBindGroupLayout getBindGroupLayout(unsigned long index);
|
|
566
581
|
};
|
|
567
582
|
|
|
568
583
|
dictionary GPUProgrammableStage {
|
|
@@ -597,14 +612,6 @@ dictionary GPURenderPipelineDescriptor : GPUPipelineDescriptorBase {
|
|
|
597
612
|
GPUFragmentState fragment;
|
|
598
613
|
};
|
|
599
614
|
|
|
600
|
-
enum GPUPrimitiveTopology {
|
|
601
|
-
"point-list",
|
|
602
|
-
"line-list",
|
|
603
|
-
"line-strip",
|
|
604
|
-
"triangle-list",
|
|
605
|
-
"triangle-strip",
|
|
606
|
-
};
|
|
607
|
-
|
|
608
615
|
dictionary GPUPrimitiveState {
|
|
609
616
|
GPUPrimitiveTopology topology = "triangle-list";
|
|
610
617
|
GPUIndexFormat stripIndexFormat;
|
|
@@ -615,15 +622,23 @@ dictionary GPUPrimitiveState {
|
|
|
615
622
|
boolean unclippedDepth = false;
|
|
616
623
|
};
|
|
617
624
|
|
|
625
|
+
enum GPUPrimitiveTopology {
|
|
626
|
+
"point-list",
|
|
627
|
+
"line-list",
|
|
628
|
+
"line-strip",
|
|
629
|
+
"triangle-list",
|
|
630
|
+
"triangle-strip"
|
|
631
|
+
};
|
|
632
|
+
|
|
618
633
|
enum GPUFrontFace {
|
|
619
634
|
"ccw",
|
|
620
|
-
"cw"
|
|
635
|
+
"cw"
|
|
621
636
|
};
|
|
622
637
|
|
|
623
638
|
enum GPUCullMode {
|
|
624
639
|
"none",
|
|
625
640
|
"front",
|
|
626
|
-
"back"
|
|
641
|
+
"back"
|
|
627
642
|
};
|
|
628
643
|
|
|
629
644
|
dictionary GPUMultisampleState {
|
|
@@ -677,7 +692,7 @@ enum GPUBlendFactor {
|
|
|
677
692
|
"one-minus-dst-alpha",
|
|
678
693
|
"src-alpha-saturated",
|
|
679
694
|
"constant",
|
|
680
|
-
"one-minus-constant"
|
|
695
|
+
"one-minus-constant"
|
|
681
696
|
};
|
|
682
697
|
|
|
683
698
|
enum GPUBlendOperation {
|
|
@@ -685,7 +700,7 @@ enum GPUBlendOperation {
|
|
|
685
700
|
"subtract",
|
|
686
701
|
"reverse-subtract",
|
|
687
702
|
"min",
|
|
688
|
-
"max"
|
|
703
|
+
"max"
|
|
689
704
|
};
|
|
690
705
|
|
|
691
706
|
dictionary GPUDepthStencilState {
|
|
@@ -720,12 +735,12 @@ enum GPUStencilOperation {
|
|
|
720
735
|
"increment-clamp",
|
|
721
736
|
"decrement-clamp",
|
|
722
737
|
"increment-wrap",
|
|
723
|
-
"decrement-wrap"
|
|
738
|
+
"decrement-wrap"
|
|
724
739
|
};
|
|
725
740
|
|
|
726
741
|
enum GPUIndexFormat {
|
|
727
742
|
"uint16",
|
|
728
|
-
"uint32"
|
|
743
|
+
"uint32"
|
|
729
744
|
};
|
|
730
745
|
|
|
731
746
|
enum GPUVertexFormat {
|
|
@@ -758,12 +773,12 @@ enum GPUVertexFormat {
|
|
|
758
773
|
"sint32",
|
|
759
774
|
"sint32x2",
|
|
760
775
|
"sint32x3",
|
|
761
|
-
"sint32x4"
|
|
776
|
+
"sint32x4"
|
|
762
777
|
};
|
|
763
778
|
|
|
764
779
|
enum GPUVertexStepMode {
|
|
765
780
|
"vertex",
|
|
766
|
-
"instance"
|
|
781
|
+
"instance"
|
|
767
782
|
};
|
|
768
783
|
|
|
769
784
|
dictionary GPUVertexState : GPUProgrammableStage {
|
|
@@ -903,7 +918,7 @@ GPUComputePassEncoder includes GPUBindingCommandsMixin;
|
|
|
903
918
|
|
|
904
919
|
enum GPUComputePassTimestampLocation {
|
|
905
920
|
"beginning",
|
|
906
|
-
"end"
|
|
921
|
+
"end"
|
|
907
922
|
};
|
|
908
923
|
|
|
909
924
|
dictionary GPUComputePassTimestampWrite {
|
|
@@ -944,7 +959,7 @@ GPURenderPassEncoder includes GPURenderCommandsMixin;
|
|
|
944
959
|
|
|
945
960
|
enum GPURenderPassTimestampLocation {
|
|
946
961
|
"beginning",
|
|
947
|
-
"end"
|
|
962
|
+
"end"
|
|
948
963
|
};
|
|
949
964
|
|
|
950
965
|
dictionary GPURenderPassTimestampWrite {
|
|
@@ -987,12 +1002,12 @@ dictionary GPURenderPassDepthStencilAttachment {
|
|
|
987
1002
|
|
|
988
1003
|
enum GPULoadOp {
|
|
989
1004
|
"load",
|
|
990
|
-
"clear"
|
|
1005
|
+
"clear"
|
|
991
1006
|
};
|
|
992
1007
|
|
|
993
1008
|
enum GPUStoreOp {
|
|
994
1009
|
"store",
|
|
995
|
-
"discard"
|
|
1010
|
+
"discard"
|
|
996
1011
|
};
|
|
997
1012
|
|
|
998
1013
|
dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
|
|
@@ -1083,7 +1098,7 @@ dictionary GPUQuerySetDescriptor : GPUObjectDescriptorBase {
|
|
|
1083
1098
|
|
|
1084
1099
|
enum GPUQueryType {
|
|
1085
1100
|
"occlusion",
|
|
1086
|
-
"timestamp"
|
|
1101
|
+
"timestamp"
|
|
1087
1102
|
};
|
|
1088
1103
|
|
|
1089
1104
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
@@ -1093,13 +1108,12 @@ interface GPUCanvasContext {
|
|
|
1093
1108
|
undefined configure(GPUCanvasConfiguration configuration);
|
|
1094
1109
|
undefined unconfigure();
|
|
1095
1110
|
|
|
1096
|
-
GPUTextureFormat getPreferredFormat(GPUAdapter adapter);
|
|
1097
1111
|
GPUTexture getCurrentTexture();
|
|
1098
1112
|
};
|
|
1099
1113
|
|
|
1100
|
-
enum
|
|
1114
|
+
enum GPUCanvasAlphaMode {
|
|
1101
1115
|
"opaque",
|
|
1102
|
-
"premultiplied"
|
|
1116
|
+
"premultiplied"
|
|
1103
1117
|
};
|
|
1104
1118
|
|
|
1105
1119
|
dictionary GPUCanvasConfiguration {
|
|
@@ -1108,12 +1122,11 @@ dictionary GPUCanvasConfiguration {
|
|
|
1108
1122
|
GPUTextureUsageFlags usage = 0x10; // GPUTextureUsage.RENDER_ATTACHMENT
|
|
1109
1123
|
sequence<GPUTextureFormat> viewFormats = [];
|
|
1110
1124
|
GPUPredefinedColorSpace colorSpace = "srgb";
|
|
1111
|
-
|
|
1112
|
-
GPUExtent3D size;
|
|
1125
|
+
GPUCanvasAlphaMode alphaMode = "opaque";
|
|
1113
1126
|
};
|
|
1114
1127
|
|
|
1115
1128
|
enum GPUDeviceLostReason {
|
|
1116
|
-
"destroyed"
|
|
1129
|
+
"destroyed"
|
|
1117
1130
|
};
|
|
1118
1131
|
|
|
1119
1132
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
@@ -1128,21 +1141,23 @@ partial interface GPUDevice {
|
|
|
1128
1141
|
|
|
1129
1142
|
enum GPUErrorFilter {
|
|
1130
1143
|
"out-of-memory",
|
|
1131
|
-
"validation"
|
|
1144
|
+
"validation"
|
|
1132
1145
|
};
|
|
1133
1146
|
|
|
1134
1147
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
1135
|
-
interface
|
|
1136
|
-
|
|
1148
|
+
interface GPUError {
|
|
1149
|
+
readonly attribute DOMString message;
|
|
1137
1150
|
};
|
|
1138
1151
|
|
|
1139
1152
|
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
1140
|
-
interface
|
|
1153
|
+
interface GPUOutOfMemoryError : GPUError {
|
|
1141
1154
|
constructor(DOMString message);
|
|
1142
|
-
readonly attribute DOMString message;
|
|
1143
1155
|
};
|
|
1144
1156
|
|
|
1145
|
-
|
|
1157
|
+
[Exposed=(Window, DedicatedWorker), SecureContext]
|
|
1158
|
+
interface GPUValidationError : GPUError {
|
|
1159
|
+
constructor(DOMString message);
|
|
1160
|
+
};
|
|
1146
1161
|
|
|
1147
1162
|
partial interface GPUDevice {
|
|
1148
1163
|
undefined pushErrorScope(GPUErrorFilter filter);
|
package/webnn.idl
CHANGED
|
@@ -111,9 +111,12 @@ interface MLGraphBuilder {
|
|
|
111
111
|
// Create a single-value operand from the specified number of the specified type.
|
|
112
112
|
MLOperand constant(double value, optional MLOperandType type = "float32");
|
|
113
113
|
|
|
114
|
-
// Compile the graph up to the specified output operands
|
|
114
|
+
// Compile the graph up to the specified output operands synchronously.
|
|
115
115
|
[Exposed=(DedicatedWorker)]
|
|
116
116
|
MLGraph build(MLNamedOperands outputs);
|
|
117
|
+
|
|
118
|
+
// Compile the graph up to the specified output operands asynchronously.
|
|
119
|
+
Promise<MLGraph> buildAsync(MLNamedOperands outputs);
|
|
117
120
|
};
|
|
118
121
|
|
|
119
122
|
dictionary MLBatchNormalizationOptions {
|
|
@@ -120,7 +120,7 @@ interface RTCRtpScriptTransformer {
|
|
|
120
120
|
readonly attribute ReadableStream readable;
|
|
121
121
|
readonly attribute WritableStream writable;
|
|
122
122
|
readonly attribute any options;
|
|
123
|
-
Promise<
|
|
123
|
+
Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
|
|
124
124
|
Promise<undefined> sendKeyFrameRequest();
|
|
125
125
|
};
|
|
126
126
|
|