Skip to main content

resolve_includes

Function resolve_includes 

Source
pub async fn resolve_includes(source: &str) -> Result<String, ResolverError>
Expand description

Resolves #include directives in the given shader source.

Currently supports:

  • lygia.xyz/ or lygia/ prefix (maps to https://lygia.xyz)
  • github.com/ prefix (maps to https://raw.githubusercontent.com)

Only .glsl and .wgsl files are supported.