Versions in this module Expand all Collapse all v0 v0.18.0 Aug 2, 2026 Changes in this version + func Compile(source string) ([]byte, error) + func CompileWithOptions(source string, opts CompileOptions) ([]byte, error) + func GenerateSPIRV(module *ir.Module, opts spirv.Options) ([]byte, error) + func Lower(ast *wgsl.Module) (*ir.Module, error) + func LowerWithSource(ast *wgsl.Module, source string) (*ir.Module, error) + func Parse(source string) (*wgsl.Module, error) + func Validate(module *ir.Module) ([]ir.ValidationError, error) + type CompileOptions struct + Debug bool + SPIRVVersion spirv.Version + Validate bool + func DefaultOptions() CompileOptions