Sign in

    Milky2018/moon_wgsl_naga_oil/contract does not have a README file

    ComposableModuleDescriptor

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

    ComposableModuleDescriptor::default

    ComposableModuleDescriptor::equal

    ComposableModuleDescriptor::not_equal

    DiagnosticDirective

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

    DiagnosticDirective::DiagnosticDirective

    fn DiagnosticDirective::DiagnosticDirective(severity : String, rule : String) -> DiagnosticDirective

    DiagnosticDirective::equal

    DiagnosticDirective::not_equal

    EnableDirective

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

    EnableDirective::EnableDirective

    fn EnableDirective::EnableDirective(extensions : Array[String]) -> EnableDirective

    EnableDirective::equal

    EnableDirective::not_equal

    fn EnableDirective::not_equal(x : EnableDirective, y : EnableDirective) -> Bool

    ImportDefWithOffset

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

    ImportDefWithOffset::ImportDefWithOffset

    fn ImportDefWithOffset::ImportDefWithOffset(definition : ImportDefinition) -> ImportDefWithOffset

    ImportDefWithOffset::equal

    ImportDefWithOffset::not_equal

    ImportDefinition

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

    ImportDefinition::equal

    ImportDefinition::not_equal

    fn ImportDefinition::not_equal(x : ImportDefinition, y : ImportDefinition) -> Bool

    PreparedWgslSource

    pub struct PreparedWgslSource {
    source : String
    source_files : Array[WgslSourceFile]
    source_catalog : Array[WgslSourceCatalogEntry]
    source_origins : Array[WgslSourceOriginEntry]
    diagnostics : Array[WgslDiagnostic]
    }

    PreparedWgslSource::PreparedWgslSource

    fn PreparedWgslSource::PreparedWgslSource(source : String, source_files : Array[WgslSourceFile], source_catalog : Array[WgslSourceCatalogEntry], source_origins : Array[WgslSourceOriginEntry], diagnostics : Array[WgslDiagnostic]) -> PreparedWgslSource

    PreparedWgslSource::diagnostics

    PreparedWgslSource::source

    fn PreparedWgslSource::source(self : PreparedWgslSource) -> String

    PreparedWgslSource::source_catalog

    PreparedWgslSource::source_files

    PreparedWgslSource::source_origins

    PreprocessOutput

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

    PreprocessOutput::PreprocessOutput

    fn PreprocessOutput::PreprocessOutput(preprocessed_source : String, imports : Array[ImportDefWithOffset]) -> PreprocessOutput

    PreprocessOutput::imports

    Return the imports discovered while preprocessing.

    PreprocessOutput::source

    fn PreprocessOutput::source(self : PreprocessOutput) -> String

    Return the preprocessed WGSL text. Directive and import spans are replaced with width-preserving whitespace where required by the pipeline.

    PreprocessorMetaData

    pub struct PreprocessorMetaData {
    name : String?
    imports : Array[ImportDefWithOffset]
    defines : Map[String, ShaderDefValue]
    effective_defs :
    Set
    [String]
    wgsl_directives : WgslDirectives
    cleaned_source : String
    }

    PreprocessorMetaData::PreprocessorMetaData

    fn PreprocessorMetaData::PreprocessorMetaData(name : String?, imports : Array[ImportDefWithOffset], defines : Map[String, ShaderDefValue], effective_defs :
    Set
    [String], wgsl_directives : WgslDirectives, cleaned_source : String) -> PreprocessorMetaData

    RequiresDirective

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

    RequiresDirective::RequiresDirective

    fn RequiresDirective::RequiresDirective(extensions : Array[String]) -> RequiresDirective

    RequiresDirective::equal

    RequiresDirective::not_equal

    fn RequiresDirective::not_equal(x : RequiresDirective, y : RequiresDirective) -> Bool

    ShaderDefValue

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

    ShaderDefValue::equal

    ShaderDefValue::not_equal

    fn ShaderDefValue::not_equal(x : ShaderDefValue, y : ShaderDefValue) -> Bool

    ShaderDefValue::value_as_string

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

    WgslComposeAliasSymbolIdentity

    pub struct WgslComposeAliasSymbolIdentity {
    // private fields
    } derive(Eq,
    Debug
    )

    WgslComposeAliasSymbolIdentity::WgslComposeAliasSymbolIdentity

    fn WgslComposeAliasSymbolIdentity::WgslComposeAliasSymbolIdentity(rel_path : String, alias_name : String, original_name : String) -> WgslComposeAliasSymbolIdentity

    WgslComposeAliasSymbolIdentity::alias_name

    WgslComposeAliasSymbolIdentity::key

    WgslComposeAliasSymbolIdentity::not_equal

    WgslComposeAliasSymbolIdentity::symbol

    WgslComposeOptions

    pub(all) struct WgslComposeOptions {
    defines : Map[String, Bool]
    value_defines : Map[String, ShaderDefValue]
    redirects : Array[WgslSymbolRedirect]
    additional_imports : Array[ImportDefinition]
    immediate_specializations : Array[WgslImmediateSpecialization]
    } derive(Eq,
    Debug
    )

    WgslComposeOptions::default

    WgslComposeOptions::equal

    WgslComposeOptions::not_equal

    WgslComposeSymbolIdentity

    pub struct WgslComposeSymbolIdentity {
    // private fields
    } derive(Eq,
    Debug
    )

    WgslComposeSymbolIdentity::WgslComposeSymbolIdentity

    fn WgslComposeSymbolIdentity::WgslComposeSymbolIdentity(rel_path : String, original_name : String) -> WgslComposeSymbolIdentity

    WgslComposeSymbolIdentity::equal

    WgslComposeSymbolIdentity::key

    WgslComposeSymbolIdentity::not_equal

    WgslComposeSymbolIdentity::original_name

    fn WgslComposeSymbolIdentity::original_name(self : WgslComposeSymbolIdentity) -> String

    WgslComposeSymbolIdentity::rel_path

    WgslDiagnostic

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

    WgslDiagnostic::WgslDiagnostic

    fn WgslDiagnostic::WgslDiagnostic(severity : WgslDiagnosticSeverity, message : String, rel_path : String?, symbol_name : String?) -> WgslDiagnostic

    WgslDiagnostic::equal

    WgslDiagnostic::not_equal

    fn WgslDiagnostic::not_equal(x : WgslDiagnostic, y : WgslDiagnostic) -> Bool

    WgslDiagnosticSeverity

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

    WgslDiagnosticSeverity::equal

    WgslDiagnosticSeverity::not_equal

    WgslDirectives

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

    WgslDirectives::default

    WgslDirectives::equal

    WgslDirectives::is_empty

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

    WgslDirectives::not_equal

    fn WgslDirectives::not_equal(x : WgslDirectives, y : 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::equal

    WgslExportOptions::not_equal

    fn WgslExportOptions::not_equal(x : WgslExportOptions, y : WgslExportOptions) -> Bool

    WgslExportOutput

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

    WgslExportOutput::WgslExportOutput

    fn WgslExportOutput::WgslExportOutput(source : String, source_catalog : Array[WgslSourceCatalogEntry], source_origins : Array[WgslSourceOriginEntry], source_map : Array[WgslSourceMapEntry], diagnostics : Array[WgslDiagnostic]) -> WgslExportOutput

    WgslExportOutput::diagnostics

    WgslExportOutput::equal

    WgslExportOutput::not_equal

    fn WgslExportOutput::not_equal(x : WgslExportOutput, y : WgslExportOutput) -> Bool

    WgslExportOutput::source

    fn WgslExportOutput::source(self : WgslExportOutput) -> String

    WgslExportOutput::source_catalog

    WgslExportOutput::source_map

    WgslExportOutput::source_origins

    WgslImmediateSpecialization

    pub(all) struct WgslImmediateSpecialization {
    rel_path : String
    global_name : String
    field_values : Map[String, ShaderDefValue]
    } derive(Eq,
    Debug
    )

    Concrete values for one var<immediate> struct global.

    rel_path and global_name identify the declaration before imports are linked. Every field in the struct must have a value.

    WgslImmediateSpecialization::WgslImmediateSpecialization

    fn WgslImmediateSpecialization::WgslImmediateSpecialization(rel_path : String, global_name : String, field_values : Map[String, ShaderDefValue]) -> WgslImmediateSpecialization

    WgslImmediateSpecialization::not_equal

    WgslImportTarget

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

    WgslImportTarget::equal

    WgslImportTarget::not_equal

    fn WgslImportTarget::not_equal(x : WgslImportTarget, y : WgslImportTarget) -> Bool

    WgslReferencePath

    pub struct WgslReferencePath {
    // private fields
    } derive(Eq,
    Debug
    )

    WgslReferencePath::equal

    WgslReferencePath::from_segments

    fn WgslReferencePath::from_segments(segments : Array[String]) -> WgslReferencePath?

    WgslReferencePath::from_text

    fn WgslReferencePath::from_text(text : String) -> WgslReferencePath?

    WgslReferencePath::matches

    fn WgslReferencePath::matches(self : WgslReferencePath, other : WgslReferencePath) -> Bool

    WgslReferencePath::not_equal

    fn WgslReferencePath::not_equal(x : WgslReferencePath, y : WgslReferencePath) -> Bool

    WgslReferencePath::segments

    fn WgslReferencePath::segments(self : WgslReferencePath) -> Array[String]

    WgslReferencePath::text

    fn WgslReferencePath::text(self : WgslReferencePath) -> String

    WgslResolvedImportModule

    pub struct WgslResolvedImportModule {
    // private fields
    } derive(Eq,
    Debug
    )

    WgslResolvedImportModule::WgslResolvedImportModule

    fn WgslResolvedImportModule::WgslResolvedImportModule(module_path : String, rel_path : String) -> WgslResolvedImportModule

    WgslResolvedImportModule::equal

    WgslResolvedImportModule::is_empty

    WgslResolvedImportModule::module_path

    fn WgslResolvedImportModule::module_path(self : WgslResolvedImportModule) -> String

    WgslResolvedImportModule::not_equal

    WgslResolvedImportModule::rel_path

    fn WgslResolvedImportModule::rel_path(self : WgslResolvedImportModule) -> String

    WgslSourceCatalogEntry

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

    WgslSourceCatalogEntry::WgslSourceCatalogEntry

    fn WgslSourceCatalogEntry::WgslSourceCatalogEntry(rel_path : String, symbol_name : String, source_start : Int, source_end : Int) -> WgslSourceCatalogEntry

    WgslSourceCatalogEntry::equal

    WgslSourceCatalogEntry::not_equal

    WgslSourceFile

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

    WgslSourceFile::equal

    WgslSourceFile::not_equal

    fn WgslSourceFile::not_equal(x : WgslSourceFile, y : WgslSourceFile) -> Bool

    WgslSourceMapEntry

    pub struct WgslSourceMapEntry {
    rel_path : String
    symbol_name : String?
    } derive(Eq,
    Debug
    )

    WgslSourceMapEntry::WgslSourceMapEntry

    fn WgslSourceMapEntry::WgslSourceMapEntry(rel_path : String, symbol_name : String?) -> WgslSourceMapEntry

    WgslSourceMapEntry::equal

    WgslSourceMapEntry::not_equal

    WgslSourceOriginEntry

    pub struct WgslSourceOriginEntry {
    generated_symbol_name : String
    rel_path : String
    source_symbol_name : String
    kind : WgslSourceOriginKind
    source_start : Int
    source_end : Int
    } derive(Eq,
    Debug
    )

    WgslSourceOriginEntry::WgslSourceOriginEntry

    fn WgslSourceOriginEntry::WgslSourceOriginEntry(generated_symbol_name : String, rel_path : String, source_symbol_name : String, kind : WgslSourceOriginKind, source_start : Int, source_end : Int) -> WgslSourceOriginEntry

    WgslSourceOriginEntry::equal

    WgslSourceOriginEntry::generated_symbol_name

    fn WgslSourceOriginEntry::generated_symbol_name(self : WgslSourceOriginEntry) -> String

    WgslSourceOriginEntry::kind

    WgslSourceOriginEntry::not_equal

    WgslSourceOriginEntry::rel_path

    fn WgslSourceOriginEntry::rel_path(self : WgslSourceOriginEntry) -> String

    WgslSourceOriginEntry::source_symbol_name

    fn WgslSourceOriginEntry::source_symbol_name(self : WgslSourceOriginEntry) -> String

    WgslSourceOriginKind

    pub(all) enum WgslSourceOriginKind {
    Type
    Constant
    Override
    GlobalVariable
    Function
    Other
    } derive(Eq,
    Debug
    )

    WgslSourceOriginKind::equal

    WgslSourceOriginKind::not_equal

    WgslSymbolRedirect

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

    WgslSymbolRedirect::equal

    WgslSymbolRedirect::not_equal