• Home
Name Date Size #Lines LOC

..--

Retired/12-May-2024-1,5571,082

asciidoctor-chunker/12-May-2024-150109

ci/12-May-2024-2312

htmldiff/12-May-2024-718435

spec_tools/12-May-2024-5,2593,726

README.adocD12-May-20244.2 KiB8774

__init__.py.docsD12-May-2024887 3834

apiconventions.pyD12-May-2024353 121

cgenerator.pyD12-May-202418.1 KiB421297

checkXrefsD12-May-2024657 2712

check_html_xrefs.pyD12-May-20243.1 KiB9460

check_spec_links.pyD12-May-20245.5 KiB165108

comment_convert.pyD12-May-20246.6 KiB204129

compImages.shD12-May-20242.7 KiB12875

conventions.pyD12-May-202410.8 KiB359254

deperiodize_vuids.pyD12-May-20241.2 KiB4121

docgenerator.pyD12-May-202420.1 KiB507356

extdependency.pyD12-May-20245.7 KiB181120

extensionmetadocgenerator.pyD12-May-202433.9 KiB672513

formatsgenerator.pyD12-May-20246.9 KiB168119

genRef.pyD12-May-202437.6 KiB1,092744

genReleaseD12-May-20248.5 KiB218166

genanchorlinks.pyD12-May-2024885 2715

generator.pyD12-May-202447 KiB1,219839

genspec.pyD12-May-20245.6 KiB165116

genvk.pyD12-May-202430.4 KiB746565

globalizeIncludesD12-May-2024753 235

hostsyncgenerator.pyD12-May-20246 KiB155111

indexExt.pyD12-May-20242.8 KiB9145

interfacedocgenerator.pyD12-May-20245 KiB11981

linkcheck.pyD12-May-20242.3 KiB8541

makemanaliases.pyD12-May-20242.2 KiB6535

promote.pyD12-May-20246.4 KiB174117

pygenerator.pyD12-May-20243.6 KiB9561

reflib.pyD12-May-202423.6 KiB667452

reflow.pyD12-May-202438.2 KiB913550

reg.pyD12-May-202472.1 KiB1,5491,028

rubygenerator.pyD12-May-20244.3 KiB12178

scriptgenerator.pyD12-May-202415.3 KiB390247

spirvcapgenerator.pyD12-May-202412 KiB310205

testSpecVersion.pyD12-May-20242.5 KiB7646

test_check_spec_links.pyD12-May-202420.6 KiB644415

test_check_spec_links_api_specific.pyD12-May-20244.5 KiB12373

test_entity_db.pyD12-May-2024692 3312

translate_math.jsD12-May-20241.1 KiB3419

validitygenerator.pyD12-May-202463.3 KiB1,5041,002

vkconventions.pyD12-May-20249.7 KiB276206

xml_consistency.pyD12-May-202419 KiB463323

README.adoc

1// Copyright 2014-2021 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  * `genanchorlinks.py` - add HTML `href` attributes to asciidoctor output
41    to improve UI for VUID anchors.
42  * `genRelease`, `genspec.py` - build HTML and PDF Specifications with a
43    variety of options to control target directories, extensions included
44    while building, etc.
45  * `genRef.py`, `reflib.py`, `makemanaliases.py` - extract API reference
46    pages from specification source into single-page source documents, and
47    create symbolic links in the generated refpage HTML for API aliases.
48  * `indexExt.py` - generate HTML index of all extensions for inclusion into
49    the Vulkan registry index page.
50  * `reflow.py`, `reflow_count.py` - reflow specification source text to
51    follow style guidelines, and insert Valid Usage statements where they
52    are needed.
53  * `test_check_spec_links.py`, `test_check_spec_links_api_specific.py`,
54    `test_entity_db.py` - these are from another Khronos WG repository and
55    are unused by Vulkan at present.
56  * `xml_consistency.py` - perform some internal consistency checks on
57    `vk.xml`.
58
59  * `compImages.sh` - compare images in two branches.
60  * `htmldiff/htmldiff` - HTML diff script (see below).
61  * `Retired/` - contains obsolete, unused, or single-purpose scripts. Not
62    maintained.
63
64HTML Diff Script for Vulkan
65===========================
66
67This is a first cut at a script to compare Vulkan HTML specifications. Usage
68is simply 'htmldiff file1.html file2.html > diff.html'. The script does not
69copy CSS and images required by the input specs, so it is best to generate
70the output in the same directory as one of the inputs. However, the script
71must be invoked from the directory it is located within.
72
73The scripts used require Python and Perl. Additionally, the python
74'utidylib' module and the underlying libtidy C library are required.
75On Debian Linux, it may be necessary to install the 'python-utidylib' and
76'libtidy' packages if they are not already present.
77
78The scripts are taken from the code backing the
79
80    http://services.w3.org/htmldiff
81
82website. `htmldiff` is the Python driver script. `htmldiff.pl` is the
83Perl script which generates the diff after preprocessing of the input
84HTML by `htmldiff`. `htmldiff.orig` is the original Python script from
85the website, modified to run at the command line instead of as a CGI
86script.
87