mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-30 10:45:06 +00:00
[glsl-in] Accept precision in local variable
This commit is contained in:
parent
bcfe1f6f28
commit
da77e1f847
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user