Vulkan-Docs/scripts
Jon Leech b1042a3204 Change log for April 7, 2019 Vulkan 1.1.106 spec update:
* Update release number to 106.

Public Issues:

  * Add searchbox and generate search index for the chunked HTML target.
    Note that doing this requires several new toolchain components to build
    the `chunked` target (public issue 578 / internal issue 1352).
  * Remove descriptions of flink:vkCreateSampler sampler constraints which
    were repeated in the valid usage statements (public pull request 648).
  * Fix sense of conditional around a valid usage statement in the
    <<copies>> chapter (public issue 942).

Internal Issues:

  * Add missing pname:extent.width and pname:extent.height valid usage
    statements for flink:vkCmdClearAttachments (internal issue 1583).
  * Fix some inconsistencies in structures and corresponding pname:sType
    enumerant names by renaming
    sname:VkPhysicalDeviceShaderDrawParameterFeatures ->
    slink:slink:VkPhysicalDeviceShaderDrawParametersFeatures;
    sname:VkPhysicalDeviceVariablePointerFeatures ->
    slink:VkPhysicalDeviceVariablePointerFeatures;
    sname:VkPhysicalDeviceVariablePointerFeaturesKHR ->
    slink:VkPhysicalDeviceVariablePointerFeaturesKHR;
    sname:VkPhysicalDeviceBufferAddressFeaturesEXT ->
    slink:VkPhysicalDeviceBufferDeviceAddressFeaturesEXT;
    etext:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETER_FEATURES
    ->
    ename:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES;
    etext:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES ->
    ename:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES;
    etext:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTER_FEATURES_KHR ->
    ename:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES_KHR;
    and etext:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_ADDRESS_FEATURES_EXT
    ->
    ename:VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT.
    The old names are still available as aliases for backwards
    compatibility. This change required introducing valid XML markup which
    externally written XML processing scripts may need to be modified to
    accomodate, to support multiple aliases of a single command or token
    name (internal issue 1592).
  * Add slink:VkDevice as the first parameter to flink:vkSetLocalDimmingAMD
    (internal issue 1618).
  * Improve CI header compilation tests to test all Vulkan platform
    includes, using fake platform headers where needed, and change the
    `allchecks` Makefile target to use the more comprehensive
    `check_spec_links.py` script instead of the retired `checkinc` and
    `checklinks` targets.
  * Move descriptions of the ASTC compressed texture decode mode from the
    <<appendix-compressedtex-astc,appendix>> to the recently updated
    external Khronos Data Format Specification.
  * Fix minor markup and spelling issues in the `VK_NV_ray_tracing`
    extension.
2019-04-07 20:17:23 -07:00
..
Retired Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
htmldiff Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
spec_tools Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
README.adoc Rename extension dependency generator script to avoid Python import confusion 2019-03-19 02:14:15 -07:00
cgenerator.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
checkXrefs Restructure the repository to put the specification Makefile and 2018-04-04 23:08:43 -07:00
check_spec_links.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
conventions.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
docgenerator.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
extensionmetadocgenerator.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
genRef.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
genRelease Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
generator.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
genspec.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
genvk.py Fix a build problem with win32 header duplicating an interface in core header, by adding a new extension to exclude from the former 2019-03-20 21:29:29 -07:00
hostsyncgenerator.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
indexExt.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
make_ext_dependency.py Rename extension dependency generator script to avoid Python import confusion 2019-03-19 02:14:15 -07:00
pygenerator.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
reflib.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
reflow.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
reflow_count.py Change log for April 7, 2019 Vulkan 1.1.106 spec update: 2019-04-07 20:17:23 -07:00
reg.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
test_check_spec_links.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
test_check_spec_links_api_specific.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
test_entity_db.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
validitygenerator.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00
vkconventions.py Change log for March 18, 2019 Vulkan 1.1.104 spec update: 2019-03-17 06:05:46 -07:00

README.adoc

= Vulkan^(R)^ Specification Repository Scripts

This directory contains scripts used in building the Vulkan API
specification and related artifacts. For the most part, these scripts are
invoked from the top-level directory or from the API Registry in
../xml to build generated components of the specification.

Scripts in this directory include:

  * genvk.py - Python script to generate Vulkan headers and some other
    targets, using the generators described below.
  * reg.py - Python tools to read a registry XML file and call into
    generators to create headers and other types of output.
  * conventions.py, vkconventions.py - API-specific parameters and
    formatting / style conventions used by generators.
  * generator.py - output generator base class.
  ** cgenerator.py - C header output generator.
  ** docgenerator.py - Asciidoc interface language include generator.
  ** extensionmetadocgenerator.py - Generator for Asciidoc extension
     descriptions in spec appendices.
  ** hostsyncgenerator.py - Asciidoc host sync table generator.
  ** pygenerator.py - Generates python encoding of the API description.
  ** validitygenerator.py - Asciidoc validity language generator.

  * checkXrefs - shell script to look for broken internal links in a
    generated HTML specification.
  * check_spec_links.py - validates a variety of markup and content in the
    Asciidoctor specification source.
  * make_ext_dependency.py - generate extension dependencies in Bash and
    Python form for use when building the specification.
  * genRelease, genspec.py - build HTML and PDF Specifications with a
    variety of options to control target directories, extensions included
    while building, etc.
  * genRef.py, reflib.py - extract API reference pages from specification
    source into single-page source documents.
  * indexExt.py - generate HTML index of all extensions for inclusion into
    the Vulkan registry index page.
  * reflow.py, reflow_count.py - reflow specification source text to follow
    style guidelines, and insert Valid Usage statements where they're
    needed.
  * test_check_spec_links.py, test_check_spec_links_api_specific.py,
    test_entity_db.py - these are from another Khronos WG repository and are
    unused by Vulkan at present.
  * htmldiff/htmldiff - HTML diff script (see below).

  * Retired/ - contains obsolete, unused, or single-purpose scripts. Not
    maintained.

HTML Diff Script for Vulkan
===========================

This is a first cut at a script to compare Vulkan HTML specifications. Usage
is simply 'htmldiff file1.html file2.html > diff.html'. The script does not
copy CSS and images required by the input specs, so it's best to generate
the output in the same directory as one of the inputs. However, the script
must be invoked from the directory it is located within.

The scripts used require Python and Perl. Additionally, the python
'utidylib' module and the underlying libtidy C library are required,
which may make it challenging to run the scripts on non-Linux platforms
- I haven't checked and those requirements cannot be easily removed. On
Debian Linux, it may be necessary to install the 'python-utidylib' and
'libtidy' packages if they are not already present. I haven't checked
dependencies for other Linux distributions but they are probably
similar.

The scripts are taken from the code backing the

    http://services.w3.org/htmldiff

website. 'htmldiff' is the Python driver script. 'htmldiff.pl' is the
Perl script which generates the diff after preprocessing of the input
HTML by 'htmldiff'. 'htmldiff.orig' is the original Python script from
the website, modified to run at the command line instead of as a CGI
script.