mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 14:38:06 +02:00
vulkan/cmd_queue: Handle internal structs
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37416>
This commit is contained in:
parent
b02ef48e9d
commit
c76da351b0
1 changed files with 15 additions and 0 deletions
|
|
@ -84,6 +84,8 @@ TEMPLATE_H = Template(COPYRIGHT + """\
|
|||
#include <vulkan/vulkan_beta.h>
|
||||
#endif
|
||||
|
||||
#include "vk_internal_exts.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -681,6 +683,16 @@ def get_types_defines(doc):
|
|||
|
||||
return types_to_defines
|
||||
|
||||
INTERNAL_STRUCT_EXTENSIONS = {
|
||||
"VkRenderingAttachmentInfo": EntrypointType(
|
||||
name="VkRenderingAttachmentInitialLayoutInfoMESA",
|
||||
enum="VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INITIAL_LAYOUT_INFO_MESA",
|
||||
members=[],
|
||||
extended_by=[],
|
||||
guard=None
|
||||
)
|
||||
}
|
||||
|
||||
def get_types(doc, beta, api, types_to_defines):
|
||||
"""Extract the types from the registry."""
|
||||
types = {}
|
||||
|
|
@ -732,6 +744,9 @@ def get_types(doc, beta, api, types_to_defines):
|
|||
continue
|
||||
types[extended].extended_by.append(types[_type.attrib['name']])
|
||||
|
||||
for extended in INTERNAL_STRUCT_EXTENSIONS:
|
||||
types[extended].extended_by.append(INTERNAL_STRUCT_EXTENSIONS[extended])
|
||||
|
||||
return types
|
||||
|
||||
def get_types_from_xml(xml_files, beta, api='vulkan'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue