# vyre examples
Run any example with:
cargo run --example <name>
or see the source under `examples/`.
## 01_xor_validate_lower
The end-to-end vyre flow on a concrete program: construct → validate →
lower to WGSL → wire round-trip. The minimum viable example. Start here.
## 02_xor_gpu_dispatch
Same xor program, but actually dispatched on the GPU with real input
data. Verifies the lowered shader produces the expected bit-pattern.
Requires a working WGPU device.
## 03_invalid_program_errors
Demonstrates vyre's actionable error messages (the `Fix: ...` style)
by intentionally constructing two malformed programs and showing what
`validate()` and `lower()` say. Useful when learning to debug your own
IR.