The token order of OpVectorTimesScalar and OpMatrixTimesScalar which generated in glslangValidator isn't consistant with SPEC

Posted by Aras Pranckevicius on Jun 12

Hi,

According to SPIR-V spec,
OpVectorTimesScalar’s first source operand is vector and secondary is scalar,
and OpMatrixTimesScalar’s first source operand is matrix and secondary is
scalar.

But it seems the token order generated by glslangValidator isn’t consistant
with sepc.

It is better if you can update glslangValidator to match spec’s behavior.

following is a simple sample, in case you need it.
Example:
GLSL soruce:…

Leave a Reply