-
Notifications
You must be signed in to change notification settings - Fork 0
/
new_registry.rng
1623 lines (1622 loc) · 74.6 KB
/
new_registry.rng
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<div>
<a:documentation>All elements and primary content models</a:documentation>
<start>
<ref name="reg.root-element.model"/>
</start>
<define name="reg.root-element.model">
<ref name="reg.registry.elem"/>
</define>
<define name="reg.registry.elem">
<element name="registry">
<a:documentation>Base element. Contains all of the information for Vulkan.</a:documentation>
<ref name="reg.registry.contents"/>
</element>
</define>
<define name="reg.registry.contents">
<ref name="reg.registry.attlist"/>
<optional>
<ref name="reg.notation.elem"/>
</optional>
<optional>
<ref name="reg.vendorids.elem"/>
</optional>
<optional>
<ref name="reg.tags.elem"/>
</optional>
<ref name="reg.definitions.elem"/>
<optional>
<ref name="reg.constants.elem"/>
</optional>
<optional>
<ref name="reg.enums.elem"/>
</optional>
<ref name="reg.commands.elem"/>
<ref name="reg.features.elem"/>
<optional>
<ref name="reg.extensions.elem"/>
</optional>
</define>
<define name="reg.registry.attlist">
<empty/>
</define>
<define name="reg.notation.elem">
<element name="notation">
<a:documentation>A textual annotation regarding a particular element.</a:documentation>
<text/>
</element>
</define>
<define name="reg.named.ident.model">
<a:documentation>Attributes for (almost) any element that represents an identifier in Vulkan.
All such identifiers can have a notation.</a:documentation>
<ref name="reg.api.name.attrib"/>
<optional>
<ref name="reg.notation.attrib"/>
</optional>
</define>
<div>
<a:documentation>Front matter: vendorids and tags.</a:documentation>
<define name="reg.vendorids.elem">
<element name="vendorids">
<a:documentation>The list of all vendorid elements.</a:documentation>
<ref name="reg.vendorids.contents"/>
</element>
</define>
<define name="reg.vendorids.contents">
<ref name="reg.vendorids.attlist"/>
<oneOrMore>
<ref name="reg.vendorid.elem"/>
</oneOrMore>
</define>
<define name="reg.vendorids.attlist">
<empty/>
</define>
<define name="reg.vendorid.elem">
<element name="vendorid">
<a:documentation>List of identifiers for vendors.</a:documentation>
<ref name="reg.vendorid.contents"/>
</element>
</define>
<define name="reg.vendorid.contents">
<ref name="reg.vendorid.attlist"/>
</define>
<define name="reg.vendorid.attlist">
<ref name="reg.any.name.attrib"/>
<ref name="reg.vendorid.id.attrib"/>
<optional>
<ref name="reg.notation.attrib"/>
</optional>
</define>
<define name="reg.tags.elem">
<element name="tags">
<a:documentation>List of authors</a:documentation>
<ref name="reg.tags.contents"/>
</element>
</define>
<define name="reg.tags.contents">
<ref name="reg.tags.attlist"/>
<oneOrMore>
<ref name="reg.tag.elem"/>
</oneOrMore>
</define>
<define name="reg.tags.attlist">
<empty/>
</define>
<define name="reg.tag.elem">
<element name="tag">
<a:documentation>A single author for Vulkan</a:documentation>
<ref name="reg.tag.contents"/>
</element>
</define>
<define name="reg.tag.contents">
<ref name="reg.tag.attlist"/>
</define>
<define name="reg.tag.attlist">
<ref name="reg.any.name.attrib"/>
<ref name="reg.tag.author.attrib"/>
<ref name="reg.tag.contact.attrib"/>
<optional>
<ref name="reg.notation.attrib"/>
</optional>
</define>
</div>
<div>
<a:documentation>Definition elements.</a:documentation>
<define name="reg.definitions.elem">
<element name="definitions">
<a:documentation>List of all definitions used by Vulkan </a:documentation>
<ref name="reg.definitions.contents"/>
</element>
</define>
<define name="reg.definitions.contents">
<ref name="reg.definitions.attlist"/>
<oneOrMore>
<ref name="reg.definitions.model"/>
</oneOrMore>
</define>
<define name="reg.definitions.attlist">
<empty/>
</define>
<define name="reg.definitions.model">
<choice>
<ref name="reg.include.elem"/>
<ref name="reg.typedef.elem">
<a:documentation>Formerly `basetype`</a:documentation>
</ref>
<ref name="reg.reference.elem">
<a:documentation>Formerly no category. Simply specifies the existence of a named type that
usually is brought in by a `requires` attribute.</a:documentation>
</ref>
<ref name="reg.def.bitmask.elem"/>
<ref name="reg.struct.elem"/>
<ref name="reg.union.elem"/>
<ref name="reg.define.elem"/>
<ref name="reg.handle.elem"/>
<ref name="reg.def.enumeration.elem"/>
<ref name="reg.funcptr.elem"/>
</choice>
</define>
<define name="reg.include.elem">
<element name="include">
<a:documentation>Definition that represents a file being included, which is named.
The `name` attribute does double-duty, in that it also includes text.</a:documentation>
<ref name="reg.include.contents"/>
</element>
</define>
<define name="reg.include.contents">
<ref name="reg.include.attlist"/>
</define>
<define name="reg.include.attlist">
<ref name="reg.any.name.attrib">
<a:documentation>An include's `name` is a full pathname, not just an C/C++ identifier.</a:documentation>
</ref>
<optional>
<ref name="reg.notation.attrib"/>
</optional>
<ref name="reg.include.style.attrib"/>
<optional>
<ref name="reg.include.need-ext.attrib"/>
</optional>
</define>
<define name="reg.typedef.elem">
<element name="typedef">
<a:documentation>Definition that defines a new name for an existing type. </a:documentation>
<ref name="reg.typedef.contents"/>
</element>
</define>
<define name="reg.typedef.contents">
<ref name="reg.typedef.attlist"/>
</define>
<define name="reg.typedef.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.typedef.basetype.attrib"/>
</define>
<define name="reg.reference.elem">
<element name="reference">
<a:documentation>Definition that references a type that comes from an include file.</a:documentation>
<ref name="reg.reference.contents"/>
</element>
</define>
<define name="reg.reference.contents">
<ref name="reg.reference.attlist"/>
</define>
<define name="reg.reference.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.reference.include.attrib"/>
</define>
<define name="reg.def.bitmask.elem">
<element name="bitmask">
<a:documentation>Definition that specifies a bitmask, using a particular existing type.
Contents are the same as `typedef`.
The possible bits can be defined by a specific, referenced enumeration.</a:documentation>
<ref name="reg.def.bitmask.contents"/>
</element>
</define>
<define name="reg.def.bitmask.contents">
<ref name="reg.def.bitmask.attlist"/>
</define>
<define name="reg.def.bitmask.attlist">
<ref name="reg.typedef.attlist"/>
<optional>
<ref name="reg.bitmask.enumref.attrib"/>
</optional>
</define>
<define name="reg.define.elem">
<element name="define">
<a:documentation>Definition that represents a C #define statement.</a:documentation>
<ref name="reg.define.contents"/>
</element>
</define>
<define name="reg.define.contents">
<a:documentation>The 3 forms of defines:
#define name C-expression
#define name(params) C-expression
C-expression
In all cases, C-expression should be verbatim copied. The question is whether the text
contains the actual "#define" internally or not.
Defines can also reference other definitions. </a:documentation>
<ref name="reg.define.attlist"/>
<optional>
<ref name="reg.comment.elem"/>
</optional>
<ref name="reg.define.model"/>
</define>
<define name="reg.define.attlist">
<ref name="reg.named.ident.model"/>
<optional>
<ref name="reg.define.disabled.attrib"/>
</optional>
</define>
<define name="reg.comment.elem">
<element name="comment">
<a:documentation>Specifies a possibly multi-line in-language comment which is expected to be
placed near the element in which `comment` appears.</a:documentation>
<text/>
</element>
</define>
<define name="reg.define.model">
<choice>
<ref name="reg.define.value.attrib"/>
<ref name="reg.define.complex.model"/>
</choice>
</define>
<define name="reg.define.complex.model">
<optional>
<ref name="reg.define.replace.attrib"/>
</optional>
<zeroOrMore>
<ref name="reg.define.defref.elem"/>
</zeroOrMore>
<zeroOrMore>
<ref name="reg.define.param.elem"/>
</zeroOrMore>
<ref name="reg.c-expression.elem"/>
</define>
<define name="reg.define.defref.elem">
<element name="defref">
<a:documentation>Specifies a definition that is referenced in the C-expression.</a:documentation>
<ref name="reg.identifier.data"/>
</element>
</define>
<define name="reg.define.param.elem">
<element name="param">
<a:documentation>The name of a #define's parameter.</a:documentation>
<ref name="reg.identifier.data"/>
</element>
</define>
<define name="reg.c-expression.elem">
<element name="c-expression">
<a:documentation>Text that is intended to be used verbatim in C or C++ implementations.
If the `replace` attribute is not `true`, then the processor should
generate the `#define NAME(PARAMS)` part of the define before the c-expression.</a:documentation>
<text/>
</element>
</define>
<define name="reg.handle.elem">
<element name="handle">
<a:documentation>Creates a definition for a handle.</a:documentation>
<ref name="reg.handle.contents"/>
</element>
</define>
<define name="reg.handle.contents">
<ref name="reg.handle.attlist"/>
</define>
<define name="reg.handle.attlist">
<ref name="reg.named.ident.model"/>
<optional>
<ref name="reg.handle.parent.attrib"/>
</optional>
<ref name="reg.handle.type.attrib"/>
</define>
<define name="reg.def.enumeration.elem">
<element name="enumeration">
<a:documentation>Defines the name of an enumeration.
The members and base type of the enumeration are defined elsewhere.</a:documentation>
<ref name="reg.def.enumeration.contents"/>
</element>
</define>
<define name="reg.def.enumeration.contents">
<ref name="reg.def.enumeration.attlist"/>
</define>
<define name="reg.def.enumeration.attlist">
<ref name="reg.named.ident.model"/>
</define>
<define name="reg.struct.elem">
<element name="struct">
<a:documentation>Definition that represents a data structure.
Contains a list of members and optional validation information.</a:documentation>
<ref name="reg.struct.contents"/>
</element>
</define>
<define name="reg.struct.contents">
<ref name="reg.struct.attlist"/>
<oneOrMore>
<ref name="reg.struct.member.elem"/>
</oneOrMore>
<optional>
<ref name="reg.validity.elem"/>
</optional>
</define>
<define name="reg.struct.attlist">
<ref name="reg.named.ident.model"/>
<optional>
<ref name="reg.struct.is-return.attrib"/>
</optional>
</define>
<define name="reg.struct.member.elem">
<element name="member">
<a:documentation>Specifies a named member of a data structure.</a:documentation>
<ref name="reg.struct.member.contents"/>
</element>
</define>
<define name="reg.struct.member.contents">
<ref name="reg.struct.member.attlist"/>
</define>
<define name="reg.struct.member.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.typed.variable.model"/>
<optional>
<ref name="reg.struct.member.extension-structs.attrib"/>
</optional>
<optional>
<ref name="reg.struct.member.type-enums.attrib"/>
</optional>
</define>
<define name="reg.type.model">
<a:documentation>All of the attributes that represent the type of a
struct member, function parameter or return value.</a:documentation>
<ref name="reg.type.basetype.attrib"/>
<optional>
<ref name="reg.type.array.model"/>
</optional>
<optional>
<ref name="reg.type.const.attrib"/>
</optional>
<optional>
<ref name="reg.type.struct.attrib"/>
</optional>
<optional>
<ref name="reg.type.reference.attrib"/>
</optional>
</define>
<define name="reg.type.array.model">
<a:documentation>Can either be a static array or a dynamic array.
Which one is used changes the meaning of the `size` attribute.
Static arrays must have a `size`; dynamic do not.</a:documentation>
<choice>
<ref name="reg.type.static.array.model"/>
<ref name="reg.type.dynamic.array.model"/>
</choice>
</define>
<define name="reg.type.static.array.model">
<a:documentation>Static arrays have `array` set to "static" and the sizing attribute.</a:documentation>
<ref name="reg.type.static.array.attrib"/>
<ref name="reg.type.static.array.size.model"/>
</define>
<define name="reg.type.static.array.size.model">
<a:documentation>Static sizes can be integer constants or enumerator references.</a:documentation>
<choice>
<ref name="reg.type.static.array.size.attrib"/>
<ref name="reg.type.static.array.size-enumref.attrib"/>
</choice>
</define>
<define name="reg.type.dynamic.array.model">
<a:documentation>Dynamic arrays have `array` set to "dynamic", and may have
the `null-terminate` attribute, `size` attribute, or both.
If it has neither, then the size is not determinable.
If it has both, then the `null-terminate` size refers to a `char*` of
some form, with the `size` referring to the outer array.</a:documentation>
<ref name="reg.type.dynamic.array.attrib"/>
<optional>
<ref name="reg.type.dynamic.array.size.attrib"/>
</optional>
<optional>
<ref name="reg.type.dynamic.array.null-terminate.attrib"/>
</optional>
</define>
<define name="reg.typed.variable.model">
<a:documentation>Data model describing type information for a variable.
Variables have a type, but they also have additional data about
the purpose of the variable.</a:documentation>
<ref name="reg.type.model"/>
<optional>
<ref name="reg.variable.optional.attrib"/>
</optional>
<optional>
<ref name="reg.variable.auto-validity.attrib"/>
</optional>
<optional>
<ref name="reg.variable.inout.attrib"/>
</optional>
<optional>
<ref name="reg.variable.sync.attrib"/>
</optional>
</define>
<define name="reg.validity.elem">
<element name="validity">
<a:documentation>Defines validation text related to objects and commands.</a:documentation>
<ref name="reg.validity.contents"/>
</element>
</define>
<define name="reg.validity.contents">
<ref name="reg.validity.attlist"/>
<oneOrMore>
<ref name="reg.validity.usage.elem"/>
</oneOrMore>
</define>
<define name="reg.validity.attlist">
<empty/>
</define>
<define name="reg.validity.usage.elem">
<element name="usage">
<a:documentation>A specific validation rule, spelled out in documentation text.</a:documentation>
<ref name="reg.validity.usage.contents"/>
</element>
</define>
<define name="reg.validity.usage.contents">
<ref name="reg.validity.usage.attlist"/>
<ref name="reg.spec-language.data"/>
</define>
<define name="reg.validity.usage.attlist">
<empty/>
</define>
<define name="reg.union.elem">
<element name="union">
<a:documentation>Defines a union, where the object's value is only one of the members.</a:documentation>
<ref name="reg.union.contents"/>
</element>
</define>
<define name="reg.union.contents">
<ref name="reg.union.attlist"/>
<oneOrMore>
<ref name="reg.union.member.elem"/>
</oneOrMore>
</define>
<define name="reg.union.attlist">
<ref name="reg.named.ident.model"/>
</define>
<define name="reg.union.member.elem">
<element name="member">
<a:documentation>Specifies a named member of a union.</a:documentation>
<ref name="reg.union.member.contents"/>
</element>
</define>
<define name="reg.union.member.contents">
<ref name="reg.union.member.attlist"/>
</define>
<define name="reg.union.member.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.type.model"/>
</define>
<define name="reg.funcptr.elem">
<element name="funcptr">
<a:documentation>Defines a function pointer.</a:documentation>
<ref name="reg.funcptr.contents"/>
</element>
</define>
<define name="reg.funcptr.contents">
<a:documentation>If it has no function parameters, then it should be rendered out for C/C++ with just
"void" in the parameter list. And just "void" should not be in a `<type>` element, as it
does not qualify as a parameter type.</a:documentation>
<ref name="reg.funcptr.attlist"/>
<ref name="reg.return-type.elem"/>
<zeroOrMore>
<ref name="reg.param.elem"/>
</zeroOrMore>
</define>
<define name="reg.funcptr.attlist">
<ref name="reg.named.ident.model"/>
</define>
<define name="reg.return-type.elem">
<element name="return-type">
<ref name="reg.return-type.contents"/>
</element>
</define>
<define name="reg.return-type.contents">
<ref name="reg.return-type.attlist"/>
</define>
<define name="reg.return-type.attlist">
<ref name="reg.type.model"/>
<optional>
<ref name="reg.error-code.model"/>
</optional>
</define>
<define name="reg.error-code.model">
<ref name="reg.command.successcodes.attrib"/>
<ref name="reg.command.errorcodes.attrib"/>
</define>
<define name="reg.param.elem">
<element name="param">
<ref name="reg.param.contents"/>
</element>
</define>
<define name="reg.param.contents">
<ref name="reg.param.attlist"/>
</define>
<define name="reg.param.attlist">
<optional>
<ref name="reg.named.ident.model">
<a:documentation>Parameter names are not required for functions.</a:documentation>
</ref>
</optional>
<ref name="reg.typed.variable.model"/>
</define>
</div>
<div>
<a:documentation>Constants and Enumeration elements.</a:documentation>
<define name="reg.constants.elem">
<element name="constants">
<ref name="reg.constants.contents"/>
</element>
</define>
<define name="reg.constants.contents">
<ref name="reg.constants.attlist"/>
<oneOrMore>
<ref name="reg.constant.elem"/>
</oneOrMore>
</define>
<define name="reg.constants.attlist">
<empty/>
</define>
<define name="reg.constant.elem">
<element name="constant">
<a:documentation>Contains a named constant value that is not typed to an enumeration.</a:documentation>
<ref name="reg.constant.contents"/>
</element>
</define>
<define name="reg.constant.contents">
<ref name="reg.constant.attlist"/>
</define>
<define name="reg.constant.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.enum.value.model"/>
</define>
<define name="reg.enum.value.model">
<a:documentation>Enumerators can be decimal integers, C-expressions, bit positions, or hexadecimal bitmasks.</a:documentation>
<choice>
<ref name="reg.enum.number.attrib">
<a:documentation>Decimal integer</a:documentation>
</ref>
<ref name="reg.enum.hex.attrib">
<a:documentation>Unsigned hexadecimal value, mainly for bitmasks.</a:documentation>
</ref>
<ref name="reg.enum.bitpos.attrib">
<a:documentation>Bit position, to be transformed into a number by `1 << bitpos`.</a:documentation>
</ref>
<ref name="reg.enum.c-expression.attrib">
<a:documentation>C-expression that results in a number.</a:documentation>
</ref>
</choice>
</define>
<define name="reg.enums.elem">
<element name="enums">
<a:documentation>Contains both enumerations and bitmasks.</a:documentation>
<ref name="reg.enums.contents"/>
</element>
</define>
<define name="reg.enums.contents">
<ref name="reg.enums.attlist"/>
<oneOrMore>
<ref name="reg.enumeration.elem"/>
</oneOrMore>
</define>
<define name="reg.enums.attlist">
<empty/>
</define>
<define name="reg.enumeration.elem">
<element name="enumeration">
<ref name="reg.enumeration.contents"/>
</element>
</define>
<define name="reg.enumeration.contents">
<ref name="reg.enumeration.attlist"/>
<zeroOrMore>
<ref name="reg.enumeration.enum.elem">
<a:documentation>Empty enumerations are OK; extensions could fill them.</a:documentation>
</ref>
</zeroOrMore>
<zeroOrMore>
<ref name="reg.enumeration.unused-range.elem"/>
</zeroOrMore>
</define>
<define name="reg.enumeration.attlist">
<ref name="reg.named.ident.model"/>
<optional>
<ref name="reg.enum.purpose.attrib"/>
</optional>
<optional>
<ref name="reg.enum.range.model"/>
</optional>
</define>
<define name="reg.enum.range.model">
<ref name="reg.enum.range-start.attrib">
<a:documentation>Represents a range of enumerators.</a:documentation>
</ref>
<optional>
<ref name="reg.enum.range-end.attrib"/>
</optional>
</define>
<define name="reg.enumeration.enum.elem">
<element name="enum">
<ref name="reg.enumeration.enum.contents"/>
</element>
</define>
<define name="reg.enumeration.enum.contents">
<ref name="reg.enumeration.enum.attlist"/>
</define>
<define name="reg.enumeration.enum.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.enum.value.model"/>
</define>
<define name="reg.enumeration.unused-range.elem">
<element name="unused-range">
<ref name="reg.enumeration.unused-range.contents"/>
</element>
</define>
<define name="reg.enumeration.unused-range.contents">
<ref name="reg.enumeration.unused-range.attlist"/>
</define>
<define name="reg.enumeration.unused-range.attlist">
<ref name="reg.enum.range.model"/>
</define>
</div>
<div>
<a:documentation>Command elements</a:documentation>
<define name="reg.commands.elem">
<element name="commands">
<a:documentation>Defines a list of Vulkan entrypoints.</a:documentation>
<ref name="reg.commands.contents"/>
</element>
</define>
<define name="reg.commands.contents">
<ref name="reg.commands.attlist"/>
<oneOrMore>
<choice>
<ref name="reg.command.elem"/>
<ref name="reg.command-alias.elem"/>
</choice>
</oneOrMore>
</define>
<define name="reg.commands.attlist">
<empty/>
</define>
<define name="reg.command.elem">
<element name="command">
<a:documentation>Defines a single Vulkan entrypoint.</a:documentation>
<ref name="reg.command.contents"/>
</element>
</define>
<define name="reg.command.contents">
<ref name="reg.command.attlist"/>
<ref name="reg.return-type.elem"/>
<zeroOrMore>
<ref name="reg.param.elem"/>
</zeroOrMore>
<interleave>
<optional>
<ref name="reg.command.description.elem"/>
</optional>
<optional>
<ref name="reg.command.external-sync.elem"/>
</optional>
<optional>
<ref name="reg.validity.elem"/>
</optional>
</interleave>
</define>
<define name="reg.command.attlist">
<ref name="reg.named.ident.model"/>
<optional>
<ref name="reg.command.renderpass.attrib"/>
</optional>
<optional>
<ref name="reg.command.cmdbufferlevel.attrib"/>
</optional>
<optional>
<ref name="reg.command.queues.attrib"/>
</optional>
</define>
<define name="reg.command.description.elem">
<element name="description">
<a:documentation>Textual description of the command... in some form?</a:documentation>
<ref name="reg.command.description.contents"/>
</element>
</define>
<define name="reg.command.description.contents">
<ref name="reg.command.description.attlist"/>
<ref name="reg.spec-language.data"/>
</define>
<define name="reg.command.description.attlist">
<empty/>
</define>
<define name="reg.command.external-sync.elem">
<element name="external-sync">
<a:documentation>Describes instances of implicit external synchronizations.
These cannot be captured by the parameters themselves.</a:documentation>
<ref name="reg.command.external-sync.contents"/>
</element>
</define>
<define name="reg.command.external-sync.contents">
<ref name="reg.command.external-sync.attlist"/>
<oneOrMore>
<ref name="reg.external-sync.sync.elem"/>
</oneOrMore>
</define>
<define name="reg.command.external-sync.attlist">
<empty/>
</define>
<define name="reg.external-sync.sync.elem">
<element name="sync">
<a:documentation>A single aspect of implicit external synchronization.</a:documentation>
<ref name="reg.external-sync.sync.contents"/>
</element>
</define>
<define name="reg.external-sync.sync.contents">
<ref name="reg.external-sync.sync.attlist"/>
<ref name="reg.spec-language.data"/>
</define>
<define name="reg.external-sync.sync.attlist">
<empty/>
</define>
<define name="reg.command-alias.elem">
<element name="command-alias">
<a:documentation>Defines an alternate name for an existing command. All information about
the new command comes from the existing one.</a:documentation>
<ref name="reg.command-alias.contents"/>
</element>
</define>
<define name="reg.command-alias.contents">
<ref name="reg.command-alias.attlist"/>
</define>
<define name="reg.command-alias.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.command-alias.target.attrib"/>
</define>
</div>
<div>
<a:documentation>Features and Extensions</a:documentation>
<define name="reg.features.elem">
<element name="features">
<ref name="reg.features.contents"/>
</element>
</define>
<define name="reg.features.contents">
<ref name="reg.features.attlist"/>
<oneOrMore>
<ref name="reg.feature.elem"/>
</oneOrMore>
</define>
<define name="reg.features.attlist">
<empty/>
</define>
<define name="reg.feature.elem">
<element name="feature">
<a:documentation>Defines the base API for a Vulkan specification.
Represents a specific major/minor version of Vulkan.</a:documentation>
<ref name="reg.feature.contents"/>
</element>
</define>
<define name="reg.feature.contents">
<ref name="reg.feature.attlist"/>
<oneOrMore>
<ref name="reg.feature.specification.model"/>
</oneOrMore>
</define>
<define name="reg.feature.attlist">
<ref name="reg.api.name.attrib"/>
<optional>
<ref name="reg.notation.attrib"/>
</optional>
<ref name="reg.feature.api.attrib"/>
<ref name="reg.feature.version.attrib"/>
<optional>
<ref name="reg.feature.define.attrib"/>
</optional>
</define>
<define name="reg.feature.specification.model">
<choice>
<ref name="reg.feature.require.elem"/>
<ref name="reg.feature.remove.elem"/>
</choice>
</define>
<define name="reg.feature.require.elem">
<element name="require">
<a:documentation>Definitions that are exposed by the specification.</a:documentation>
<ref name="reg.feature.require.contents"/>
</element>
</define>
<define name="reg.feature.require.contents">
<ref name="reg.feature.require.attlist"/>
<oneOrMore>
<ref name="reg.feature.reference.model"/>
</oneOrMore>
<optional>
<ref name="reg.feature.validity.elem"/>
</optional>
</define>
<define name="reg.feature.require.attlist">
<optional>
<ref name="reg.feature.profile.attrib"/>
</optional>
<optional>
<ref name="reg.notation.attrib"/>
</optional>
</define>
<define name="reg.feature.reference.model">
<choice>
<ref name="reg.feature.defref.elem"/>
<ref name="reg.feature.commandref.elem"/>
<ref name="reg.feature.enumref.elem"/>
</choice>
</define>
<define name="reg.feature.defref.elem">
<element name="defref">
<a:documentation>Reference to a named `definitions` child.</a:documentation>
<ref name="reg.feature.defref.contents"/>
</element>
</define>
<define name="reg.feature.defref.contents">
<ref name="reg.feature.defref.attlist"/>
</define>
<define name="reg.feature.defref.attlist">
<ref name="reg.named.ident.model"/>
</define>
<define name="reg.feature.commandref.elem">
<element name="commandref">
<a:documentation>Reference to a named `commands` child.</a:documentation>
<ref name="reg.feature.commandref.contents"/>
</element>
</define>
<define name="reg.feature.commandref.contents">
<ref name="reg.feature.commandref.attlist"/>
</define>
<define name="reg.feature.commandref.attlist">
<ref name="reg.named.ident.model"/>
</define>
<define name="reg.feature.enumref.elem">
<element name="enumref">
<a:documentation>References a specific enumerator or constant.</a:documentation>
<ref name="reg.feature.enumref.contents"/>
</element>
</define>
<define name="reg.feature.enumref.contents">
<ref name="reg.feature.enumref.attlist"/>
</define>
<define name="reg.feature.enumref.attlist">
<ref name="reg.named.ident.model"/>
</define>
<define name="reg.feature.validity.elem">
<element name="validity">
<a:documentation>Provides additional validity checks when this API/extension is active.</a:documentation>
<ref name="reg.feature.validity.contents"/>
</element>
</define>
<define name="reg.feature.validity.contents">
<ref name="reg.feature.validity.attlist"/>
<oneOrMore>
<ref name="reg.feature.usage.elem"/>
</oneOrMore>
</define>
<define name="reg.feature.validity.attlist">
<empty/>
</define>
<define name="reg.feature.usage.elem">
<element name="usage">
<a:documentation>A single usage validity check.</a:documentation>
<ref name="reg.feature.usage.contents"/>
</element>
</define>
<define name="reg.feature.usage.contents">
<ref name="reg.feature.usage.attlist"/>
<ref name="reg.validity.usage.contents"/>
</define>
<define name="reg.feature.usage.attlist">
<choice>
<ref name="reg.feature.usage.struct.attrib"/>
<ref name="reg.feature.usage.command.attrib"/>
</choice>
</define>
<define name="reg.feature.remove.elem">
<element name="remove">
<a:documentation>Definitions which are *not* to be exposed by the specification.</a:documentation>
<ref name="reg.feature.remove.contents"/>
</element>
</define>
<define name="reg.feature.remove.contents">
<a:documentation>Uses same content model as `require`.</a:documentation>
<ref name="reg.feature.remove.attlist"/>
<ref name="reg.feature.require.contents"/>
</define>
<define name="reg.feature.remove.attlist">
<empty/>
</define>
<define name="reg.extensions.elem">
<element name="extensions">
<ref name="reg.extensions.contents"/>
</element>
</define>
<define name="reg.extensions.contents">
<ref name="reg.extensions.attlist"/>
<oneOrMore>
<ref name="reg.extension.elem"/>
</oneOrMore>
</define>
<define name="reg.extensions.attlist">
<empty/>
</define>
<define name="reg.extension.elem">
<element name="extension">
<a:documentation>Specifies the types exposed/forbidden by an extension.</a:documentation>
<ref name="reg.extension.contents"/>
</element>
</define>
<define name="reg.extension.contents">
<ref name="reg.extension.attlist"/>
<oneOrMore>
<ref name="reg.extension.specification.model"/>
</oneOrMore>
</define>
<define name="reg.extension.attlist">
<ref name="reg.named.ident.model"/>
<ref name="reg.extension.number.attrib"/>
<ref name="reg.extension.api.model"/>
<optional>
<ref name="reg.feature.define.attrib"/>
</optional>
<optional>
<ref name="reg.extension.requires.attrib"/>
</optional>
<optional>
<ref name="reg.extension.author.attrib"/>
</optional>
<optional>
<ref name="reg.extension.contact.attrib"/>
</optional>
</define>
<define name="reg.extension.api.model">
<a:documentation>`type` should not be optional. Only optional now due to oddities in the API.</a:documentation>
<choice>
<ref name="reg.extension.disabled.attrib"/>
<group>
<ref name="reg.extension.match-api.attrib"/>
<optional>
<ref name="reg.extension.type.attrib"/>
</optional>
</group>
</choice>
</define>
<define name="reg.extension.specification.model">
<choice>
<ref name="reg.extension.require.elem"/>
<ref name="reg.extension.remove.elem"/>
</choice>
</define>
<define name="reg.extension.require.elem">
<element name="require">
<a:documentation>Exactly like the feature version, but with an optional `api` tag.</a:documentation>
<ref name="reg.extension.require.contents"/>
</element>