Milky2018/moon_wgsl/common does not have a README file

    ComposableModuleDefinition

    pub(all) struct ComposableModuleDefinition {
    name : String
    sanitized_source : String
    language : ShaderLanguage
    file_path : String
    shader_defs :
    HashMap
    [String, ShaderDefValue]
    effective_defs : Array[String]
    all_imports :
    HashSet
    [String]
    additional_imports : Array[ImportDefinition]
    }

    ComposableModuleDescriptor

    pub(all) struct ComposableModuleDescriptor {
    source : String
    file_path : String
    language : ShaderLanguage
    as_name : String?
    additional_imports : Array[ImportDefinition]
    shader_defs :
    HashMap
    [String, ShaderDefValue]
    } derive(Eq,
    Debug
    )

    ComposableModuleDescriptor::default

    DiagnosticDirective

    pub(all) struct DiagnosticDirective {
    severity : String
    rule : String
    source_location : Int
    } derive(Eq,
    Debug
    )

    EnableDirective

    pub(all) struct EnableDirective {
    extensions : Array[String]
    source_location : Int
    } derive(Eq,
    Debug
    )

    ImportDefWithOffset

    pub(all) struct ImportDefWithOffset {
    definition : ImportDefinition
    offset : Int
    } derive(Eq,
    Debug
    )

    ImportDefinition

    pub(all) struct ImportDefinition {
    import_path : String
    items : Array[String]
    } derive(Eq,
    Debug
    )

    ImportDefinition::default

    NagaModuleDescriptor

    pub(all) struct NagaModuleDescriptor {
    source : String
    file_path : String
    shader_type : ShaderType
    shader_defs :
    HashMap
    [String, ShaderDefValue]
    additional_imports : Array[ImportDefinition]
    } derive(Eq,
    Debug
    )

    NagaModuleDescriptor::default

    PreprocessOutput

    pub(all) struct PreprocessOutput {
    preprocessed_source : String
    imports : Array[ImportDefWithOffset]
    }

    PreprocessOutput::default

    PreprocessorMetaData

    pub(all) struct PreprocessorMetaData {
    name : String?
    imports : Array[ImportDefWithOffset]
    defines :
    HashMap
    [String, ShaderDefValue]
    effective_defs :
    HashSet
    [String]
    wgsl_directives : WgslDirectives
    cleaned_source : String
    }

    RequiresDirective

    pub(all) struct RequiresDirective {
    extensions : Array[String]
    source_location : Int
    } derive(Eq,
    Debug
    )

    ShaderDefValue

    pub(all) enum ShaderDefValue {
    Bool(Bool)
    Int(Int)
    UInt(UInt)
    } derive(Eq,
    Debug
    )

    ShaderDefValue::value_as_string

    fn ShaderDefValue::value_as_string(self : ShaderDefValue) -> String

    ShaderLanguage

    pub(all) enum ShaderLanguage {
    Wgsl
    Glsl
    } derive(Eq,
    Debug
    )

    ShaderType

    pub(all) enum ShaderType {
    Wgsl
    GlslVertex
    GlslFragment
    } derive(Eq,
    Debug
    )

    WgslComposeOptions

    pub(all) struct WgslComposeOptions {
    assets_base : String
    defines :
    HashMap
    [String, Bool]
    value_defines :
    HashMap
    [String, Int]
    redirects : Array[WgslSymbolRedirect]
    additional_imports : Array[ImportDefinition]
    preserve_imported_entry_points : Bool
    } derive(Eq,
    Debug
    )

    WgslComposeOptions::default

    WgslDiagnostic

    pub(all) struct WgslDiagnostic {
    severity : WgslDiagnosticSeverity
    message : String
    rel_path : String?
    symbol_name : String?
    generated_start : Int?
    source_start : Int?
    } derive(Eq,
    Debug
    )

    WgslDiagnostic::default

    WgslDiagnosticSeverity

    pub(all) enum WgslDiagnosticSeverity {
    Info
    Warn
    Error
    } derive(Eq,
    Debug
    )

    WgslDirectives

    pub(all) struct WgslDirectives {
    enables : Array[EnableDirective]
    requires : Array[RequiresDirective]
    diagnostics : Array[DiagnosticDirective]
    } derive(Eq,
    Debug
    )

    WgslDirectives::default

    WgslDirectives::is_empty

    fn WgslDirectives::is_empty(self : WgslDirectives) -> Bool

    WgslDirectives::to_wgsl_string

    fn WgslDirectives::to_wgsl_string(self : WgslDirectives) -> String

    WgslExportOptions

    pub(all) struct WgslExportOptions {
    root_items : Array[String]
    } derive(Eq,
    Debug
    )

    WgslExportOptions::default

    WgslExportOutput

    pub(all) struct WgslExportOutput {
    source : String
    source_catalog : Array[WgslSourceCatalogEntry]
    source_map : Array[WgslSourceMapEntry]
    diagnostics : Array[WgslDiagnostic]
    } derive(Eq,
    Debug
    )

    WgslExportOutput::default

    WgslImportTarget

    pub(all) struct WgslImportTarget {
    raw_path : String
    alias_name : String
    } derive(Eq,
    Debug
    )

    WgslResolvedImportModule

    pub(all) struct WgslResolvedImportModule {
    module_path : String
    rel_path : String
    } derive(Eq,
    Debug
    )

    WgslSourceCatalogEntry

    pub(all) struct WgslSourceCatalogEntry {
    rel_path : String
    symbol_name : String
    source_text : String
    source_start : Int
    source_end : Int
    } derive(Eq,
    Debug
    )

    WgslSourceCatalogEntry::default

    WgslSourceFile

    pub(all) struct WgslSourceFile {
    rel_path : String
    source : String
    } derive(Eq,
    Debug
    )

    WgslSourceFile::default

    WgslSourceMapEntry

    pub(all) struct WgslSourceMapEntry {
    generated_start : Int
    generated_end : Int
    rel_path : String
    source_start : Int
    source_end : Int
    symbol_name : String?
    } derive(Eq,
    Debug
    )

    WgslSourceMapEntry::default

    WgslSourceScanOptions

    pub(all) struct WgslSourceScanOptions {
    recursive : Bool
    extensions : Array[String]
    exclude_prefixes : Array[String]
    } derive(Eq,
    Debug
    )

    WgslSourceScanOptions::default

    WgslSymbolRedirect

    pub(all) struct WgslSymbolRedirect {
    from_name : String
    to_name : String
    } derive(Eq,
    Debug
    )

    WgslSymbolRedirect::default

    default_wgsl_value_defines

    fn default_wgsl_value_defines() ->
    HashMap
    [String, Int]