fn put_numeric_type(
out: &mut impl Write,
scalar: Scalar,
sizes: &[VectorSize],
) -> Result<(), Error>
Expand description
Write the Metal name for a Naga numeric type: scalar, vector, or matrix.
The sizes
slice determines whether this function writes a
scalar, vector, or matrix type:
- An empty slice produces a scalar type.
- A one-element slice produces a vector type.
- A two element slice
[ROWS COLUMNS]
produces a matrix of the given size.