HLSL: fix invalid spir-v vector * scalar for float1
Missing check for float results in always emitting OpIMul even for float types
This commit is contained in:
@@ -4633,7 +4633,9 @@ spv::Id TGlslangToSpvTraverser::createBinaryOperation(glslang::TOperator op, OpD
|
||||
assert(builder.isScalar(right));
|
||||
needMatchingVectors = false;
|
||||
binOp = spv::OpVectorTimesScalar;
|
||||
} else
|
||||
} else if (isFloat)
|
||||
binOp = spv::OpFMul;
|
||||
else
|
||||
binOp = spv::OpIMul;
|
||||
break;
|
||||
case glslang::EOpVectorTimesMatrix:
|
||||
|
||||
Reference in New Issue
Block a user