3 * Copyright 2017 Intel Corporation
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sub license, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
13 * The above copyright notice and this permission notice (including the
14 * next paragraph) shall be included in all copies or substantial portions
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
20 * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
21 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 from anv_extensions
import *
32 VULKAN_UTIL
= os
.path
.abspath(os
.path
.join(os
.path
.dirname(__file__
), '../../vulkan/util'))
33 sys
.path
.append(VULKAN_UTIL
)
35 from vk_extensions_gen
import *
37 if __name__
== '__main__':
38 parser
= argparse
.ArgumentParser()
39 parser
.add_argument('--out-c', help='Output C file.')
40 parser
.add_argument('--out-h', help='Output H file.')
41 parser
.add_argument('--xml',
42 help='Vulkan API XML file.',
46 args
= parser
.parse_args()
52 gen_extensions('anv', args
.xml_files
, API_VERSIONS
, MAX_API_VERSION
, EXTENSIONS
, args
.out_c
, args
.out_h
, includes
)