Skip to main content

generate_module_table_header

Function generate_module_table_header 

Source
pub fn generate_module_table_header(
    module: &str,
    tables: &[&TableDesc],
    core_tables: &[&TableDesc],
    shared_sets: &[&'static ValueSetDesc],
    relative_path: String,
) -> Result<GeneratedFile, CodegenError>
Expand description

The C11 / C++20 mirror of a capability module’s tables (module = canvas -> NV_CANVAS_TABLES_GENERATED_H, includes <nv/host/table_word.h> from nv::host_cxx). The caller links the module and passes its descriptors plus core_tables and shared_sets (for cross-check against core and cross-module WordEnum value sets), so this crate stays module-free.