[spv] support GLSL's Distance

This commit is contained in:
Dzmitry Malyshau 2020-11-12 12:38:00 -05:00
parent 5e77653c55
commit 4d4e1cd4cb

View File

@ -1283,6 +1283,10 @@ impl<I: Iterator<Item = u32>> Parser<I> {
inst.expect(base_wc + 1)?; inst.expect(base_wc + 1)?;
"length" "length"
} }
Some(spirv::GLOp::Distance) => {
inst.expect(base_wc + 2)?;
"distance"
}
Some(spirv::GLOp::Cross) => { Some(spirv::GLOp::Cross) => {
inst.expect(base_wc + 2)?; inst.expect(base_wc + 2)?;
"cross" "cross"