Sign in

    moon_wgsl_naga

    Naga compatibility utilities for MoonBit WGSL.

    wgsl
    naga
    shader
    Download zip
    Author
    Version
    0.15.2
    License
    Apache-2.0
    Last updated
    3 months ago
    Downloads
    212

    #Milky2018/moon_wgsl_naga

    Naga-compatible WGSL utilities for MoonBit.

    This module is the public boundary for compatibility writer behavior used by parity and composer pipelines. It depends on Milky2018/wgsl and exposes Naga-shaped roundtrip and trace entry points without requiring users to import the facade module.

    Use this module when you need writer/order/name compatibility checks or diagnostic traces. Use Milky2018/wgsl for the language frontend itself and Milky2018/moon_wgsl_naga_oil for naga-oil preprocessing and composition.

    WgslNagaPipelineError

    pub suberror WgslNagaPipelineError {
    Lower(String)
    UnknownIdentifier(String)
    Emit(String)
    Validate(String)
    }

    WgslNagaPipelineError::message

    fn WgslNagaPipelineError::message(self : WgslNagaPipelineError) -> String

    roundtrip_wgsl_source_via_ir

    fn roundtrip_wgsl_source_via_ir(source : String) -> String raise WgslNagaPipelineError

    roundtrip_wgsl_source_via_ir_with_generated_imports_and_import_arena_events_compat_writer

    fn roundtrip_wgsl_source_via_ir_with_generated_imports_and_import_arena_events_compat_writer(source : String, generated_import_provenance : Array[
    WgslIrGeneratedImportProvenance
    ], import_arena_events : Array[
    WgslIrImportArenaEvent
    ], root_visible_rel_path? : String) -> String raise WgslNagaPipelineError

    roundtrip_wgsl_source_via_ir_with_generated_imports_and_import_arena_events_compat_writer_entry_roots

    fn roundtrip_wgsl_source_via_ir_with_generated_imports_and_import_arena_events_compat_writer_entry_roots(source : String, generated_import_provenance : Array[
    WgslIrGeneratedImportProvenance
    ], import_arena_events : Array[
    WgslIrImportArenaEvent
    ]) -> String raise WgslNagaPipelineError

    roundtrip_wgsl_source_via_ir_with_generated_imports_compat_writer

    fn roundtrip_wgsl_source_via_ir_with_generated_imports_compat_writer(source : String, generated_import_provenance : Array[
    WgslIrGeneratedImportProvenance
    ]) -> String raise WgslNagaPipelineError

    trace_compat_writer_function_plan_for_source

    fn trace_compat_writer_function_plan_for_source(source : String, function_name_prefix : String) -> String raise WgslNagaPipelineError

    trace_compat_writer_function_plan_for_source_with_generated_imports_and_import_arena_events

    fn trace_compat_writer_function_plan_for_source_with_generated_imports_and_import_arena_events(source : String, generated_import_provenance : Array[
    WgslIrGeneratedImportProvenance
    ], import_arena_events : Array[
    WgslIrImportArenaEvent
    ], function_name_prefix : String, root_visible_rel_path? : String) -> String raise WgslNagaPipelineError

    trace_compat_writer_module_plan_for_source_with_generated_imports_and_import_arena_events

    fn trace_compat_writer_module_plan_for_source_with_generated_imports_and_import_arena_events(source : String, generated_import_provenance : Array[
    WgslIrGeneratedImportProvenance
    ], import_arena_events : Array[
    WgslIrImportArenaEvent
    ], root_visible_rel_path? : String) -> String raise WgslNagaPipelineError

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io