From 9aafa3cf1a72170cedab37073dcc184a6428469b Mon Sep 17 00:00:00 2001 From: Daniel Rakos Date: Mon, 22 May 2023 15:46:07 +0200 Subject: mock: Parameterization changes for Vulkan SC --- scripts/generate_source.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'scripts/generate_source.py') 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)) -- cgit v1.2.3