mirror of https://gitlab.freedesktop.org/mesa/mesa
nvk: generate Rust bindings from SPH header files
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29034>
This commit is contained in:
parent
f7d4e4ba2b
commit
784407f932
|
@ -100,6 +100,15 @@ if with_nouveau_vk
|
|||
'--out-rs', '@OUTPUT0@']
|
||||
)
|
||||
endif
|
||||
|
||||
if fs.is_file(f'nvidia/classes/@cl@sph.h')
|
||||
cl_rs_generated += custom_target(
|
||||
input : ['struct_parser.py', f'nvidia/classes/@cl@sph.h'],
|
||||
output : [f'nvh_classes_@cl@_sph.rs'],
|
||||
command : [prog_python, '@INPUT0@', '--in-h', '@INPUT1@',
|
||||
'--out-rs', '@OUTPUT0@']
|
||||
)
|
||||
endif
|
||||
endforeach
|
||||
|
||||
fs = import('fs')
|
||||
|
|
|
@ -39,6 +39,8 @@ pub const ${s.name}_${f.name}_${e.name}: u32 = ${e.value};
|
|||
""")
|
||||
|
||||
STRUCTS = [
|
||||
'SPHV3',
|
||||
'SPHV4',
|
||||
'TEXHEADV2',
|
||||
'TEXHEADV3',
|
||||
'TEXHEAD_BL',
|
||||
|
|
Loading…
Reference in New Issue