diff options
| author | Daniel Rakos <daniel.rakos@rastergrid.com> | 2023-05-22 15:46:07 +0200 |
|---|---|---|
| committer | Juan Ramos <114601453+juan-lunarg@users.noreply.github.com> | 2023-05-24 11:05:08 -0600 |
| commit | 9aafa3cf1a72170cedab37073dcc184a6428469b (patch) | |
| tree | da4669e052a1429adf4d4f4d5d8ac202f3d41d7a /scripts/generate_source.py | |
| parent | 4b7e5871e224c1d4141f727a6706de23e8812edf (diff) | |
| download | usermoji-9aafa3cf1a72170cedab37073dcc184a6428469b.tar.xz | |
mock: Parameterization changes for Vulkan SC
Diffstat (limited to 'scripts/generate_source.py')
| -rwxr-xr-x | scripts/generate_source.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/generate_source.py b/scripts/generate_source.py index a2002aae..5fb7941e 100755 --- a/scripts/generate_source.py +++ b/scripts/generate_source.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 -# Copyright (c) 2019 The Khronos Group Inc. -# Copyright (c) 2019 Valve Corporation -# Copyright (c) 2019 LunarG, Inc. -# Copyright (c) 2019 Google Inc. +# Copyright (c) 2019-2023 The Khronos Group Inc. +# Copyright (c) 2019-2023 Valve Corporation +# Copyright (c) 2019-2023 LunarG, Inc. +# Copyright (c) 2019-2023 Google Inc. +# Copyright (c) 2023-2023 RasterGrid Kft. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -33,6 +34,10 @@ verify_exclude = ['.clang-format'] def main(argv): parser = argparse.ArgumentParser(description='Generate source code for this repository') + parser.add_argument('--api', + default='vulkan', + choices=['vulkan', 'vulkansc'], + help='Specify API name to generate') parser.add_argument('registry', metavar='REGISTRY_PATH', help='path to the Vulkan-Headers registry directory') group = parser.add_mutually_exclusive_group() group.add_argument('-i', '--incremental', action='store_true', help='only update repo files that change') @@ -65,6 +70,7 @@ def main(argv): output_path = common_codegen.repo_relative(path) cmd = [common_codegen.repo_relative(os.path.join('scripts','kvt_genvk.py')), + '-api', args.api, '-registry', os.path.abspath(os.path.join(args.registry, 'vk.xml')), '-quiet', '-directory', output_path, filename] print(' '.join(cmd)) |
