Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cargo Features

wgsl-rs

FeatureDefault?Description
validationYesCompile-time WGSL validation of generated source
dispatch-runtimeNoEnable runtime dispatch support
linkage-wgpuNoEnable wgpu-based linkage (bind group reflection, pipeline layout)

wgsl-rs-layout

FeatureDefault?Description
doc-diagramsNoEnable generate_svg for byte-layout SVG diagrams

Usage

[dependencies]
wgsl-rs = { version = "0.1", default-features = false, features = ["validation", "linkage-wgpu"] }
wgsl-rs-layout = { version = "0.1", features = ["doc-diagrams"] }