mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-14 16:58:43 +00:00
build: Update to header 1.4.307
This commit is contained in:
parent
1ddbe6c40a
commit
fe7a09b138
11 changed files with 2755 additions and 133 deletions
|
@ -1,10 +1,10 @@
|
|||
#!/usr/bin/python3 -i
|
||||
#
|
||||
# Copyright (c) 2015-2024 The Khronos Group Inc.
|
||||
# Copyright (c) 2015-2024 Valve Corporation
|
||||
# Copyright (c) 2015-2024 LunarG, Inc.
|
||||
# Copyright (c) 2015-2024 Google Inc.
|
||||
# Copyright (c) 2023-2024 RasterGrid Kft.
|
||||
# Copyright (c) 2015-2025 The Khronos Group Inc.
|
||||
# Copyright (c) 2015-2025 Valve Corporation
|
||||
# Copyright (c) 2015-2025 LunarG, Inc.
|
||||
# Copyright (c) 2015-2025 Google Inc.
|
||||
# Copyright (c) 2023-2025 RasterGrid Kft.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
@ -139,10 +139,10 @@ class SafeStructOutputGenerator(BaseGenerator):
|
|||
|
||||
/***************************************************************************
|
||||
*
|
||||
* Copyright (c) 2015-2024 The Khronos Group Inc.
|
||||
* Copyright (c) 2015-2024 Valve Corporation
|
||||
* Copyright (c) 2015-2024 LunarG, Inc.
|
||||
* Copyright (c) 2015-2024 Google Inc.
|
||||
* Copyright (c) 2015-2025 The Khronos Group Inc.
|
||||
* Copyright (c) 2015-2025 Valve Corporation
|
||||
* Copyright (c) 2015-2025 LunarG, Inc.
|
||||
* Copyright (c) 2015-2025 Google Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
|
@ -726,21 +726,13 @@ void FreePnextChain(const void *pNext) {
|
|||
|
||||
safe_name = self.convertName(struct.name)
|
||||
if struct.union:
|
||||
if struct.name in self.union_of_pointers:
|
||||
default_init_list = ' type_at_end {0},'
|
||||
out.append(f'''
|
||||
{safe_name}::{safe_name}(const {struct.name}* in_struct{self.custom_construct_params.get(struct.name, '')}, [[maybe_unused]] PNextCopyState* copy_state{copy_pnext_param})
|
||||
{{
|
||||
{copy_pnext + construct_txt}}}
|
||||
''')
|
||||
else:
|
||||
# Unions don't allow multiple members in the initialization list, so just call initialize
|
||||
out.append(f'''
|
||||
{safe_name}::{safe_name}(const {struct.name}* in_struct{self.custom_construct_params.get(struct.name, '')}, PNextCopyState*)
|
||||
{{
|
||||
initialize(in_struct);
|
||||
}}
|
||||
''')
|
||||
# Unions don't allow multiple members in the initialization list, so just call initialize
|
||||
out.append(f'''
|
||||
{safe_name}::{safe_name}(const {struct.name}* in_struct{self.custom_construct_params.get(struct.name, '')}, PNextCopyState*)
|
||||
{{
|
||||
initialize(in_struct);
|
||||
}}
|
||||
''')
|
||||
else:
|
||||
out.append(f'''
|
||||
{safe_name}::{safe_name}(const {struct.name}* in_struct{self.custom_construct_params.get(struct.name, '')}, [[maybe_unused]] PNextCopyState* copy_state{copy_pnext_param}) :{init_list}
|
||||
|
@ -748,7 +740,11 @@ void FreePnextChain(const void *pNext) {
|
|||
{copy_pnext_if + construct_txt}}}
|
||||
''')
|
||||
if '' != default_init_list:
|
||||
# trim trailing comma from initializer list
|
||||
default_init_list = f' :{default_init_list[:-1]}'
|
||||
# truncate union initializer list to first element
|
||||
if struct.union:
|
||||
default_init_list = default_init_list.split(',')[0]
|
||||
default_init_body = '\n' + custom_defeault_construct_txt[struct.name] if struct.name in custom_defeault_construct_txt else ''
|
||||
out.append(f'''
|
||||
{safe_name}::{safe_name}(){default_init_list}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"sub_dir": "Vulkan-Headers",
|
||||
"build_dir": "Vulkan-Headers/build",
|
||||
"install_dir": "Vulkan-Headers/build/install",
|
||||
"commit": "v1.4.306"
|
||||
"commit": "v1.4.307"
|
||||
},
|
||||
{
|
||||
"name": "googletest",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue