Lines Matching defs:scalar

2490             logger->missingFunctionality("forcing 32-bit vector type to non 64-bit scalar");
3145 // for scalar dot product, use multiply
3903 // smear condition to vector, if necessary (AST is always scalar)
3904 // Before 1.4, smear like for mix(), starting with 1.4, keep it scalar
6241 //Member 0 must be a Boolean type scalar(LOD),
6245 //Member 4 must be a scalar of integer type, whose Signedness operand is 0(lod),
6246 //Member 5 must be a scalar of integer type, whose Signedness operand is 0(granularity).
6433 bool needMatchingVectors = true; // for non-matrix ops, would a scalar need to smear to match a vector?
6681 // matrix * scalar
6682 // scalar * matrix
6688 // matrix op scalar op in {+, -, /}
6689 // scalar op matrix op in {+, -, /}
6696 // First, handle first-class matrix operations (* and matrix/scalar)
6700 // turn matrix / scalar into a multiply...
6743 // - smear any scalar to a vector
7547 // Build zero scalar or vector for OpIAdd.
7703 // Build zero scalar or vector for OpIAdd.
8223 // Handle group invocation operations scalar by scalar.
8227 // - apply the operation to each scalar
8228 // - make a vector out the scalar results
8235 // do each scalar op
8239 spv::IdImmediate scalar = { true, builder.createCompositeExtract(operands[0], scalarType, indexes) };
8242 spvGroupOperands.push_back(scalar);
8246 spvGroupOperands.push_back(scalar);
8250 spvGroupOperands.push_back(scalar);
8258 spvGroupOperands.push_back(scalar);
9195 // NOTE: never called for scalar/vector1, this is turned into simple mul before this can be reached
9782 // Use 'consts' as the flattened glslang source of scalar constants to recursively
9864 // we have a non-aggregate (scalar) constant
9866 spv::Id scalar = 0;
9869 scalar = builder.makeIntConstant(zero ? 0 : consts[nextConst].getIConst(), specConstant);
9872 scalar = builder.makeUintConstant(zero ? 0 : consts[nextConst].getUConst(), specConstant);
9875 scalar = builder.makeFloatConstant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
9878 scalar = builder.makeBoolConstant(zero ? false : consts[nextConst].getBConst(), specConstant);
9882 scalar = builder.makeInt8Constant(zero ? 0 : consts[nextConst].getI8Const(), specConstant);
9886 scalar = builder.makeUint8Constant(zero ? 0 : consts[nextConst].getU8Const(), specConstant);
9890 scalar = builder.makeInt16Constant(zero ? 0 : consts[nextConst].getI16Const(), specConstant);
9894 scalar = builder.makeUint16Constant(zero ? 0 : consts[nextConst].getU16Const(), specConstant);
9897 scalar = builder.makeInt64Constant(zero ? 0 : consts[nextConst].getI64Const(), specConstant);
9900 scalar = builder.makeUint64Constant(zero ? 0 : consts[nextConst].getU64Const(), specConstant);
9903 scalar = builder.makeDoubleConstant(zero ? 0.0 : consts[nextConst].getDConst(), specConstant);
9907 scalar = builder.makeFloat16Constant(zero ? 0.0F : (float)consts[nextConst].getDConst(), specConstant);
9910 scalar = builder.makeUint64Constant(zero ? 0 : consts[nextConst].getU64Const(), specConstant);
9911 scalar = builder.createUnaryOp(spv::OpBitcast, typeId, scalar);
9914 scalar = builder.getStringId(consts[nextConst].getSConst()->c_str());
9921 return scalar;