Module naga_to_tokenstream::constants
source · Expand description
Methods for converting sets of naga::Constant
s to token streams.
Functions§
- Converts a constant in a module into a collection of Rust definitions including the type and value of the constant, if representable.
- Builds a collection of constants into a collection of Rust module definitions containing each of the constants properties, such as type and value.