react-native-wgpu 0.1.13 → 0.1.15
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/android/CMakeLists.txt +7 -0
- package/android/build.gradle +4 -4
- package/android/cpp/cpp-adapter.cpp +10 -4
- package/android/cpp/platform/ThreadUtils.cpp +41 -0
- package/apple/platform/ThreadUtils.cpp +33 -0
- package/cpp/jsi/RNFJSIConverter.h +47 -28
- package/cpp/platform/ThreadUtils.h +30 -0
- package/cpp/rnwgpu/RNWebGPUManager.cpp +8 -0
- package/cpp/rnwgpu/SurfaceRegistry.h +12 -8
- package/cpp/rnwgpu/api/Convertors.h +13 -5
- package/cpp/rnwgpu/api/GPU.cpp +4 -4
- package/cpp/rnwgpu/api/GPUAdapter.cpp +15 -14
- package/cpp/rnwgpu/api/GPUAdapterInfo.h +25 -4
- package/cpp/rnwgpu/api/GPUCanvasContext.cpp +3 -2
- package/cpp/rnwgpu/api/GPUDevice.cpp +5 -5
- package/cpp/rnwgpu/api/GPUDevice.h +7 -1
- package/cpp/rnwgpu/api/GPUFeatures.h +4 -4
- package/cpp/rnwgpu/api/GPUShaderModule.cpp +2 -1
- package/cpp/rnwgpu/api/descriptors/GPUCanvasConfiguration.h +3 -1
- package/cpp/rnwgpu/api/descriptors/Unions.h +30 -0
- package/cpp/threading/CallInvokerDispatcher.h +37 -0
- package/cpp/threading/Dispatcher.cpp +54 -0
- package/cpp/threading/Dispatcher.h +93 -0
- package/cpp/threading/ThreadPool.cpp +86 -0
- package/cpp/threading/ThreadPool.h +53 -0
- package/cpp/webgpu/webgpu.h +762 -758
- package/cpp/webgpu/webgpu_cpp.h +1827 -1626
- package/cpp/webgpu/webgpu_cpp_chained_struct.h +2 -0
- package/lib/commonjs/hooks.js +4 -2
- package/lib/commonjs/hooks.js.map +1 -1
- package/lib/module/hooks.js +4 -2
- package/lib/module/hooks.js.map +1 -1
- package/lib/typescript/lib/commonjs/hooks.d.ts.map +1 -1
- package/lib/typescript/lib/module/hooks.d.ts.map +1 -1
- package/lib/typescript/src/hooks.d.ts.map +1 -1
- package/libs/android/arm64-v8a/libwebgpu_dawn.so +0 -0
- package/libs/android/armeabi-v7a/libwebgpu_dawn.so +0 -0
- package/libs/android/x86/libwebgpu_dawn.so +0 -0
- package/libs/android/x86_64/libwebgpu_dawn.so +0 -0
- package/libs/apple/arm64_iphoneos/libwebgpu_dawn.a +0 -0
- package/libs/apple/arm64_iphonesimulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/arm64_xros/libwebgpu_dawn.a +0 -0
- package/libs/apple/arm64_xrsimulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/iphonesimulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/Info.plist +10 -10
- package/libs/apple/libwebgpu_dawn.xcframework/ios-arm64/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/ios-arm64_x86_64-simulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/macos-arm64_x86_64/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/xros-arm64/libwebgpu_dawn.a +0 -0
- package/libs/apple/libwebgpu_dawn.xcframework/xros-arm64-simulator/libwebgpu_dawn.a +0 -0
- package/libs/apple/universal_macosx/libwebgpu_dawn.a +0 -0
- package/libs/apple/x86_64_iphonesimulator/libwebgpu_dawn.a +0 -0
- package/libs/dawn.json +270 -251
- package/package.json +2 -2
- package/src/__tests__/Device.spec.ts +31 -0
- package/src/hooks.tsx +3 -2
package/libs/dawn.json
CHANGED
|
@@ -42,7 +42,10 @@
|
|
|
42
42
|
"INTERNAL__HAVE_EMDAWNWEBGPU_HEADER": {
|
|
43
43
|
"category": "structure",
|
|
44
44
|
"tags": ["emscripten"],
|
|
45
|
-
"
|
|
45
|
+
"_comment": "TODO(issues.chromium.org/issues/366932309): The struct must have at least one field.",
|
|
46
|
+
"members": [
|
|
47
|
+
{"name": "unused", "type": "bool", "default": "false"}
|
|
48
|
+
]
|
|
46
49
|
},
|
|
47
50
|
|
|
48
51
|
"create instance": {
|
|
@@ -62,8 +65,7 @@
|
|
|
62
65
|
"category": "function",
|
|
63
66
|
"returns": "proc",
|
|
64
67
|
"args": [
|
|
65
|
-
{"name": "
|
|
66
|
-
{"name": "proc name", "type": "char", "annotation": "const*"}
|
|
68
|
+
{"name": "proc name", "type": "string view"}
|
|
67
69
|
]
|
|
68
70
|
},
|
|
69
71
|
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
"args": [
|
|
84
86
|
{"name": "status", "type": "request adapter status"},
|
|
85
87
|
{"name": "adapter", "type": "adapter", "optional": true},
|
|
86
|
-
{"name": "message", "type": "
|
|
88
|
+
{"name": "message", "type": "string view"},
|
|
87
89
|
{"name": "userdata", "type": "void *"}
|
|
88
90
|
]
|
|
89
91
|
},
|
|
@@ -92,7 +94,7 @@
|
|
|
92
94
|
"args": [
|
|
93
95
|
{"name": "status", "type": "request adapter status"},
|
|
94
96
|
{"name": "adapter", "type": "adapter", "optional": true},
|
|
95
|
-
{"name": "message", "type": "
|
|
97
|
+
{"name": "message", "type": "string view"}
|
|
96
98
|
]
|
|
97
99
|
},
|
|
98
100
|
"request adapter callback info": {
|
|
@@ -145,13 +147,6 @@
|
|
|
145
147
|
{"name": "info", "type": "adapter info", "annotation": "*"}
|
|
146
148
|
]
|
|
147
149
|
},
|
|
148
|
-
{
|
|
149
|
-
"name": "get properties",
|
|
150
|
-
"returns": "status",
|
|
151
|
-
"args": [
|
|
152
|
-
{"name": "properties", "type": "adapter properties", "annotation": "*"}
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
150
|
{
|
|
156
151
|
"name": "has feature",
|
|
157
152
|
"returns": "bool",
|
|
@@ -217,10 +212,10 @@
|
|
|
217
212
|
"category": "structure",
|
|
218
213
|
"extensible": "out",
|
|
219
214
|
"members": [
|
|
220
|
-
{"name": "vendor", "type": "
|
|
221
|
-
{"name": "architecture", "type": "
|
|
222
|
-
{"name": "device", "type": "
|
|
223
|
-
{"name": "description", "type": "
|
|
215
|
+
{"name": "vendor", "type": "string view"},
|
|
216
|
+
{"name": "architecture", "type": "string view"},
|
|
217
|
+
{"name": "device", "type": "string view"},
|
|
218
|
+
{"name": "description", "type": "string view"},
|
|
224
219
|
{"name": "backend type", "type": "backend type"},
|
|
225
220
|
{"name": "adapter type", "type": "adapter type"},
|
|
226
221
|
{"name": "vendor ID", "type": "uint32_t"},
|
|
@@ -228,21 +223,6 @@
|
|
|
228
223
|
{"name": "compatibility mode", "type": "bool", "default": "false", "tags": ["dawn", "emscripten"]}
|
|
229
224
|
]
|
|
230
225
|
},
|
|
231
|
-
"adapter properties": {
|
|
232
|
-
"category": "structure",
|
|
233
|
-
"extensible": "out",
|
|
234
|
-
"members": [
|
|
235
|
-
{"name": "vendor ID", "type": "uint32_t"},
|
|
236
|
-
{"name": "vendor name", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"},
|
|
237
|
-
{"name": "architecture", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"},
|
|
238
|
-
{"name": "device ID", "type": "uint32_t"},
|
|
239
|
-
{"name": "name", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"},
|
|
240
|
-
{"name": "driver description", "type": "char", "annotation": "const*", "length": "strlen", "default": "nullptr"},
|
|
241
|
-
{"name": "adapter type", "type": "adapter type"},
|
|
242
|
-
{"name": "backend type", "type": "backend type"},
|
|
243
|
-
{"name": "compatibility mode", "type": "bool", "default": "false", "tags": ["dawn", "emscripten"]}
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
226
|
"adapter type": {
|
|
247
227
|
"category": "enum",
|
|
248
228
|
"emscripten_no_enum_table": true,
|
|
@@ -257,7 +237,7 @@
|
|
|
257
237
|
"category": "structure",
|
|
258
238
|
"extensible": "in",
|
|
259
239
|
"members": [
|
|
260
|
-
{"name": "label", "type": "
|
|
240
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
261
241
|
{"name": "required feature count", "type": "size_t", "default": 0},
|
|
262
242
|
{"name": "required features", "type": "feature name", "annotation": "const*", "length": "required feature count", "default": "nullptr"},
|
|
263
243
|
{"name": "required limits", "type": "required limits", "annotation": "const*", "optional": true},
|
|
@@ -311,7 +291,7 @@
|
|
|
311
291
|
"chained": "in",
|
|
312
292
|
"chain roots": ["device descriptor"],
|
|
313
293
|
"members": [
|
|
314
|
-
{"name": "isolation key", "type": "
|
|
294
|
+
{"name": "isolation key", "type": "string view"},
|
|
315
295
|
{"name": "load data function", "type": "dawn load cache data function", "default": "nullptr"},
|
|
316
296
|
{"name": "store data function", "type": "dawn store cache data function", "default": "nullptr"},
|
|
317
297
|
{"name": "function userdata", "type": "void *", "default": "nullptr"}
|
|
@@ -358,7 +338,7 @@
|
|
|
358
338
|
"name": "set label",
|
|
359
339
|
"returns": "void",
|
|
360
340
|
"args": [
|
|
361
|
-
{"name": "label", "type": "
|
|
341
|
+
{"name": "label", "type": "string view"}
|
|
362
342
|
]
|
|
363
343
|
}
|
|
364
344
|
]
|
|
@@ -379,7 +359,7 @@
|
|
|
379
359
|
"category": "structure",
|
|
380
360
|
"extensible": "in",
|
|
381
361
|
"members": [
|
|
382
|
-
{"name": "label", "type": "
|
|
362
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
383
363
|
{"name": "layout", "type": "bind group layout"},
|
|
384
364
|
{"name": "entry count", "type": "size_t"},
|
|
385
365
|
{"name": "entries", "type": "bind group entry", "annotation": "const*", "length": "entry count"}
|
|
@@ -392,7 +372,7 @@
|
|
|
392
372
|
"name": "set label",
|
|
393
373
|
"returns": "void",
|
|
394
374
|
"args": [
|
|
395
|
-
{"name": "label", "type": "
|
|
375
|
+
{"name": "label", "type": "string view"}
|
|
396
376
|
]
|
|
397
377
|
}
|
|
398
378
|
]
|
|
@@ -439,7 +419,8 @@
|
|
|
439
419
|
"chain roots": ["bind group layout entry"],
|
|
440
420
|
"tags": ["dawn"],
|
|
441
421
|
"members": [
|
|
442
|
-
{"name": "sampler", "type": "sampler"}
|
|
422
|
+
{"name": "sampler", "type": "sampler"},
|
|
423
|
+
{"name": "sampled texture binding", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED" }
|
|
443
424
|
]
|
|
444
425
|
},
|
|
445
426
|
"texture sample type": {
|
|
@@ -550,7 +531,7 @@
|
|
|
550
531
|
"category": "structure",
|
|
551
532
|
"extensible": "in",
|
|
552
533
|
"members": [
|
|
553
|
-
{"name": "label", "type": "
|
|
534
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
554
535
|
{"name": "entry count", "type": "size_t"},
|
|
555
536
|
{"name": "entries", "type": "bind group layout entry", "annotation": "const*", "length": "entry count"}
|
|
556
537
|
]
|
|
@@ -602,6 +583,21 @@
|
|
|
602
583
|
"category": "native",
|
|
603
584
|
"wasm type": "i"
|
|
604
585
|
},
|
|
586
|
+
"optional bool": {
|
|
587
|
+
"category": "enum",
|
|
588
|
+
"values": [
|
|
589
|
+
{"value": 0, "name": "false"},
|
|
590
|
+
{"value": 1, "name": "true"},
|
|
591
|
+
{"value": 2, "name": "undefined", "jsrepr": "undefined"}
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
"string view": {
|
|
595
|
+
"category": "structure",
|
|
596
|
+
"members": [
|
|
597
|
+
{"name": "data", "type": "char", "annotation": "const*", "optional": true},
|
|
598
|
+
{"name": "length", "type": "size_t", "default": "WGPU_STRLEN"}
|
|
599
|
+
]
|
|
600
|
+
},
|
|
605
601
|
"buffer": {
|
|
606
602
|
"category": "object",
|
|
607
603
|
"methods": [
|
|
@@ -659,7 +655,7 @@
|
|
|
659
655
|
"name": "set label",
|
|
660
656
|
"returns": "void",
|
|
661
657
|
"args": [
|
|
662
|
-
{"name": "label", "type": "
|
|
658
|
+
{"name": "label", "type": "string view"}
|
|
663
659
|
]
|
|
664
660
|
},
|
|
665
661
|
{
|
|
@@ -688,7 +684,7 @@
|
|
|
688
684
|
"category": "structure",
|
|
689
685
|
"extensible": "in",
|
|
690
686
|
"members": [
|
|
691
|
-
{"name": "label", "type": "
|
|
687
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
692
688
|
{"name": "usage", "type": "buffer usage"},
|
|
693
689
|
{"name": "size", "type": "uint64_t"},
|
|
694
690
|
{"name": "mapped at creation", "type": "bool", "default": "false"}
|
|
@@ -723,7 +719,7 @@
|
|
|
723
719
|
"category": "callback function",
|
|
724
720
|
"args": [
|
|
725
721
|
{"name": "status", "type": "map async status"},
|
|
726
|
-
{"name": "message", "type": "
|
|
722
|
+
{"name": "message", "type": "string view"}
|
|
727
723
|
]
|
|
728
724
|
},
|
|
729
725
|
"buffer map callback info": {
|
|
@@ -821,7 +817,7 @@
|
|
|
821
817
|
"category": "structure",
|
|
822
818
|
"extensible": "in",
|
|
823
819
|
"members": [
|
|
824
|
-
{"name": "key", "type": "
|
|
820
|
+
{"name": "key", "type": "string view"},
|
|
825
821
|
{"name": "value", "type": "double"}
|
|
826
822
|
]
|
|
827
823
|
},
|
|
@@ -832,7 +828,7 @@
|
|
|
832
828
|
"name": "set label",
|
|
833
829
|
"returns": "void",
|
|
834
830
|
"args": [
|
|
835
|
-
{"name": "label", "type": "
|
|
831
|
+
{"name": "label", "type": "string view"}
|
|
836
832
|
]
|
|
837
833
|
}
|
|
838
834
|
]
|
|
@@ -841,7 +837,7 @@
|
|
|
841
837
|
"category": "structure",
|
|
842
838
|
"extensible": "in",
|
|
843
839
|
"members": [
|
|
844
|
-
{"name": "label", "type": "
|
|
840
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
845
841
|
]
|
|
846
842
|
},
|
|
847
843
|
"command encoder": {
|
|
@@ -915,13 +911,13 @@
|
|
|
915
911
|
"name": "inject validation error",
|
|
916
912
|
"tags": ["dawn"],
|
|
917
913
|
"args": [
|
|
918
|
-
{"name": "message", "type": "
|
|
914
|
+
{"name": "message", "type": "string view"}
|
|
919
915
|
]
|
|
920
916
|
},
|
|
921
917
|
{
|
|
922
918
|
"name": "insert debug marker",
|
|
923
919
|
"args": [
|
|
924
|
-
{"name": "marker label", "type": "
|
|
920
|
+
{"name": "marker label", "type": "string view"}
|
|
925
921
|
]
|
|
926
922
|
},
|
|
927
923
|
{
|
|
@@ -931,7 +927,7 @@
|
|
|
931
927
|
{
|
|
932
928
|
"name": "push debug group",
|
|
933
929
|
"args": [
|
|
934
|
-
{"name": "group label", "type": "
|
|
930
|
+
{"name": "group label", "type": "string view"}
|
|
935
931
|
]
|
|
936
932
|
},
|
|
937
933
|
{
|
|
@@ -965,7 +961,7 @@
|
|
|
965
961
|
"name": "set label",
|
|
966
962
|
"returns": "void",
|
|
967
963
|
"args": [
|
|
968
|
-
{"name": "label", "type": "
|
|
964
|
+
{"name": "label", "type": "string view"}
|
|
969
965
|
]
|
|
970
966
|
}
|
|
971
967
|
]
|
|
@@ -974,7 +970,7 @@
|
|
|
974
970
|
"category": "structure",
|
|
975
971
|
"extensible": "in",
|
|
976
972
|
"members": [
|
|
977
|
-
{"name": "label", "type": "
|
|
973
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
978
974
|
]
|
|
979
975
|
},
|
|
980
976
|
"compare function": {
|
|
@@ -1044,7 +1040,7 @@
|
|
|
1044
1040
|
"category": "structure",
|
|
1045
1041
|
"extensible": "in",
|
|
1046
1042
|
"members": [
|
|
1047
|
-
{"name": "message", "type": "
|
|
1043
|
+
{"name": "message", "type": "string view"},
|
|
1048
1044
|
{"name": "type", "type": "compilation message type"},
|
|
1049
1045
|
{"name": "line num", "type": "uint64_t"},
|
|
1050
1046
|
{"name": "line pos", "type": "uint64_t"},
|
|
@@ -1069,7 +1065,7 @@
|
|
|
1069
1065
|
"category": "structure",
|
|
1070
1066
|
"extensible": "in",
|
|
1071
1067
|
"members": [
|
|
1072
|
-
{"name": "label", "type": "
|
|
1068
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
1073
1069
|
{"name": "timestamp writes", "type": "compute pass timestamp writes", "annotation": "const*", "optional": true}
|
|
1074
1070
|
]
|
|
1075
1071
|
},
|
|
@@ -1080,7 +1076,7 @@
|
|
|
1080
1076
|
{
|
|
1081
1077
|
"name": "insert debug marker",
|
|
1082
1078
|
"args": [
|
|
1083
|
-
{"name": "marker label", "type": "
|
|
1079
|
+
{"name": "marker label", "type": "string view"}
|
|
1084
1080
|
]
|
|
1085
1081
|
},
|
|
1086
1082
|
{
|
|
@@ -1090,7 +1086,7 @@
|
|
|
1090
1086
|
{
|
|
1091
1087
|
"name": "push debug group",
|
|
1092
1088
|
"args": [
|
|
1093
|
-
{"name": "group label", "type": "
|
|
1089
|
+
{"name": "group label", "type": "string view"}
|
|
1094
1090
|
]
|
|
1095
1091
|
},
|
|
1096
1092
|
{
|
|
@@ -1138,7 +1134,7 @@
|
|
|
1138
1134
|
"name": "set label",
|
|
1139
1135
|
"returns": "void",
|
|
1140
1136
|
"args": [
|
|
1141
|
-
{"name": "label", "type": "
|
|
1137
|
+
{"name": "label", "type": "string view"}
|
|
1142
1138
|
]
|
|
1143
1139
|
}
|
|
1144
1140
|
]
|
|
@@ -1146,11 +1142,11 @@
|
|
|
1146
1142
|
"composite alpha mode": {
|
|
1147
1143
|
"category": "enum",
|
|
1148
1144
|
"values": [
|
|
1149
|
-
{"value":
|
|
1150
|
-
{"value":
|
|
1151
|
-
{"value":
|
|
1152
|
-
{"value":
|
|
1153
|
-
{"value":
|
|
1145
|
+
{"value": 0, "name": "auto", "jsrepr": "undefined"},
|
|
1146
|
+
{"value": 1, "name": "opaque"},
|
|
1147
|
+
{"value": 2, "name": "premultiplied"},
|
|
1148
|
+
{"value": 3, "name": "unpremultiplied"},
|
|
1149
|
+
{"value": 4, "name": "inherit"}
|
|
1154
1150
|
]
|
|
1155
1151
|
},
|
|
1156
1152
|
"compute pass timestamp writes": {
|
|
@@ -1175,7 +1171,7 @@
|
|
|
1175
1171
|
"name": "set label",
|
|
1176
1172
|
"returns": "void",
|
|
1177
1173
|
"args": [
|
|
1178
|
-
{"name": "label", "type": "
|
|
1174
|
+
{"name": "label", "type": "string view"}
|
|
1179
1175
|
]
|
|
1180
1176
|
}
|
|
1181
1177
|
]
|
|
@@ -1184,7 +1180,7 @@
|
|
|
1184
1180
|
"category": "structure",
|
|
1185
1181
|
"extensible": "in",
|
|
1186
1182
|
"members": [
|
|
1187
|
-
{"name": "label", "type": "
|
|
1183
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
1188
1184
|
{"name": "layout", "type": "pipeline layout", "optional": true},
|
|
1189
1185
|
{"name": "compute", "type": "programmable stage descriptor"}
|
|
1190
1186
|
]
|
|
@@ -1230,7 +1226,7 @@
|
|
|
1230
1226
|
"args": [
|
|
1231
1227
|
{"name": "status", "type": "create pipeline async status"},
|
|
1232
1228
|
{"name": "pipeline", "type": "compute pipeline", "optional": true},
|
|
1233
|
-
{"name": "message", "type": "
|
|
1229
|
+
{"name": "message", "type": "string view"},
|
|
1234
1230
|
{"name": "userdata", "type": "void *"}
|
|
1235
1231
|
]
|
|
1236
1232
|
},
|
|
@@ -1239,7 +1235,7 @@
|
|
|
1239
1235
|
"args": [
|
|
1240
1236
|
{"name": "status", "type": "create pipeline async status"},
|
|
1241
1237
|
{"name": "pipeline", "type": "compute pipeline", "optional": true},
|
|
1242
|
-
{"name": "message", "type": "
|
|
1238
|
+
{"name": "message", "type": "string view"}
|
|
1243
1239
|
]
|
|
1244
1240
|
},
|
|
1245
1241
|
"create compute pipeline async callback info": {
|
|
@@ -1276,7 +1272,7 @@
|
|
|
1276
1272
|
"args": [
|
|
1277
1273
|
{"name": "status", "type": "create pipeline async status"},
|
|
1278
1274
|
{"name": "pipeline", "type": "render pipeline", "optional": true},
|
|
1279
|
-
{"name": "message", "type": "
|
|
1275
|
+
{"name": "message", "type": "string view"},
|
|
1280
1276
|
{"name": "userdata", "type": "void *"}
|
|
1281
1277
|
]
|
|
1282
1278
|
},
|
|
@@ -1285,7 +1281,7 @@
|
|
|
1285
1281
|
"args": [
|
|
1286
1282
|
{"name": "status", "type": "create pipeline async status"},
|
|
1287
1283
|
{"name": "pipeline", "type": "render pipeline", "optional": true},
|
|
1288
|
-
{"name": "message", "type": "
|
|
1284
|
+
{"name": "message", "type": "string view"}
|
|
1289
1285
|
]
|
|
1290
1286
|
},
|
|
1291
1287
|
"create render pipeline async callback info": {
|
|
@@ -1489,16 +1485,7 @@
|
|
|
1489
1485
|
"tags": ["dawn"],
|
|
1490
1486
|
"args": [
|
|
1491
1487
|
{"name": "descriptor", "type": "shader module descriptor", "annotation": "const*"},
|
|
1492
|
-
{"name": "error message", "type": "
|
|
1493
|
-
]
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
"name": "create swap chain",
|
|
1497
|
-
"tags": ["art", "dawn", "emscripten"],
|
|
1498
|
-
"returns": "swap chain",
|
|
1499
|
-
"args": [
|
|
1500
|
-
{"name": "surface", "type": "surface"},
|
|
1501
|
-
{"name": "descriptor", "type": "swap chain descriptor", "annotation": "const*"}
|
|
1488
|
+
{"name": "error message", "type": "string view"}
|
|
1502
1489
|
]
|
|
1503
1490
|
},
|
|
1504
1491
|
{
|
|
@@ -1576,7 +1563,7 @@
|
|
|
1576
1563
|
{
|
|
1577
1564
|
"name": "get adapter",
|
|
1578
1565
|
"returns": "adapter",
|
|
1579
|
-
"tags": ["dawn"
|
|
1566
|
+
"tags": ["dawn"]
|
|
1580
1567
|
},
|
|
1581
1568
|
{
|
|
1582
1569
|
"name": "get queue",
|
|
@@ -1586,7 +1573,7 @@
|
|
|
1586
1573
|
"name": "inject error",
|
|
1587
1574
|
"args": [
|
|
1588
1575
|
{"name": "type", "type": "error type"},
|
|
1589
|
-
{"name": "message", "type": "
|
|
1576
|
+
{"name": "message", "type": "string view"}
|
|
1590
1577
|
],
|
|
1591
1578
|
"tags": ["dawn"]
|
|
1592
1579
|
},
|
|
@@ -1594,7 +1581,7 @@
|
|
|
1594
1581
|
"name": "force loss",
|
|
1595
1582
|
"args": [
|
|
1596
1583
|
{"name": "type", "type": "device lost reason"},
|
|
1597
|
-
{"name": "message", "type": "
|
|
1584
|
+
{"name": "message", "type": "string view"}
|
|
1598
1585
|
],
|
|
1599
1586
|
"tags": ["dawn"]
|
|
1600
1587
|
},
|
|
@@ -1665,7 +1652,7 @@
|
|
|
1665
1652
|
"name": "set label",
|
|
1666
1653
|
"returns": "void",
|
|
1667
1654
|
"args": [
|
|
1668
|
-
{"name": "label", "type": "
|
|
1655
|
+
{"name": "label", "type": "string view"}
|
|
1669
1656
|
]
|
|
1670
1657
|
},
|
|
1671
1658
|
{
|
|
@@ -1674,14 +1661,6 @@
|
|
|
1674
1661
|
"args": [
|
|
1675
1662
|
{"name": "descriptor", "type": "texture descriptor", "annotation": "const*"}
|
|
1676
1663
|
]
|
|
1677
|
-
},
|
|
1678
|
-
{
|
|
1679
|
-
"name": "get supported surface usage",
|
|
1680
|
-
"tags": ["dawn", "native"],
|
|
1681
|
-
"returns": "texture usage",
|
|
1682
|
-
"args": [
|
|
1683
|
-
{"name": "surface", "type": "surface"}
|
|
1684
|
-
]
|
|
1685
1664
|
}
|
|
1686
1665
|
]
|
|
1687
1666
|
},
|
|
@@ -1689,7 +1668,7 @@
|
|
|
1689
1668
|
"category": "function pointer",
|
|
1690
1669
|
"args": [
|
|
1691
1670
|
{"name": "reason", "type": "device lost reason"},
|
|
1692
|
-
{"name": "message", "type": "
|
|
1671
|
+
{"name": "message", "type": "string view"},
|
|
1693
1672
|
{"name": "userdata", "type": "void *"}
|
|
1694
1673
|
]
|
|
1695
1674
|
},
|
|
@@ -1698,7 +1677,7 @@
|
|
|
1698
1677
|
"args": [
|
|
1699
1678
|
{"name": "device", "type": "device", "annotation": "const*", "length": 1},
|
|
1700
1679
|
{"name": "reason", "type": "device lost reason"},
|
|
1701
|
-
{"name": "message", "type": "
|
|
1680
|
+
{"name": "message", "type": "string view"},
|
|
1702
1681
|
{"name": "userdata", "type": "void *"}
|
|
1703
1682
|
]
|
|
1704
1683
|
},
|
|
@@ -1707,7 +1686,7 @@
|
|
|
1707
1686
|
"args": [
|
|
1708
1687
|
{"name": "device", "type": "device", "annotation": "const*", "length": 1},
|
|
1709
1688
|
{"name": "reason", "type": "device lost reason"},
|
|
1710
|
-
{"name": "message", "type": "
|
|
1689
|
+
{"name": "message", "type": "string view"}
|
|
1711
1690
|
]
|
|
1712
1691
|
},
|
|
1713
1692
|
"device lost callback info": {
|
|
@@ -1745,7 +1724,7 @@
|
|
|
1745
1724
|
"category": "function pointer",
|
|
1746
1725
|
"args": [
|
|
1747
1726
|
{"name": "type", "type": "error type"},
|
|
1748
|
-
{"name": "message", "type": "
|
|
1727
|
+
{"name": "message", "type": "string view"},
|
|
1749
1728
|
{"name": "userdata", "type": "void *"}
|
|
1750
1729
|
]
|
|
1751
1730
|
},
|
|
@@ -1754,7 +1733,7 @@
|
|
|
1754
1733
|
"args": [
|
|
1755
1734
|
{"name": "device", "type": "device", "annotation": "const*", "length": 1},
|
|
1756
1735
|
{"name": "type", "type": "error type"},
|
|
1757
|
-
{"name": "message", "type": "
|
|
1736
|
+
{"name": "message", "type": "string view"}
|
|
1758
1737
|
]
|
|
1759
1738
|
},
|
|
1760
1739
|
"uncaptured error callback info": {
|
|
@@ -1784,7 +1763,7 @@
|
|
|
1784
1763
|
"args": [
|
|
1785
1764
|
{"name": "status", "type": "pop error scope status"},
|
|
1786
1765
|
{"name": "type", "type": "error type"},
|
|
1787
|
-
{"name": "message", "type": "
|
|
1766
|
+
{"name": "message", "type": "string view"},
|
|
1788
1767
|
{"name": "userdata", "type": "void *"}
|
|
1789
1768
|
]
|
|
1790
1769
|
},
|
|
@@ -1793,7 +1772,7 @@
|
|
|
1793
1772
|
"args": [
|
|
1794
1773
|
{"name": "status", "type": "pop error scope status"},
|
|
1795
1774
|
{"name": "type", "type": "error type"},
|
|
1796
|
-
{"name": "message", "type": "
|
|
1775
|
+
{"name": "message", "type": "string view"}
|
|
1797
1776
|
]
|
|
1798
1777
|
},
|
|
1799
1778
|
"pop error scope callback info": {
|
|
@@ -1860,6 +1839,15 @@
|
|
|
1860
1839
|
{"name": "max subgroup size", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}
|
|
1861
1840
|
]
|
|
1862
1841
|
},
|
|
1842
|
+
"dawn experimental immediate data limits": {
|
|
1843
|
+
"category": "structure",
|
|
1844
|
+
"chained": "out",
|
|
1845
|
+
"chain roots": ["supported limits"],
|
|
1846
|
+
"tags": ["dawn"],
|
|
1847
|
+
"members": [
|
|
1848
|
+
{"name": "max immediate data range byte size", "type": "uint32_t", "default": "WGPU_LIMIT_U32_UNDEFINED"}
|
|
1849
|
+
]
|
|
1850
|
+
},
|
|
1863
1851
|
"required limits": {
|
|
1864
1852
|
"category": "structure",
|
|
1865
1853
|
"extensible": "in",
|
|
@@ -1879,7 +1867,7 @@
|
|
|
1879
1867
|
"tags": ["dawn"],
|
|
1880
1868
|
"args": [
|
|
1881
1869
|
{"name": "type", "type": "logging type"},
|
|
1882
|
-
{"name": "message", "type": "
|
|
1870
|
+
{"name": "message", "type": "string view"},
|
|
1883
1871
|
{"name": "userdata", "type": "void *"}
|
|
1884
1872
|
]
|
|
1885
1873
|
},
|
|
@@ -1937,7 +1925,7 @@
|
|
|
1937
1925
|
"name": "set label",
|
|
1938
1926
|
"returns": "void",
|
|
1939
1927
|
"args": [
|
|
1940
|
-
{"name": "label", "type": "
|
|
1928
|
+
{"name": "label", "type": "string view"}
|
|
1941
1929
|
]
|
|
1942
1930
|
},
|
|
1943
1931
|
{
|
|
@@ -1971,7 +1959,7 @@
|
|
|
1971
1959
|
"tags": ["dawn"],
|
|
1972
1960
|
"_comment": "TODO(crbug.com/1514732): deprecate flipY",
|
|
1973
1961
|
"members": [
|
|
1974
|
-
{"name": "label", "type": "
|
|
1962
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
1975
1963
|
{"name": "plane 0", "type": "texture view"},
|
|
1976
1964
|
{"name": "plane 1", "type": "texture view", "optional": true},
|
|
1977
1965
|
{"name": "visible origin", "type": "origin 2D"},
|
|
@@ -2004,7 +1992,7 @@
|
|
|
2004
1992
|
"name": "set label",
|
|
2005
1993
|
"returns": "void",
|
|
2006
1994
|
"args": [
|
|
2007
|
-
{"name": "label", "type": "
|
|
1995
|
+
{"name": "label", "type": "string view"}
|
|
2008
1996
|
]
|
|
2009
1997
|
},
|
|
2010
1998
|
{
|
|
@@ -2058,7 +2046,7 @@
|
|
|
2058
2046
|
"extensible": "in",
|
|
2059
2047
|
"tags": ["dawn", "native"],
|
|
2060
2048
|
"members": [
|
|
2061
|
-
{"name": "label", "type": "
|
|
2049
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
2062
2050
|
]
|
|
2063
2051
|
},
|
|
2064
2052
|
"shared texture memory": {
|
|
@@ -2069,7 +2057,7 @@
|
|
|
2069
2057
|
"name": "set label",
|
|
2070
2058
|
"returns": "void",
|
|
2071
2059
|
"args": [
|
|
2072
|
-
{"name": "label", "type": "
|
|
2060
|
+
{"name": "label", "type": "string view"}
|
|
2073
2061
|
]
|
|
2074
2062
|
},
|
|
2075
2063
|
{
|
|
@@ -2133,7 +2121,7 @@
|
|
|
2133
2121
|
"extensible": "in",
|
|
2134
2122
|
"tags": ["dawn", "native"],
|
|
2135
2123
|
"members": [
|
|
2136
|
-
{"name": "label", "type": "
|
|
2124
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
2137
2125
|
]
|
|
2138
2126
|
},
|
|
2139
2127
|
"shared buffer memory begin access descriptor": {
|
|
@@ -2325,7 +2313,7 @@
|
|
|
2325
2313
|
"extensible": "in",
|
|
2326
2314
|
"tags": ["dawn", "native"],
|
|
2327
2315
|
"members": [
|
|
2328
|
-
{"name": "label", "type": "
|
|
2316
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
2329
2317
|
]
|
|
2330
2318
|
},
|
|
2331
2319
|
"shared fence vk semaphore opaque FD descriptor": {
|
|
@@ -2453,15 +2441,16 @@
|
|
|
2453
2441
|
{"value": 9, "name": "RG11B10 ufloat renderable"},
|
|
2454
2442
|
{"value": 10, "name": "BGRA8 unorm storage"},
|
|
2455
2443
|
{"value": 11, "name": "float32 filterable", "jsrepr": "'float32-filterable'"},
|
|
2456
|
-
{"value": 12, "name": "
|
|
2457
|
-
{"value": 13, "name": "subgroups
|
|
2444
|
+
{"value": 12, "name": "float32 blendable", "jsrepr": "'float32-blendable'"},
|
|
2445
|
+
{"value": 13, "name": "subgroups"},
|
|
2446
|
+
{"value": 14, "name": "subgroups f16"},
|
|
2458
2447
|
|
|
2459
2448
|
{"value": 0, "name": "dawn internal usages", "tags": ["dawn"]},
|
|
2460
2449
|
{"value": 1, "name": "dawn multi planar formats", "tags": ["dawn"]},
|
|
2461
2450
|
{"value": 2, "name": "dawn native", "tags": ["dawn", "native"]},
|
|
2462
2451
|
{"value": 3, "name": "chromium experimental timestamp query inside passes", "tags": ["dawn"]},
|
|
2463
2452
|
{"value": 4, "name": "implicit device synchronization", "tags": ["dawn", "native"]},
|
|
2464
|
-
{"value": 5, "name": "
|
|
2453
|
+
{"value": 5, "name": "chromium experimental immediate data", "tags": ["dawn"]},
|
|
2465
2454
|
{"value": 6, "name": "transient attachments", "tags": ["dawn"]},
|
|
2466
2455
|
{"value": 7, "name": "MSAA render to single sampled", "tags": ["dawn"]},
|
|
2467
2456
|
{"value": 8, "name": "dual source blending", "tags": ["dawn"]},
|
|
@@ -2511,7 +2500,10 @@
|
|
|
2511
2500
|
{"value": 51, "name": "y cb cr vulkan samplers", "tags": ["dawn"]},
|
|
2512
2501
|
{"value": 52, "name": "shader module compilation options", "tags": ["dawn"]},
|
|
2513
2502
|
|
|
2514
|
-
{"value": 53, "name": "dawn load resolve texture", "tags": ["dawn"]}
|
|
2503
|
+
{"value": 53, "name": "dawn load resolve texture", "tags": ["dawn"]},
|
|
2504
|
+
{"value": 54, "name": "dawn partial load resolve texture", "tags": ["dawn"]},
|
|
2505
|
+
{"value": 55, "name": "multi draw indirect", "tags": ["dawn"]},
|
|
2506
|
+
{"value": 56, "name": "clip distances", "tags": ["dawn"]}
|
|
2515
2507
|
]
|
|
2516
2508
|
},
|
|
2517
2509
|
"filter mode": {
|
|
@@ -2759,8 +2751,8 @@
|
|
|
2759
2751
|
"category": "enum",
|
|
2760
2752
|
"values": [
|
|
2761
2753
|
{"value": 0, "name": "undefined", "jsrepr": "undefined"},
|
|
2762
|
-
{"value": 1, "name": "
|
|
2763
|
-
{"value": 2, "name": "
|
|
2754
|
+
{"value": 1, "name": "load"},
|
|
2755
|
+
{"value": 2, "name": "clear"},
|
|
2764
2756
|
{"value": 3, "name": "expand resolve texture", "tags": ["dawn"]}
|
|
2765
2757
|
]
|
|
2766
2758
|
},
|
|
@@ -2811,7 +2803,7 @@
|
|
|
2811
2803
|
"name": "set label",
|
|
2812
2804
|
"returns": "void",
|
|
2813
2805
|
"args": [
|
|
2814
|
-
{"name": "label", "type": "
|
|
2806
|
+
{"name": "label", "type": "string view"}
|
|
2815
2807
|
]
|
|
2816
2808
|
}
|
|
2817
2809
|
]
|
|
@@ -2820,9 +2812,10 @@
|
|
|
2820
2812
|
"category": "structure",
|
|
2821
2813
|
"extensible": "in",
|
|
2822
2814
|
"members": [
|
|
2823
|
-
{"name": "label", "type": "
|
|
2815
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
2824
2816
|
{"name": "bind group layout count", "type": "size_t"},
|
|
2825
|
-
{"name": "bind group layouts", "type": "bind group layout", "annotation": "const*", "length": "bind group layout count"}
|
|
2817
|
+
{"name": "bind group layouts", "type": "bind group layout", "annotation": "const*", "length": "bind group layout count"},
|
|
2818
|
+
{"name": "immediate data range byte size", "type": "uint32_t", "default": 0}
|
|
2826
2819
|
]
|
|
2827
2820
|
},
|
|
2828
2821
|
"pipeline layout pixel local storage": {
|
|
@@ -2868,7 +2861,7 @@
|
|
|
2868
2861
|
"extensible": "in",
|
|
2869
2862
|
"members": [
|
|
2870
2863
|
{"name": "module", "type": "shader module"},
|
|
2871
|
-
{"name": "entry point", "type": "
|
|
2864
|
+
{"name": "entry point", "type": "string view", "optional": true},
|
|
2872
2865
|
{"name": "constant count", "type": "size_t", "default": 0},
|
|
2873
2866
|
{"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"}
|
|
2874
2867
|
]
|
|
@@ -2891,7 +2884,7 @@
|
|
|
2891
2884
|
"name": "set label",
|
|
2892
2885
|
"returns": "void",
|
|
2893
2886
|
"args": [
|
|
2894
|
-
{"name": "label", "type": "
|
|
2887
|
+
{"name": "label", "type": "string view"}
|
|
2895
2888
|
]
|
|
2896
2889
|
},
|
|
2897
2890
|
{
|
|
@@ -2911,7 +2904,7 @@
|
|
|
2911
2904
|
"category": "structure",
|
|
2912
2905
|
"extensible": "in",
|
|
2913
2906
|
"members": [
|
|
2914
|
-
{"name": "label", "type": "
|
|
2907
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
2915
2908
|
{"name": "type", "type": "query type"},
|
|
2916
2909
|
{"name": "count", "type": "uint32_t"}
|
|
2917
2910
|
]
|
|
@@ -3004,7 +2997,7 @@
|
|
|
3004
2997
|
"name": "set label",
|
|
3005
2998
|
"returns": "void",
|
|
3006
2999
|
"args": [
|
|
3007
|
-
{"name": "label", "type": "
|
|
3000
|
+
{"name": "label", "type": "string view"}
|
|
3008
3001
|
]
|
|
3009
3002
|
}
|
|
3010
3003
|
]
|
|
@@ -3013,7 +3006,7 @@
|
|
|
3013
3006
|
"category": "structure",
|
|
3014
3007
|
"extensible": "in",
|
|
3015
3008
|
"members": [
|
|
3016
|
-
{"name": "label", "type": "
|
|
3009
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
3017
3010
|
]
|
|
3018
3011
|
},
|
|
3019
3012
|
"queue work done callback": {
|
|
@@ -3064,7 +3057,7 @@
|
|
|
3064
3057
|
"name": "set label",
|
|
3065
3058
|
"returns": "void",
|
|
3066
3059
|
"args": [
|
|
3067
|
-
{"name": "label", "type": "
|
|
3060
|
+
{"name": "label", "type": "string view"}
|
|
3068
3061
|
]
|
|
3069
3062
|
}
|
|
3070
3063
|
]
|
|
@@ -3125,7 +3118,7 @@
|
|
|
3125
3118
|
{
|
|
3126
3119
|
"name": "insert debug marker",
|
|
3127
3120
|
"args": [
|
|
3128
|
-
{"name": "marker label", "type": "
|
|
3121
|
+
{"name": "marker label", "type": "string view"}
|
|
3129
3122
|
]
|
|
3130
3123
|
},
|
|
3131
3124
|
{
|
|
@@ -3135,7 +3128,7 @@
|
|
|
3135
3128
|
{
|
|
3136
3129
|
"name": "push debug group",
|
|
3137
3130
|
"args": [
|
|
3138
|
-
{"name": "group label", "type": "
|
|
3131
|
+
{"name": "group label", "type": "string view"}
|
|
3139
3132
|
]
|
|
3140
3133
|
},
|
|
3141
3134
|
{
|
|
@@ -3167,7 +3160,7 @@
|
|
|
3167
3160
|
"name": "set label",
|
|
3168
3161
|
"returns": "void",
|
|
3169
3162
|
"args": [
|
|
3170
|
-
{"name": "label", "type": "
|
|
3163
|
+
{"name": "label", "type": "string view"}
|
|
3171
3164
|
]
|
|
3172
3165
|
}
|
|
3173
3166
|
]
|
|
@@ -3177,7 +3170,7 @@
|
|
|
3177
3170
|
"category": "structure",
|
|
3178
3171
|
"extensible": "in",
|
|
3179
3172
|
"members": [
|
|
3180
|
-
{"name": "label", "type": "
|
|
3173
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
3181
3174
|
]
|
|
3182
3175
|
},
|
|
3183
3176
|
|
|
@@ -3185,7 +3178,7 @@
|
|
|
3185
3178
|
"category": "structure",
|
|
3186
3179
|
"extensible": "in",
|
|
3187
3180
|
"members": [
|
|
3188
|
-
{"name": "label", "type": "
|
|
3181
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
3189
3182
|
{"name": "color format count", "type": "size_t"},
|
|
3190
3183
|
{"name": "color formats", "type": "texture format", "annotation": "const*", "length": "color format count"},
|
|
3191
3184
|
{"name": "depth stencil format", "type": "texture format", "default": "undefined"},
|
|
@@ -3235,7 +3228,7 @@
|
|
|
3235
3228
|
"category": "structure",
|
|
3236
3229
|
"extensible": "in",
|
|
3237
3230
|
"members": [
|
|
3238
|
-
{"name": "label", "type": "
|
|
3231
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
3239
3232
|
{"name": "color attachment count", "type": "size_t"},
|
|
3240
3233
|
{"name": "color attachments", "type": "render pass color attachment", "annotation": "const*", "length": "color attachment count"},
|
|
3241
3234
|
{"name": "depth stencil attachment", "type": "render pass depth stencil attachment", "annotation": "const*", "optional": true},
|
|
@@ -3244,6 +3237,10 @@
|
|
|
3244
3237
|
]
|
|
3245
3238
|
},
|
|
3246
3239
|
"render pass descriptor max draw count": {
|
|
3240
|
+
"category": "typedef",
|
|
3241
|
+
"type": "render pass max draw count"
|
|
3242
|
+
},
|
|
3243
|
+
"render pass max draw count": {
|
|
3247
3244
|
"category": "structure",
|
|
3248
3245
|
"chained": "in",
|
|
3249
3246
|
"chain roots": ["render pass descriptor"],
|
|
@@ -3251,6 +3248,18 @@
|
|
|
3251
3248
|
{"name": "max draw count", "type": "uint64_t", "default": 50000000}
|
|
3252
3249
|
]
|
|
3253
3250
|
},
|
|
3251
|
+
"render pass descriptor expand resolve rect": {
|
|
3252
|
+
"category": "structure",
|
|
3253
|
+
"tags": ["dawn"],
|
|
3254
|
+
"chained": "in",
|
|
3255
|
+
"chain roots": ["render pass descriptor"],
|
|
3256
|
+
"members": [
|
|
3257
|
+
{"name": "x", "type": "uint32_t"},
|
|
3258
|
+
{"name": "y", "type": "uint32_t"},
|
|
3259
|
+
{"name": "width", "type": "uint32_t"},
|
|
3260
|
+
{"name": "height", "type": "uint32_t"}
|
|
3261
|
+
]
|
|
3262
|
+
},
|
|
3254
3263
|
"render pass pixel local storage": {
|
|
3255
3264
|
"category": "structure",
|
|
3256
3265
|
"tags": ["dawn"],
|
|
@@ -3326,6 +3335,27 @@
|
|
|
3326
3335
|
{"name": "indirect offset", "type": "uint64_t"}
|
|
3327
3336
|
]
|
|
3328
3337
|
},
|
|
3338
|
+
{
|
|
3339
|
+
"name": "multi draw indirect",
|
|
3340
|
+
"args": [
|
|
3341
|
+
{"name": "indirect buffer", "type": "buffer"},
|
|
3342
|
+
{"name": "indirect offset", "type": "uint64_t"},
|
|
3343
|
+
{"name": "max draw count", "type": "uint32_t"},
|
|
3344
|
+
{"name": "draw count buffer", "type": "buffer", "optional": true},
|
|
3345
|
+
{"name": "draw count buffer offset", "type": "uint64_t", "default": "0"}
|
|
3346
|
+
|
|
3347
|
+
]
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
"name": "multi draw indexed indirect",
|
|
3351
|
+
"args": [
|
|
3352
|
+
{"name": "indirect buffer", "type": "buffer"},
|
|
3353
|
+
{"name": "indirect offset", "type": "uint64_t"},
|
|
3354
|
+
{"name": "max draw count", "type": "uint32_t"},
|
|
3355
|
+
{"name": "draw count buffer", "type": "buffer", "optional": true},
|
|
3356
|
+
{"name": "draw count buffer offset", "type": "uint64_t", "default": "0"}
|
|
3357
|
+
]
|
|
3358
|
+
},
|
|
3329
3359
|
{
|
|
3330
3360
|
"name": "execute bundles",
|
|
3331
3361
|
"args": [
|
|
@@ -3336,7 +3366,7 @@
|
|
|
3336
3366
|
{
|
|
3337
3367
|
"name": "insert debug marker",
|
|
3338
3368
|
"args": [
|
|
3339
|
-
{"name": "marker label", "type": "
|
|
3369
|
+
{"name": "marker label", "type": "string view"}
|
|
3340
3370
|
]
|
|
3341
3371
|
},
|
|
3342
3372
|
{
|
|
@@ -3346,7 +3376,7 @@
|
|
|
3346
3376
|
{
|
|
3347
3377
|
"name": "push debug group",
|
|
3348
3378
|
"args": [
|
|
3349
|
-
{"name": "group label", "type": "
|
|
3379
|
+
{"name": "group label", "type": "string view"}
|
|
3350
3380
|
]
|
|
3351
3381
|
},
|
|
3352
3382
|
{
|
|
@@ -3427,7 +3457,7 @@
|
|
|
3427
3457
|
"name": "set label",
|
|
3428
3458
|
"returns": "void",
|
|
3429
3459
|
"args": [
|
|
3430
|
-
{"name": "label", "type": "
|
|
3460
|
+
{"name": "label", "type": "string view"}
|
|
3431
3461
|
]
|
|
3432
3462
|
}
|
|
3433
3463
|
]
|
|
@@ -3454,10 +3484,9 @@
|
|
|
3454
3484
|
"name": "set label",
|
|
3455
3485
|
"returns": "void",
|
|
3456
3486
|
"args": [
|
|
3457
|
-
{"name": "label", "type": "
|
|
3487
|
+
{"name": "label", "type": "string view"}
|
|
3458
3488
|
]
|
|
3459
3489
|
}
|
|
3460
|
-
|
|
3461
3490
|
]
|
|
3462
3491
|
},
|
|
3463
3492
|
|
|
@@ -3467,7 +3496,7 @@
|
|
|
3467
3496
|
"args": [
|
|
3468
3497
|
{"name": "status", "type": "request device status"},
|
|
3469
3498
|
{"name": "device", "type": "device", "optional": true},
|
|
3470
|
-
{"name": "message", "type": "
|
|
3499
|
+
{"name": "message", "type": "string view"},
|
|
3471
3500
|
{"name": "userdata", "type": "void *"}
|
|
3472
3501
|
]
|
|
3473
3502
|
},
|
|
@@ -3477,7 +3506,7 @@
|
|
|
3477
3506
|
"args": [
|
|
3478
3507
|
{"name": "status", "type": "request device status"},
|
|
3479
3508
|
{"name": "device", "type": "device", "optional": true},
|
|
3480
|
-
{"name": "message", "type": "
|
|
3509
|
+
{"name": "message", "type": "string view"}
|
|
3481
3510
|
]
|
|
3482
3511
|
},
|
|
3483
3512
|
"request device callback info": {
|
|
@@ -3513,7 +3542,7 @@
|
|
|
3513
3542
|
"extensible": "in",
|
|
3514
3543
|
"members": [
|
|
3515
3544
|
{"name": "module", "type": "shader module"},
|
|
3516
|
-
{"name": "entry point", "type": "
|
|
3545
|
+
{"name": "entry point", "type": "string view", "optional": true},
|
|
3517
3546
|
{"name": "constant count", "type": "size_t", "default": 0},
|
|
3518
3547
|
{"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"},
|
|
3519
3548
|
{"name": "buffer count", "type": "size_t", "default": 0},
|
|
@@ -3528,15 +3557,7 @@
|
|
|
3528
3557
|
{"name": "topology", "type": "primitive topology", "default": "triangle list"},
|
|
3529
3558
|
{"name": "strip index format", "type": "index format", "default": "undefined"},
|
|
3530
3559
|
{"name": "front face", "type": "front face", "default": "CCW"},
|
|
3531
|
-
{"name": "cull mode", "type": "cull mode", "default": "none"}
|
|
3532
|
-
]
|
|
3533
|
-
},
|
|
3534
|
-
|
|
3535
|
-
"primitive depth clip control": {
|
|
3536
|
-
"category": "structure",
|
|
3537
|
-
"chained": "in",
|
|
3538
|
-
"chain roots": ["primitive state"],
|
|
3539
|
-
"members": [
|
|
3560
|
+
{"name": "cull mode", "type": "cull mode", "default": "none"},
|
|
3540
3561
|
{"name": "unclipped depth", "type": "bool", "default": "false"}
|
|
3541
3562
|
]
|
|
3542
3563
|
},
|
|
@@ -3546,7 +3567,7 @@
|
|
|
3546
3567
|
"extensible": "in",
|
|
3547
3568
|
"members": [
|
|
3548
3569
|
{"name": "format", "type": "texture format"},
|
|
3549
|
-
{"name": "depth write enabled", "type": "bool", "default": "
|
|
3570
|
+
{"name": "depth write enabled", "type": "optional bool", "default": "undefined"},
|
|
3550
3571
|
{"name": "depth compare", "type": "compare function", "default": "undefined"},
|
|
3551
3572
|
{"name": "stencil front", "type": "stencil face state"},
|
|
3552
3573
|
{"name": "stencil back", "type": "stencil face state"},
|
|
@@ -3558,16 +3579,6 @@
|
|
|
3558
3579
|
]
|
|
3559
3580
|
},
|
|
3560
3581
|
|
|
3561
|
-
"depth stencil state depth write defined dawn": {
|
|
3562
|
-
"tags": ["dawn"],
|
|
3563
|
-
"category": "structure",
|
|
3564
|
-
"chained": "in",
|
|
3565
|
-
"chain roots": ["depth stencil state"],
|
|
3566
|
-
"members": [
|
|
3567
|
-
{"name": "depth write defined", "type": "bool"}
|
|
3568
|
-
]
|
|
3569
|
-
},
|
|
3570
|
-
|
|
3571
3582
|
"multisample state": {
|
|
3572
3583
|
"category": "structure",
|
|
3573
3584
|
"extensible": "in",
|
|
@@ -3583,7 +3594,7 @@
|
|
|
3583
3594
|
"extensible": "in",
|
|
3584
3595
|
"members": [
|
|
3585
3596
|
{"name": "module", "type": "shader module"},
|
|
3586
|
-
{"name": "entry point", "type": "
|
|
3597
|
+
{"name": "entry point", "type": "string view", "optional": true},
|
|
3587
3598
|
{"name": "constant count", "type": "size_t", "default": 0},
|
|
3588
3599
|
{"name": "constants", "type": "constant entry", "annotation": "const*", "length": "constant count"},
|
|
3589
3600
|
{"name": "target count", "type": "size_t"},
|
|
@@ -3621,7 +3632,7 @@
|
|
|
3621
3632
|
"category": "structure",
|
|
3622
3633
|
"extensible": "in",
|
|
3623
3634
|
"members": [
|
|
3624
|
-
{"name": "label", "type": "
|
|
3635
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
3625
3636
|
{"name": "layout", "type": "pipeline layout", "optional": true},
|
|
3626
3637
|
{"name": "vertex", "type": "vertex state"},
|
|
3627
3638
|
{"name": "primitive", "type": "primitive state"},
|
|
@@ -3638,7 +3649,7 @@
|
|
|
3638
3649
|
"name": "set label",
|
|
3639
3650
|
"returns": "void",
|
|
3640
3651
|
"args": [
|
|
3641
|
-
{"name": "label", "type": "
|
|
3652
|
+
{"name": "label", "type": "string view"}
|
|
3642
3653
|
]
|
|
3643
3654
|
}
|
|
3644
3655
|
]
|
|
@@ -3647,7 +3658,7 @@
|
|
|
3647
3658
|
"category": "structure",
|
|
3648
3659
|
"extensible": "in",
|
|
3649
3660
|
"members": [
|
|
3650
|
-
{"name": "label", "type": "
|
|
3661
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
3651
3662
|
{"name": "address mode u", "type": "address mode", "default": "clamp to edge"},
|
|
3652
3663
|
{"name": "address mode v", "type": "address mode", "default": "clamp to edge"},
|
|
3653
3664
|
{"name": "address mode w", "type": "address mode", "default": "clamp to edge"},
|
|
@@ -3692,7 +3703,7 @@
|
|
|
3692
3703
|
"name": "set label",
|
|
3693
3704
|
"returns": "void",
|
|
3694
3705
|
"args": [
|
|
3695
|
-
{"name": "label", "type": "
|
|
3706
|
+
{"name": "label", "type": "string view"}
|
|
3696
3707
|
]
|
|
3697
3708
|
}
|
|
3698
3709
|
]
|
|
@@ -3701,21 +3712,14 @@
|
|
|
3701
3712
|
"category": "structure",
|
|
3702
3713
|
"extensible": "in",
|
|
3703
3714
|
"members": [
|
|
3704
|
-
{"name": "label", "type": "
|
|
3705
|
-
{"name": "hint count", "type": "size_t", "default": 0, "tags": ["upstream"]},
|
|
3706
|
-
{"name": "hints", "type": "shader module compilation hint", "annotation": "const*", "length": "hint count", "tags": ["upstream"]}
|
|
3707
|
-
]
|
|
3708
|
-
},
|
|
3709
|
-
"shader module compilation hint": {
|
|
3710
|
-
"category": "structure",
|
|
3711
|
-
"extensible": "in",
|
|
3712
|
-
"tags": ["upstream"],
|
|
3713
|
-
"members": [
|
|
3714
|
-
{"name": "entry point", "type": "char", "annotation": "const*", "length": "strlen"},
|
|
3715
|
-
{"name": "layout", "type": "pipeline layout"}
|
|
3715
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
3716
3716
|
]
|
|
3717
3717
|
},
|
|
3718
3718
|
"shader module SPIRV descriptor": {
|
|
3719
|
+
"category": "typedef",
|
|
3720
|
+
"type": "shader source SPIRV"
|
|
3721
|
+
},
|
|
3722
|
+
"shader source SPIRV": {
|
|
3719
3723
|
"category": "structure",
|
|
3720
3724
|
"chained": "in",
|
|
3721
3725
|
"chain roots": ["shader module descriptor"],
|
|
@@ -3725,11 +3729,15 @@
|
|
|
3725
3729
|
]
|
|
3726
3730
|
},
|
|
3727
3731
|
"shader module WGSL descriptor": {
|
|
3732
|
+
"category": "typedef",
|
|
3733
|
+
"type": "shader source WGSL"
|
|
3734
|
+
},
|
|
3735
|
+
"shader source WGSL": {
|
|
3728
3736
|
"category": "structure",
|
|
3729
3737
|
"chained": "in",
|
|
3730
3738
|
"chain roots": ["shader module descriptor"],
|
|
3731
3739
|
"members": [
|
|
3732
|
-
{"name": "code", "type": "
|
|
3740
|
+
{"name": "code", "type": "string view"}
|
|
3733
3741
|
]
|
|
3734
3742
|
},
|
|
3735
3743
|
"dawn shader module SPIRV options descriptor": {
|
|
@@ -3809,13 +3817,6 @@
|
|
|
3809
3817
|
{"name": "surface texture", "type": "surface texture", "annotation": "*"}
|
|
3810
3818
|
]
|
|
3811
3819
|
},
|
|
3812
|
-
{
|
|
3813
|
-
"name": "get preferred format",
|
|
3814
|
-
"returns": "texture format",
|
|
3815
|
-
"args": [
|
|
3816
|
-
{"name": "adapter", "type": "adapter"}
|
|
3817
|
-
]
|
|
3818
|
-
},
|
|
3819
3820
|
{
|
|
3820
3821
|
"name": "present",
|
|
3821
3822
|
"returns": "void",
|
|
@@ -3828,10 +3829,9 @@
|
|
|
3828
3829
|
},
|
|
3829
3830
|
{
|
|
3830
3831
|
"name": "set label",
|
|
3831
|
-
"tags": [],
|
|
3832
3832
|
"returns": "void",
|
|
3833
3833
|
"args": [
|
|
3834
|
-
{"name": "label", "type": "
|
|
3834
|
+
{"name": "label", "type": "string view"}
|
|
3835
3835
|
]
|
|
3836
3836
|
}
|
|
3837
3837
|
]
|
|
@@ -3840,28 +3840,43 @@
|
|
|
3840
3840
|
"category": "structure",
|
|
3841
3841
|
"extensible": "in",
|
|
3842
3842
|
"members": [
|
|
3843
|
-
{"name": "label", "type": "
|
|
3843
|
+
{"name": "label", "type": "string view", "optional": true}
|
|
3844
3844
|
]
|
|
3845
3845
|
},
|
|
3846
3846
|
"surface descriptor from android native window": {
|
|
3847
|
+
"category": "typedef",
|
|
3848
|
+
"type": "surface source android native window",
|
|
3849
|
+
"tags": ["art", "native"]
|
|
3850
|
+
},
|
|
3851
|
+
"surface source android native window": {
|
|
3847
3852
|
"category": "structure",
|
|
3848
3853
|
"chained": "in",
|
|
3849
3854
|
"chain roots": ["surface descriptor"],
|
|
3850
3855
|
"tags": ["art", "native"],
|
|
3851
3856
|
"members": [
|
|
3852
|
-
{"name": "window", "type": "void
|
|
3857
|
+
{"name": "window", "type": "void *"}
|
|
3853
3858
|
]
|
|
3854
3859
|
},
|
|
3855
3860
|
"surface descriptor from canvas HTML selector": {
|
|
3861
|
+
"category": "typedef",
|
|
3862
|
+
"type": "surface source canvas HTML selector _Emscripten",
|
|
3863
|
+
"tags": ["emscripten"]
|
|
3864
|
+
},
|
|
3865
|
+
"surface source canvas HTML selector _Emscripten": {
|
|
3856
3866
|
"category": "structure",
|
|
3857
3867
|
"chained": "in",
|
|
3858
3868
|
"chain roots": ["surface descriptor"],
|
|
3859
3869
|
"tags": ["emscripten"],
|
|
3860
3870
|
"members": [
|
|
3861
|
-
{"name": "selector", "type": "
|
|
3871
|
+
{"name": "selector", "type": "string view"}
|
|
3862
3872
|
]
|
|
3863
3873
|
},
|
|
3864
3874
|
"surface descriptor from metal layer": {
|
|
3875
|
+
"category": "typedef",
|
|
3876
|
+
"type": "surface source metal layer",
|
|
3877
|
+
"tags": ["native"]
|
|
3878
|
+
},
|
|
3879
|
+
"surface source metal layer": {
|
|
3865
3880
|
"category": "structure",
|
|
3866
3881
|
"chained": "in",
|
|
3867
3882
|
"chain roots": ["surface descriptor"],
|
|
@@ -3871,6 +3886,11 @@
|
|
|
3871
3886
|
]
|
|
3872
3887
|
},
|
|
3873
3888
|
"surface descriptor from windows HWND": {
|
|
3889
|
+
"category": "typedef",
|
|
3890
|
+
"type": "surface source windows HWND",
|
|
3891
|
+
"tags": ["native"]
|
|
3892
|
+
},
|
|
3893
|
+
"surface source windows HWND": {
|
|
3874
3894
|
"category": "structure",
|
|
3875
3895
|
"chained": "in",
|
|
3876
3896
|
"chain roots": ["surface descriptor"],
|
|
@@ -3881,6 +3901,11 @@
|
|
|
3881
3901
|
]
|
|
3882
3902
|
},
|
|
3883
3903
|
"surface descriptor from xcb window": {
|
|
3904
|
+
"category": "typedef",
|
|
3905
|
+
"type": "surface source XCB window",
|
|
3906
|
+
"tags": ["native"]
|
|
3907
|
+
},
|
|
3908
|
+
"surface source XCB window": {
|
|
3884
3909
|
"category": "structure",
|
|
3885
3910
|
"chained": "in",
|
|
3886
3911
|
"chain roots": ["surface descriptor"],
|
|
@@ -3891,6 +3916,11 @@
|
|
|
3891
3916
|
]
|
|
3892
3917
|
},
|
|
3893
3918
|
"surface descriptor from xlib window": {
|
|
3919
|
+
"category": "typedef",
|
|
3920
|
+
"type": "surface source xlib window",
|
|
3921
|
+
"tags": ["native"]
|
|
3922
|
+
},
|
|
3923
|
+
"surface source xlib window": {
|
|
3894
3924
|
"category": "structure",
|
|
3895
3925
|
"chained": "in",
|
|
3896
3926
|
"chain roots": ["surface descriptor"],
|
|
@@ -3901,6 +3931,11 @@
|
|
|
3901
3931
|
]
|
|
3902
3932
|
},
|
|
3903
3933
|
"surface descriptor from wayland surface": {
|
|
3934
|
+
"category": "typedef",
|
|
3935
|
+
"type": "surface source wayland surface",
|
|
3936
|
+
"tags": ["native"]
|
|
3937
|
+
},
|
|
3938
|
+
"surface source wayland surface": {
|
|
3904
3939
|
"category": "structure",
|
|
3905
3940
|
"chained": "in",
|
|
3906
3941
|
"chain roots": ["surface descriptor"],
|
|
@@ -3928,28 +3963,6 @@
|
|
|
3928
3963
|
{"name": "swap chain panel", "type": "void", "annotation": "*"}
|
|
3929
3964
|
]
|
|
3930
3965
|
},
|
|
3931
|
-
"swap chain": {
|
|
3932
|
-
"category": "object",
|
|
3933
|
-
"tags": ["art", "dawn", "emscripten"],
|
|
3934
|
-
"methods": [
|
|
3935
|
-
{"name": "get current texture view", "returns": "texture view"},
|
|
3936
|
-
{"name": "get current texture", "returns": "texture", "tags": ["dawn"]},
|
|
3937
|
-
{"name": "present"}
|
|
3938
|
-
]
|
|
3939
|
-
},
|
|
3940
|
-
"swap chain descriptor": {
|
|
3941
|
-
"category": "structure",
|
|
3942
|
-
"tags": ["art", "dawn", "emscripten"],
|
|
3943
|
-
"extensible": "in",
|
|
3944
|
-
"members": [
|
|
3945
|
-
{"name": "label", "type": "char", "annotation": "const*", "length": "strlen", "optional": true},
|
|
3946
|
-
{"name": "usage", "type": "texture usage"},
|
|
3947
|
-
{"name": "format", "type": "texture format"},
|
|
3948
|
-
{"name": "width", "type": "uint32_t"},
|
|
3949
|
-
{"name": "height", "type": "uint32_t"},
|
|
3950
|
-
{"name": "present mode", "type": "present mode"}
|
|
3951
|
-
]
|
|
3952
|
-
},
|
|
3953
3966
|
"surface texture": {
|
|
3954
3967
|
"category": "structure",
|
|
3955
3968
|
"members": [
|
|
@@ -3962,52 +3975,50 @@
|
|
|
3962
3975
|
"category": "enum",
|
|
3963
3976
|
"emscripten_no_enum_table": true,
|
|
3964
3977
|
"values": [
|
|
3965
|
-
{"value": 1, "name": "shader
|
|
3966
|
-
{"value": 2, "name": "shader
|
|
3967
|
-
{"value": 3, "name": "
|
|
3968
|
-
{"value": 4, "name": "
|
|
3978
|
+
{"value": 1, "name": "shader source SPIRV"},
|
|
3979
|
+
{"value": 2, "name": "shader source WGSL"},
|
|
3980
|
+
{"value": 3, "name": "render pass max draw count"},
|
|
3981
|
+
{"value": 4, "name": "surface source metal layer"},
|
|
3982
|
+
{"value": 5, "name": "surface source windows HWND"},
|
|
3983
|
+
{"value": 6, "name": "surface source xlib window"},
|
|
3984
|
+
{"value": 7, "name": "surface source wayland surface"},
|
|
3985
|
+
{"value": 8, "name": "surface source android native window"},
|
|
3986
|
+
{"value": 9, "name": "surface source XCB window"},
|
|
3969
3987
|
|
|
3970
3988
|
{"value": 0, "name": "texture binding view dimension descriptor", "tags": ["compat"]},
|
|
3971
3989
|
|
|
3972
|
-
{"value": 0, "name": "surface
|
|
3973
|
-
|
|
3974
|
-
{"value": 0, "name": "surface descriptor from metal layer", "tags": ["native"]},
|
|
3975
|
-
{"value": 1, "name": "surface descriptor from windows HWND", "tags": ["native"]},
|
|
3976
|
-
{"value": 2, "name": "surface descriptor from xlib window", "tags": ["native"]},
|
|
3977
|
-
{"value": 3, "name": "surface descriptor from wayland surface", "tags": ["native"]},
|
|
3978
|
-
{"value": 4, "name": "surface descriptor from android native window", "tags": ["native"]},
|
|
3979
|
-
{"value": 5, "name": "surface descriptor from xcb window", "tags": ["native"]},
|
|
3990
|
+
{"value": 0, "name": "surface source canvas HTML selector _Emscripten", "tags": ["emscripten"]},
|
|
3980
3991
|
|
|
3981
3992
|
{"value": 0, "name": "surface descriptor from windows core window", "tags": ["dawn"]},
|
|
3982
3993
|
{"value": 1, "name": "external texture binding entry", "tags": ["dawn"]},
|
|
3983
3994
|
{"value": 2, "name": "external texture binding layout", "tags": ["dawn"]},
|
|
3984
3995
|
{"value": 3, "name": "surface descriptor from windows swap chain panel", "tags": ["dawn"]},
|
|
3985
|
-
{"value": 4, "name": "
|
|
3986
|
-
{"value": 5, "name": "dawn
|
|
3987
|
-
{"value": 6, "name": "dawn
|
|
3988
|
-
{"value": 7, "name": "dawn
|
|
3989
|
-
{"value": 8, "name": "dawn
|
|
3990
|
-
{"value": 9, "name": "dawn
|
|
3991
|
-
{"value": 10, "name": "dawn
|
|
3992
|
-
{"value": 11, "name": "dawn
|
|
3993
|
-
{"value": 12, "name": "
|
|
3994
|
-
{"value": 13, "name": "request adapter options
|
|
3995
|
-
{"value": 14, "name": "request adapter options
|
|
3996
|
-
{"value": 15, "name": "
|
|
3997
|
-
{"value": 16, "name": "
|
|
3998
|
-
{"value": 17, "name": "
|
|
3999
|
-
{"value": 18, "name": "
|
|
4000
|
-
{"value": 19, "name": "
|
|
4001
|
-
{"value": 20, "name": "
|
|
4002
|
-
{"value": 21, "name": "adapter properties
|
|
4003
|
-
{"value": 22, "name": "adapter properties
|
|
4004
|
-
{"value": 23, "name": "
|
|
4005
|
-
{"value": 24, "name": "dawn
|
|
4006
|
-
{"value": 25, "name": "dawn
|
|
4007
|
-
{"value": 26, "name": "
|
|
4008
|
-
{"value": 27, "name": "
|
|
4009
|
-
{"value": 28, "name": "
|
|
4010
|
-
{"value": 29, "name": "
|
|
3996
|
+
{"value": 4, "name": "dawn texture internal usage descriptor", "tags": ["dawn"]},
|
|
3997
|
+
{"value": 5, "name": "dawn encoder internal usage descriptor", "tags": ["dawn"]},
|
|
3998
|
+
{"value": 6, "name": "dawn instance descriptor", "tags": ["dawn", "native"]},
|
|
3999
|
+
{"value": 7, "name": "dawn cache device descriptor", "tags": ["dawn", "native"]},
|
|
4000
|
+
{"value": 8, "name": "dawn adapter properties power preference", "tags": ["dawn", "native"]},
|
|
4001
|
+
{"value": 9, "name": "dawn buffer descriptor error info from wire client", "tags": ["dawn"]},
|
|
4002
|
+
{"value": 10, "name": "dawn toggles descriptor", "tags": ["dawn", "native"]},
|
|
4003
|
+
{"value": 11, "name": "dawn shader module SPIRV options descriptor", "tags": ["dawn"]},
|
|
4004
|
+
{"value": 12, "name": "request adapter options LUID", "tags": ["dawn", "native"]},
|
|
4005
|
+
{"value": 13, "name": "request adapter options get GL proc", "tags": ["dawn", "native"]},
|
|
4006
|
+
{"value": 14, "name": "request adapter options D3D11 device", "tags": ["dawn", "native"]},
|
|
4007
|
+
{"value": 15, "name": "dawn render pass color attachment render to single sampled", "tags": ["dawn"]},
|
|
4008
|
+
{"value": 16, "name": "render pass pixel local storage", "tags": ["dawn"]},
|
|
4009
|
+
{"value": 17, "name": "pipeline layout pixel local storage", "tags": ["dawn"]},
|
|
4010
|
+
{"value": 18, "name": "buffer host mapped pointer", "tags": ["dawn"]},
|
|
4011
|
+
{"value": 19, "name": "dawn experimental subgroup limits", "tags": ["dawn"]},
|
|
4012
|
+
{"value": 20, "name": "adapter properties memory heaps", "tags": ["dawn"]},
|
|
4013
|
+
{"value": 21, "name": "adapter properties D3D", "tags": ["dawn"]},
|
|
4014
|
+
{"value": 22, "name": "adapter properties vk", "tags": ["dawn"]},
|
|
4015
|
+
{"value": 23, "name": "dawn compute pipeline full subgroups", "tags": ["dawn"]},
|
|
4016
|
+
{"value": 24, "name": "dawn wire WGSL control", "tags": ["dawn"]},
|
|
4017
|
+
{"value": 25, "name": "dawn WGSL blocklist", "tags": ["dawn", "native"]},
|
|
4018
|
+
{"value": 26, "name": "drm format capabilities", "tags": ["dawn"]},
|
|
4019
|
+
{"value": 27, "name": "shader module compilation options", "tags": ["dawn"]},
|
|
4020
|
+
{"value": 28, "name": "color target state expand resolve texture dawn", "tags": ["dawn"]},
|
|
4021
|
+
{"value": 29, "name": "render pass descriptor expand resolve rect", "tags": ["dawn"]},
|
|
4011
4022
|
|
|
4012
4023
|
{"value": 30, "name": "shared texture memory vk dedicated allocation descriptor", "tags": ["dawn", "native"]},
|
|
4013
4024
|
{"value": 31, "name": "shared texture memory a hardware buffer descriptor", "tags": ["dawn", "native"]},
|
|
@@ -4037,7 +4048,9 @@
|
|
|
4037
4048
|
{"value": 55, "name": "static sampler binding layout", "tags": ["dawn"]},
|
|
4038
4049
|
{"value": 56, "name": "y cb cr vk descriptor", "tags": ["dawn"]},
|
|
4039
4050
|
{"value": 57, "name": "shared texture memory a hardware buffer properties", "tags": ["dawn", "native"]},
|
|
4040
|
-
{"value": 58, "name": "a hardware buffer properties", "tags": ["dawn", "native"]}
|
|
4051
|
+
{"value": 58, "name": "a hardware buffer properties", "tags": ["dawn", "native"]},
|
|
4052
|
+
{"value": 59, "name": "dawn experimental immediate data limits", "tags": ["dawn"]}
|
|
4053
|
+
|
|
4041
4054
|
]
|
|
4042
4055
|
},
|
|
4043
4056
|
"texture": {
|
|
@@ -4062,7 +4075,7 @@
|
|
|
4062
4075
|
"name": "set label",
|
|
4063
4076
|
"returns": "void",
|
|
4064
4077
|
"args": [
|
|
4065
|
-
{"name": "label", "type": "
|
|
4078
|
+
{"name": "label", "type": "string view"}
|
|
4066
4079
|
]
|
|
4067
4080
|
},
|
|
4068
4081
|
{
|
|
@@ -4139,7 +4152,7 @@
|
|
|
4139
4152
|
"category": "structure",
|
|
4140
4153
|
"extensible": "in",
|
|
4141
4154
|
"members": [
|
|
4142
|
-
{"name": "label", "type": "
|
|
4155
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
4143
4156
|
{"name": "usage", "type": "texture usage"},
|
|
4144
4157
|
{"name": "dimension", "type": "texture dimension", "default": "2D"},
|
|
4145
4158
|
{"name": "size", "type": "extent 3D"},
|
|
@@ -4310,14 +4323,15 @@
|
|
|
4310
4323
|
"category": "structure",
|
|
4311
4324
|
"extensible": "in",
|
|
4312
4325
|
"members": [
|
|
4313
|
-
{"name": "label", "type": "
|
|
4326
|
+
{"name": "label", "type": "string view", "optional": true},
|
|
4314
4327
|
{"name": "format", "type": "texture format", "default": "undefined"},
|
|
4315
4328
|
{"name": "dimension", "type": "texture view dimension", "default": "undefined"},
|
|
4316
4329
|
{"name": "base mip level", "type": "uint32_t", "default": "0"},
|
|
4317
4330
|
{"name": "mip level count", "type": "uint32_t", "default": "WGPU_MIP_LEVEL_COUNT_UNDEFINED"},
|
|
4318
4331
|
{"name": "base array layer", "type": "uint32_t", "default": "0"},
|
|
4319
4332
|
{"name": "array layer count", "type": "uint32_t", "default": "WGPU_ARRAY_LAYER_COUNT_UNDEFINED"},
|
|
4320
|
-
{"name": "aspect", "type": "texture aspect", "default": "all"}
|
|
4333
|
+
{"name": "aspect", "type": "texture aspect", "default": "all"},
|
|
4334
|
+
{"name": "usage", "type": "texture usage", "default": "none"}
|
|
4321
4335
|
]
|
|
4322
4336
|
},
|
|
4323
4337
|
"texture view": {
|
|
@@ -4327,7 +4341,7 @@
|
|
|
4327
4341
|
"name": "set label",
|
|
4328
4342
|
"returns": "void",
|
|
4329
4343
|
"args": [
|
|
4330
|
-
{"name": "label", "type": "
|
|
4344
|
+
{"name": "label", "type": "string view"}
|
|
4331
4345
|
]
|
|
4332
4346
|
}
|
|
4333
4347
|
]
|
|
@@ -4460,6 +4474,11 @@
|
|
|
4460
4474
|
"type": "uint32_t",
|
|
4461
4475
|
"value": "UINT32_MAX"
|
|
4462
4476
|
},
|
|
4477
|
+
"strlen" : {
|
|
4478
|
+
"category": "constant",
|
|
4479
|
+
"type": "size_t",
|
|
4480
|
+
"value": "SIZE_MAX"
|
|
4481
|
+
},
|
|
4463
4482
|
"ObjectType": {
|
|
4464
4483
|
"_comment": "Only used for the wire",
|
|
4465
4484
|
"category": "native"
|
|
@@ -4532,7 +4551,7 @@
|
|
|
4532
4551
|
"dawn adapter properties power preference": {
|
|
4533
4552
|
"category": "structure",
|
|
4534
4553
|
"chained": "out",
|
|
4535
|
-
"chain roots": ["adapter info"
|
|
4554
|
+
"chain roots": ["adapter info"],
|
|
4536
4555
|
"tags": ["dawn"],
|
|
4537
4556
|
"members": [
|
|
4538
4557
|
{"name": "power preference", "type": "power preference", "default": "undefined"}
|
|
@@ -4560,7 +4579,7 @@
|
|
|
4560
4579
|
"adapter properties memory heaps": {
|
|
4561
4580
|
"category": "structure",
|
|
4562
4581
|
"chained": "out",
|
|
4563
|
-
"chain roots": ["adapter info"
|
|
4582
|
+
"chain roots": ["adapter info"],
|
|
4564
4583
|
"tags": ["dawn"],
|
|
4565
4584
|
"members": [
|
|
4566
4585
|
{"name": "heap count", "type": "size_t"},
|
|
@@ -4570,7 +4589,7 @@
|
|
|
4570
4589
|
"adapter properties D3D": {
|
|
4571
4590
|
"category": "structure",
|
|
4572
4591
|
"chained": "out",
|
|
4573
|
-
"chain roots": ["adapter info"
|
|
4592
|
+
"chain roots": ["adapter info"],
|
|
4574
4593
|
"tags": ["dawn"],
|
|
4575
4594
|
"members": [
|
|
4576
4595
|
{"name": "shader model", "type": "uint32_t"}
|
|
@@ -4579,7 +4598,7 @@
|
|
|
4579
4598
|
"adapter properties vk": {
|
|
4580
4599
|
"category": "structure",
|
|
4581
4600
|
"chained": "out",
|
|
4582
|
-
"chain roots": ["adapter info"
|
|
4601
|
+
"chain roots": ["adapter info"],
|
|
4583
4602
|
"tags": ["dawn"],
|
|
4584
4603
|
"members": [
|
|
4585
4604
|
{"name": "driver version", "type": "uint32_t"}
|