[glsl-in] Accept precision in local variable

This commit is contained in:
João Capucho 2021-08-01 18:35:18 +01:00 committed by Dzmitry Malyshau
parent bcfe1f6f28
commit da77e1f847

View File

@ -548,6 +548,7 @@ impl Program<'_> {
}
let mut mutable = true;
let mut precision = None;
for &(ref qualifier, meta) in qualifiers {
match *qualifier {
@ -561,6 +562,12 @@ impl Program<'_> {
mutable = false;
}
TypeQualifier::Precision(ref p) => qualifier_arm!(
p,
precision,
meta,
"Cannot use more than one precision qualifier per declaration"
),
_ => {
return Err(ErrorKind::SemanticError(
meta,