naga::back::glsl

Function glsl_scalar

source
const fn glsl_scalar(scalar: Scalar) -> Result<ScalarString<'static>, Error>
Expand description

Helper function that returns scalar related strings

Check ScalarString for the information provided

§Errors

If a Float with an width that isn’t 4 or 8