Cargo Features
wgsl-parse has no features set by default.
[dependencies]
wgsl-parse = { version = "0.1.0", features = ["wesl", "attributes", "templates", "generics", "condcomp", "imports", "serde"] }
- wesl = condcomp, generics, imports
- attributes condcomp? generics?
-
allow attributes on most declarations and statements. reference: https://github.com/wgsl-tooling-wg/wesl-spec/blob/main/ConditionalTranslation.md#appendix-updated-grammar
Affects
syntax::Import.attributes
,syntax::DiagnosticDirective.attributes
,syntax::EnableDirective.attributes
,syntax::RequiresDirective.attributes
,syntax::TypeAlias.attributes
,syntax::Struct.attributes
,syntax::ConstAssert.attributes
,syntax::AssignmentStatement.attributes
,syntax::IncrementStatement.attributes
,syntax::DecrementStatement.attributes
,syntax::ElseIfClause.attributes
,syntax::ElseClause.attributes
,syntax::SwitchClause.attributes
,syntax::ContinuingStatement.attributes
,syntax::BreakIfStatement.attributes
,syntax::BreakStatement.attributes
… - templates
-
allow templates on function declarations
reference: none yet - generics wesl? = attributes
-
reference: none yet
Affects
syntax::TypeConstraint
… - condcomp wesl? = attributes
-
conditional translation attribute (@if). reference: https://github.com/wgsl-tooling-wg/wesl-spec/blob/main/ConditionalTranslation.md
- imports wesl?
-
import declarations. reference: https://github.com/wgsl-tooling-wg/wesl-spec/blob/main/Imports.md
Affects
syntax::TranslationUnit.imports
,syntax::Import
,syntax::ImportContent
,syntax::ImportItem
,syntax::TypeExpression.path
…