• Home
Name Date Size #Lines LOC

..--

Retired/22-Mar-2025-1,5571,082

asciidoctor-chunker/22-Mar-2025-150109

ci/22-Mar-2025-2312

htmldiff/22-Mar-2025-718435

reflow-tests/22-Mar-2025-2,6272,305

spec_tools/22-Mar-2025-6,1144,344

README.adocD22-Mar-20254 KiB8471

__init__.py.docsD22-Mar-2025887 3834

antora-prep.pyD22-Mar-202522 KiB587382

apiconventions.pyD22-Mar-2025556 227

cgenerator.pyD22-Mar-202522.9 KiB514372

checkXrefsD22-Mar-2025657 2712

check_html_xrefs.pyD22-Mar-20253.2 KiB9763

check_spec_links.pyD22-Mar-20256.1 KiB183122

comment_convert.pyD22-Mar-20256.6 KiB204129

compImages.shD22-Mar-20252.7 KiB12875

conventions.pyD22-Mar-202510.8 KiB359254

deperiodize_vuids.pyD22-Mar-20251.2 KiB4121

docgenerator.pyD22-Mar-202520.4 KiB511360

doctransformer.pyD22-Mar-202517.9 KiB450249

extdependency.pyD22-Mar-20256.8 KiB206132

extensionmetadocgenerator.pyD22-Mar-202539.9 KiB809607

formatsgenerator.pyD22-Mar-202510.3 KiB225161

genRef.pyD22-Mar-202539 KiB1,118764

genReleaseD22-Mar-202510.4 KiB258201

genanchorlinks.pyD22-Mar-2025885 2715

generator.pyD22-Mar-202553.2 KiB1,389968

genspec.pyD22-Mar-20255.6 KiB165116

genvk.pyD22-Mar-202545.6 KiB1,115895

globalizeIncludesD22-Mar-2025753 235

hostsyncgenerator.pyD22-Mar-20255.7 KiB146104

indexExt.pyD22-Mar-20253.1 KiB9549

interfacedocgenerator.pyD22-Mar-20255.4 KiB12576

jsgenerator.pyD22-Mar-20253.7 KiB10169

json_c_generator.pyD22-Mar-202526.9 KiB660516

json_generator.pyD22-Mar-202540.7 KiB983804

json_h_generator.pyD22-Mar-20257.4 KiB197144

json_parser.pyD22-Mar-202543 KiB1,021855

json_validate.pyD22-Mar-20252.9 KiB8658

linkcheck.pyD22-Mar-20252.3 KiB8541

makemanaliases.pyD22-Mar-20252.2 KiB6535

map_html_anchors.pyD22-Mar-20257.8 KiB211127

parse_dependency.pyD22-Mar-202512.7 KiB404277

promote.pyD22-Mar-20256.4 KiB174117

pygenerator.pyD22-Mar-20253.6 KiB9561

reflib.pyD22-Mar-202523.7 KiB666453

reflow.pyD22-Mar-202527.9 KiB665425

reg.pyD22-Mar-202583.1 KiB1,7801,195

rubygenerator.pyD22-Mar-20254.3 KiB12178

runDockerD22-Mar-20251.2 KiB329

schema_generator.pyD22-Mar-202511.5 KiB295212

scriptgenerator.pyD22-Mar-202515.2 KiB391249

spirvcapgenerator.pyD22-Mar-20259.2 KiB239155

stripAPI.pyD22-Mar-20251.7 KiB4332

syncgenerator.pyD22-Mar-20259.3 KiB242180

testSpecVersion.pyD22-Mar-20252.5 KiB7646

test_check_spec_links.pyD22-Mar-202520.6 KiB644415

test_check_spec_links_api_specific.pyD22-Mar-20254.5 KiB12373

test_entity_db.pyD22-Mar-2025692 3312

test_reflow.pyD22-Mar-202518.1 KiB385317

translate_math.jsD22-Mar-20251.1 KiB3419

validitygenerator.pyD22-Mar-202567.7 KiB1,5921,065

vkconventions.pyD22-Mar-202511.1 KiB311233

xml_consistency.pyD22-Mar-202533.9 KiB811566

README.adoc

1// Copyright 2014-2024 The Khronos Group Inc.
2// SPDX-License-Identifier: CC-BY-4.0
3
4= Vulkan^(R)^ Specification Repository Scripts
5
6This directory contains scripts used in building the Vulkan API
7specification and related artifacts. For the most part, these scripts are
8invoked from the top-level directory or from the API Registry in
9../xml to build generated components of the specification.
10
11Scripts in this directory include:
12
13  * `genvk.py` - Python script to generate Vulkan headers and some other
14    targets, using the generators described below.
15  * `reg.py` - Python tools to read a registry XML file and call into
16    generators to create headers and other types of output.
17  * `conventions.py`, `vkconventions.py`, `apiconventions.py` - API-specific
18    parameters and formatting / style conventions used by generators.
19  * `generator.py` - output generator base class.
20  ** `cgenerator.py` - C header output generator.
21  ** `docgenerator.py` - Asciidoc interface language include generator.
22  ** `extensionmetadocgenerator.py` - Generator for Asciidoc extension
23     descriptions in spec appendices.
24  ** `hostsyncgenerator.py` - Asciidoc host sync table generator.
25  ** `interfacedocgenerator.py` - Asciidoc extension appendix interface
26     generator.
27  ** `pygenerator.py, `rubygenerator.py`, `scriptgenerator.py` - generate
28     Python and Ruby encodings of parts of the API description for use in
29     other scripts and asciidoctor extensions.
30  ** `spirvcapgenerator.py` - Asciidoc generator for SPIR-V capability
31     tables.
32  ** `validitygenerator.py` - Asciidoc validity language generator.
33
34  * `check_spec_links.py` - validates a variety of markup and content in the
35    Asciidoctor specification source.
36  * `conventions.py`, `vkconventions.py` - API-specific options used by
37    scripts shared with OpenXR and other APIs.
38  * `extdependency.py` - generate extension dependencies for use when
39    building the specification.
40  * `genRelease`, `genspec.py` - build HTML and PDF Specifications with a
41    variety of options to control target directories, extensions included
42    while building, etc.
43  * `genRef.py`, `reflib.py`, `makemanaliases.py` - extract API reference
44    pages from specification source into single-page source documents, and
45    create symbolic links in the generated refpage HTML for API aliases.
46  * `indexExt.py` - generate HTML index of all extensions for inclusion into
47    the Vulkan registry index page.
48  * `reflow.py`, `reflow_count.py` - reflow specification source text to
49    follow style guidelines, and insert Valid Usage statements where they
50    are needed.
51  * `test_check_spec_links.py`, `test_check_spec_links_api_specific.py`,
52    `test_entity_db.py` - these are from another Khronos WG repository and
53    are unused by Vulkan at present.
54  * `xml_consistency.py` - perform some internal consistency checks on
55    `vk.xml`.
56
57  * `compImages.sh` - compare images in two branches.
58  * `htmldiff/htmldiff` - HTML diff script (see below).
59  * `Retired/` - contains obsolete, unused, or single-purpose scripts. Not
60    maintained.
61
62== HTML Diff Script for Vulkan
63
64This is a first cut at a script to compare Vulkan HTML specifications. Usage
65is simply 'htmldiff file1.html file2.html > diff.html'. The script does not
66copy CSS and images required by the input specs, so it is best to generate
67the output in the same directory as one of the inputs. However, the script
68must be invoked from the directory it is located within.
69
70The scripts used require Python and Perl. Additionally, the python
71'utidylib' module and the underlying libtidy C library are required.
72On Debian Linux, it may be necessary to install the 'python-utidylib' and
73'libtidy' packages if they are not already present.
74
75The scripts are taken from the code backing the
76
77    http://services.w3.org/htmldiff
78
79website. `htmldiff` is the Python driver script. `htmldiff.pl` is the
80Perl script which generates the diff after preprocessing of the input
81HTML by `htmldiff`. `htmldiff.orig` is the original Python script from
82the website, modified to run at the command line instead of as a CGI
83script.
84