Skip to content

Commit c528945

Browse files
committed
Add missing Vulkan enum definitions for AGXV and AMDX
Defines VK_DRIVER_ID_MESA_AGXV and VK_BUFFER_USAGE_2_EXECUTION_GRAPH_SCRATCH_BIT_AMDX if they are not already defined. This ensures compatibility with code referencing these enums even if the Vulkan headers are outdated.
1 parent 906b49c commit c528945

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/third_party/vk_enum_string_helper.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
// SPDX-License-Identifier: Apache-2.0
88

99
#pragma once
10+
11+
#ifndef VK_DRIVER_ID_MESA_AGXV
12+
#define VK_DRIVER_ID_MESA_AGXV 99999
13+
#endif
14+
15+
#ifndef VK_BUFFER_USAGE_2_EXECUTION_GRAPH_SCRATCH_BIT_AMDX
16+
#define VK_BUFFER_USAGE_2_EXECUTION_GRAPH_SCRATCH_BIT_AMDX 99999
17+
#endif
18+
1019
#ifdef __cplusplus
1120
#include <string>
1221
#endif

0 commit comments

Comments
 (0)