Vulkan-Utility-Libraries/docs/generated_code.md
Juan Ramos 93ceaff579 Add REUSE to CI
Ensures proper copyright for the repo
2023-07-25 16:11:18 -06:00

876 B

How to generate the code

  • Linux:
scripts/generate_source.py external/Vulkan-Headers/registry/
  • Windows Powershell:
pwsh -Command { python3 scripts/generate_source.py external/Vulkan-Headers/registry/ }
  • Windows Command:
cmd /C "python3 scripts/generate_source.py external/Vulkan-Headers/registry/"

If only dealing with a single file, run scripts/generate_source.py with --target

# Example - only generates chassis.h
scripts/generate_source.py external/Vulkan-Headers/registry/ --target vk_layer_dispatch_table.h

When making change to the scripts/ folder, make sure to run generate_source.py (Code generation does not happen automatically at build time.)