Skip to content

Commit 1596970

Browse files
authored
fix(transpiler): append "precision" for precision decl (#53)
This patch fixes the case "Default Precision Qualifiers", we should append "precision " before the qualifier in this case.
1 parent 222af29 commit 1596970

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lang/src/transpiler/glsl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,6 +1527,7 @@ where
15271527
show_init_declarator_list(f, list, state)?;
15281528
}
15291529
ast::DeclarationData::Precision(ref qual, ref ty) => {
1530+
f.write_str("precision ")?;
15301531
show_precision_qualifier(f, qual, state)?;
15311532
f.write_str(" ")?;
15321533
show_type_specifier(f, ty, state)?;

0 commit comments

Comments
 (0)