Skip to main content

Crate wesl_core

Crate wesl_core 

Source
Expand description

§Stable type definitions for WESL packages

This crate contains stable type definitions for WESL packages, used by the packager for crates published to crates-io.

In shader crates, we recommend to use wesl-core as a runtime dependency instead of wesl, as it is more lightweight and its version is only bumped when the packaging format changes.

Macros§

include_wesl
Include a WGSL file compiled with wesl::CompileResult::write_artifact as a string.
wesl_pkg
Include a generated package.

Structs§

StaticPackage
The type holding the source code of external packages.
StaticPackageModule
The type holding the source code of modules in external packages.