Raph Levien
6a3f890b58
[derive] Add Rust encoding of structs
...
This also requires some traits and structs in an `encode` module (the
one in piet-metal/piet-gpu-types works, and was used to test).
2020-04-14 20:47:41 -07:00
Raph Levien
e86ea9eff4
[derive] Add writers, enums
...
This adds shader generation of writers (and cleans up some other
things) and much better support for enums.
2020-04-14 15:06:49 -07:00
Raph Levien
265d990cbe
[derive] Add layout
...
Add a layout pass to the struct derive logic.
2020-04-12 16:44:28 -07:00
Raph Levien
afd47a7edd
Start piet-gpu-derive
...
This version will be similar but somewhat different to what's in
piet-metal now. Hopefully a little simpler to use (no distinction
between packed and unpacked structs) and better structured.
2020-04-07 21:44:48 -07:00