README

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

#
DiagnosticDirective

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

#
DiagnosticDirective::DiagnosticDirective

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

#
EnableDirective

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

#
EnableDirective::EnableDirective

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

#
ImportDefWithOffset

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

#
ImportDefWithOffset::ImportDefWithOffset

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

#
ImportDefinition

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

#
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

#
ShaderDefValue

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

#
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::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

#
WgslComposeSymbolIdentity

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

#
WgslComposeSymbolIdentity::WgslComposeSymbolIdentity

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

#
WgslComposeSymbolIdentity::key

#
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

#
WgslDiagnosticSeverity

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

#
WgslDirectives

pub 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
)

#
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::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

#
WgslImportTarget

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

#
WgslReferencePath

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

#
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::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::is_empty

#
WgslResolvedImportModule::module_path

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

#
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

#
WgslSourceFile

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

#
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

#
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::generated_symbol_name

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

#
WgslSourceOriginEntry::kind

#
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
)

#
WgslSymbolRedirect

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

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io