Lines Matching defs:scalar
1315 // Return the lowest-level type of scalar that an homogeneous composite is made out of.
1394 // Returns true if 'typeId' is or contains a scalar type declared with 'typeOp'
1449 // See if a scalar constant of this type has already been created, so it
2835 Id Builder::smearScalar(Decoration precision, Id scalar, Id vectorType)
2837 assert(getNumComponents(scalar) == 1);
2838 assert(getTypeId(scalar) == getScalarTypeId(vectorType));
2842 return scalar;
2846 auto members = std::vector<spv::Id>(numComponents, scalar);
2848 // promoting a scalar might not be a spec constant. This should depend on
2849 // the scalar.
2855 auto result_id = makeCompositeConstant(vectorType, members, isSpecConstant(scalar));
2860 smear->addIdOperand(scalar);
3086 // above when resultType was changed to a scalar type.
3191 // scalar
3256 // Vector or scalar constructor
3263 // Special case: when calling a vector constructor with a single scalar
3264 // argument, smear the scalar
3402 // a single scalar; resets the diagonals