Skip to main content

generate_cast

Function generate_cast 

Source
pub fn generate_cast(expr: &str, from: DataType, to: DataType) -> String
Expand description

Generate GLSL cast expression from one type to another.