Lines Matching refs:fContext
448 return *fContext.fFloat_Type; in getActualType()
451 return *fContext.fInt_Type; in getActualType()
454 return *fContext.fUInt_Type; in getActualType()
457 if (type.componentType() == *fContext.fHalf_Type) { in getActualType()
458 return fContext.fFloat_Type->toCompound(fContext, type.columns(), type.rows()); in getActualType()
460 if (type.componentType() == *fContext.fShort_Type || in getActualType()
461 type.componentType() == *fContext.fByte_Type) { in getActualType()
462 return fContext.fInt_Type->toCompound(fContext, type.columns(), type.rows()); in getActualType()
464 if (type.componentType() == *fContext.fUShort_Type || in getActualType()
465 type.componentType() == *fContext.fUByte_Type) { in getActualType()
466 return fContext.fUInt_Type->toCompound(fContext, type.columns(), type.rows()); in getActualType()
484 if (type == *fContext.fBool_Type) { in getType()
486 } else if (type == *fContext.fInt_Type || type == *fContext.fShort_Type || in getType()
487 type == *fContext.fIntLiteral_Type) { in getType()
489 } else if (type == *fContext.fUInt_Type || type == *fContext.fUShort_Type) { in getType()
491 } else if (type == *fContext.fFloat_Type || type == *fContext.fHalf_Type || in getType()
492 type == *fContext.fFloatLiteral_Type) { in getType()
494 } else if (type == *fContext.fDouble_Type) { in getType()
507 this->getType(index_type(fContext, type), layout), in getType()
515 IntLiteral count(fContext, -1, type.columns()); in getType()
552 this->getType(*fContext.fFloat_Type, layout), in getType()
560 if (type == *fContext.fVoid_Type) { in getType()
696 if (std::get<0>(intrinsic->second) == kSpecial_IntrinsicKind || is_float(fContext, type)) { in writeIntrinsicCall()
698 } else if (is_signed(fContext, type)) { in writeIntrinsicCall()
700 } else if (is_unsigned(fContext, type)) { in writeIntrinsicCall()
702 } else if (is_bool(fContext, type)) { in writeIntrinsicCall()
741 if (c.fType != *fContext.fVoid_Type) { in writeIntrinsicCall()
780 this->writeWord(this->getType(a->fType.toCompound(fContext, vectorSize, 1)), out); in vectorize()
803 if (is_float(fContext, type)) { in writeGLSLExtendedInstruction()
805 } else if (is_signed(fContext, type)) { in writeGLSLExtendedInstruction()
807 } else if (is_unsigned(fContext, type)) { in writeGLSLExtendedInstruction()
851 args.emplace_back(new FloatLiteral(fContext, -1, 0.0)); in writeSpecialIntrinsic()
852 args.emplace_back(new FloatLiteral(fContext, -1, 0.0)); in writeSpecialIntrinsic()
853 Constructor ctor(-1, *fContext.fFloat2_Type, std::move(args)); in writeSpecialIntrinsic()
880 if (c.fArguments[1]->fType == *fContext.fFloat2_Type) { in writeSpecialIntrinsic()
883 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat_Type); in writeSpecialIntrinsic()
887 if (c.fArguments[1]->fType == *fContext.fFloat3_Type) { in writeSpecialIntrinsic()
890 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat2_Type); in writeSpecialIntrinsic()
894 if (c.fArguments[1]->fType == *fContext.fFloat4_Type) { in writeSpecialIntrinsic()
897 SkASSERT(c.fArguments[1]->fType == *fContext.fFloat3_Type); in writeSpecialIntrinsic()
917 FloatLiteral lodBias(fContext, -1, -0.5); in writeSpecialIntrinsic()
934 if (is_float(fContext, operandType)) { in writeSpecialIntrinsic()
936 } else if (is_signed(fContext, operandType)) { in writeSpecialIntrinsic()
938 } else if (is_unsigned(fContext, operandType)) { in writeSpecialIntrinsic()
998 finalArgs.emplace_back(new FloatLiteral(fContext, -1, 0)); in writeSpecialIntrinsic()
999 finalArgs.emplace_back(new FloatLiteral(fContext, -1, 1)); in writeSpecialIntrinsic()
1153 FloatLiteral zero(fContext, -1, 0); in writeUniformScaleMatrix()
1159 this->writeWord(this->getType(type.componentType().toCompound(fContext, type.rows(), 1)), in writeUniformScaleMatrix()
1184 SpvId srcColumnType = this->getType(srcType.componentType().toCompound(fContext, in writeMatrixCopy()
1187 SpvId dstColumnType = this->getType(dstType.componentType().toCompound(fContext, in writeMatrixCopy()
1191 if (dstType.componentType() == *fContext.fFloat_Type) { in writeMatrixCopy()
1192 FloatLiteral zero(fContext, -1, 0.0); in writeMatrixCopy()
1194 } else if (dstType.componentType() == *fContext.fInt_Type) { in writeMatrixCopy()
1195 IntLiteral zero(fContext, -1, 0); in writeMatrixCopy()
1312 SpvId columnType = this->getType(c.fType.componentType().toCompound(fContext, 2, 1)); in writeMatrixConstructor()
1320 SpvId columnType = this->getType(c.fType.componentType().toCompound(fContext, rows, 1)); in writeMatrixConstructor()
1379 if (dst == *fContext.fFloat_Type || dst == *fContext.fHalf_Type) { in writeVectorConstructor()
1380 if (src == *fContext.fFloat_Type || src == *fContext.fHalf_Type) { in writeVectorConstructor()
1384 } else if (src == *fContext.fInt_Type || in writeVectorConstructor()
1385 src == *fContext.fShort_Type || in writeVectorConstructor()
1386 src == *fContext.fByte_Type) { in writeVectorConstructor()
1388 } else if (src == *fContext.fUInt_Type || in writeVectorConstructor()
1389 src == *fContext.fUShort_Type || in writeVectorConstructor()
1390 src == *fContext.fUByte_Type) { in writeVectorConstructor()
1395 } else if (dst == *fContext.fInt_Type || in writeVectorConstructor()
1396 dst == *fContext.fShort_Type || in writeVectorConstructor()
1397 dst == *fContext.fByte_Type) { in writeVectorConstructor()
1398 if (src == *fContext.fFloat_Type || src == *fContext.fHalf_Type) { in writeVectorConstructor()
1400 } else if (src == *fContext.fInt_Type || in writeVectorConstructor()
1401 src == *fContext.fShort_Type || in writeVectorConstructor()
1402 src == *fContext.fByte_Type) { in writeVectorConstructor()
1406 } else if (src == *fContext.fUInt_Type || in writeVectorConstructor()
1407 src == *fContext.fUShort_Type || in writeVectorConstructor()
1408 src == *fContext.fUByte_Type) { in writeVectorConstructor()
1413 } else if (dst == *fContext.fUInt_Type || in writeVectorConstructor()
1414 dst == *fContext.fUShort_Type || in writeVectorConstructor()
1415 dst == *fContext.fUByte_Type) { in writeVectorConstructor()
1416 if (src == *fContext.fFloat_Type || src == *fContext.fHalf_Type) { in writeVectorConstructor()
1418 } else if (src == *fContext.fInt_Type || in writeVectorConstructor()
1419 src == *fContext.fShort_Type || in writeVectorConstructor()
1420 src == *fContext.fByte_Type) { in writeVectorConstructor()
1422 } else if (src == *fContext.fUInt_Type || in writeVectorConstructor()
1423 src == *fContext.fUShort_Type || in writeVectorConstructor()
1424 src == *fContext.fUByte_Type) { in writeVectorConstructor()
1491 if (c.fType == *fContext.fFloat_Type || c.fType == *fContext.fHalf_Type) { in writeConstructor()
1493 } else if (c.fType == *fContext.fInt_Type || in writeConstructor()
1494 c.fType == *fContext.fShort_Type || in writeConstructor()
1495 c.fType == *fContext.fByte_Type) { in writeConstructor()
1497 } else if (c.fType == *fContext.fUInt_Type || in writeConstructor()
1498 c.fType == *fContext.fUShort_Type || in writeConstructor()
1499 c.fType == *fContext.fUByte_Type) { in writeConstructor()
1565 IntLiteral index(fContext, -1, fieldExpr.fFieldIndex); in getAccessChain()
1732 IntLiteral index(fContext, -1, swizzle.fComponents[0]); in getLValue()
1774 this->writeInstruction(SpvOpPhi, this->getType(*fContext.fBool_Type), result, ifTrue, in getLValue()
1820 SKSL_RTHEIGHT_NAME, fContext.fFloat_Type.get()); in writeVariableReference()
1851 this->writeInstruction(SpvOpCompositeExtract, this->getType(*fContext.fFloat_Type), xId, in writeVariableReference()
1853 IntLiteral fieldIndex(fContext, -1, fRTHeightFieldIndex); in writeVariableReference()
1857 this->writeWord(this->getPointerType(*fContext.fFloat_Type, SpvStorageClassUniform), out); in writeVariableReference()
1862 this->writeInstruction(SpvOpLoad, this->getType(*fContext.fFloat_Type), heightRead, in writeVariableReference()
1865 this->writeInstruction(SpvOpCompositeExtract, this->getType(*fContext.fFloat_Type), rawYId, in writeVariableReference()
1868 this->writeInstruction(SpvOpFSub, this->getType(*fContext.fFloat_Type), flippedYId, in writeVariableReference()
1870 FloatLiteral zero(fContext, -1, 0.0); in writeVariableReference()
1872 FloatLiteral one(fContext, -1, 1.0); in writeVariableReference()
1874 this->writeInstruction(SpvOpCompositeExtract, this->getType(*fContext.fFloat_Type), wId, in writeVariableReference()
1878 this->writeWord(this->getType(*fContext.fFloat4_Type), out); in writeVariableReference()
1891 this->writeInstruction(SpvOpLogicalNot, this->getType(*fContext.fBool_Type), inverse, in writeVariableReference()
1930 FloatLiteral zero(fContext, -1, 0); in writeSwizzle()
1932 FloatLiteral one(fContext, -1, 1); in writeSwizzle()
1934 SpvId type = this->getType(*fContext.fFloat2_Type); in writeSwizzle()
1965 if (is_float(fContext, operandType)) { in writeBinaryOperation()
1967 } else if (is_signed(fContext, operandType)) { in writeBinaryOperation()
1969 } else if (is_unsigned(fContext, operandType)) { in writeBinaryOperation()
1971 } else if (operandType == *fContext.fBool_Type) { in writeBinaryOperation()
1988 this->writeInstruction(op, this->getType(*fContext.fBool_Type), result, id, out); in foldToBool()
1998 SpvOp_ compareOp = is_float(fContext, operandType) ? floatOperator : intOperator; in writeMatrixComparison()
2000 SpvId columnType = this->getType(operandType.componentType().toCompound(fContext, in writeMatrixComparison()
2003 SpvId bvecType = this->getType(fContext.fBool_Type->toCompound(fContext, in writeMatrixComparison()
2006 SpvId boolType = this->getType(*fContext.fBool_Type); in writeMatrixComparison()
2033 SpvOp_ op = is_float(fContext, operandType) ? floatOperator : intOperator; in writeComponentwiseMatrixBinary()
2035 SpvId columnType = this->getType(operandType.componentType().toCompound(fContext, in writeComponentwiseMatrixBinary()
2079 SpvId one = this->writeExpression(*create_literal_1(fContext, rightType), out); in writeBinaryExpression()
2159 SkASSERT(resultType == *fContext.fBool_Type); in writeBinaryExpression()
2162 tmpType = &fContext.fBool_Type->toCompound(fContext, in writeBinaryExpression()
2178 SkASSERT(resultType == *fContext.fBool_Type); in writeBinaryExpression()
2181 tmpType = &fContext.fBool_Type->toCompound(fContext, in writeBinaryExpression()
2193 SkASSERT(resultType == *fContext.fBool_Type); in writeBinaryExpression()
2198 SkASSERT(resultType == *fContext.fBool_Type); in writeBinaryExpression()
2202 SkASSERT(resultType == *fContext.fBool_Type); in writeBinaryExpression()
2207 SkASSERT(resultType == *fContext.fBool_Type); in writeBinaryExpression()
2307 BoolLiteral falseLiteral(fContext, -1, false); in writeLogicalAnd()
2321 this->writeInstruction(SpvOpPhi, this->getType(*fContext.fBool_Type), result, falseConstant, in writeLogicalAnd()
2328 BoolLiteral trueLiteral(fContext, -1, true); in writeLogicalOr()
2342 this->writeInstruction(SpvOpPhi, this->getType(*fContext.fBool_Type), result, trueConstant, in writeLogicalOr()
2386 if (is_float(fContext, p.fType)) { in writePrefixExpression()
2388 } else if (is_signed(fContext, p.fType)) { in writePrefixExpression()
2401 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePrefixExpression()
2410 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePrefixExpression()
2418 SkASSERT(p.fOperand->fType == *fContext.fBool_Type); in writePrefixExpression()
2438 SpvId one = this->writeExpression(*create_literal_1(fContext, p.fType), out); in writePostfixExpression()
2477 if (i.fType == *fContext.fInt_Type) { in writeIntLiteral()
2479 } else if (i.fType == *fContext.fUInt_Type) { in writeIntLiteral()
2481 } else if (i.fType == *fContext.fShort_Type) { in writeIntLiteral()
2483 } else if (i.fType == *fContext.fUShort_Type) { in writeIntLiteral()
2499 if (f.fType != *fContext.fDouble_Type) { in writeFloatLiteral()
2501 if (f.fType == *fContext.fHalf_Type) { in writeFloatLiteral()
2564 if (f.fDeclaration.fReturnType == *fContext.fVoid_Type) { in writeFunction()
2667 … fields.emplace_back(Modifiers(), StringFragment(SKSL_RTHEIGHT_NAME), fContext.fFloat_Type.get()); in writeInterfaceBlock()
3157 intf.fSizes.emplace_back(new IntLiteral(fContext, -1, skInSize)); in writeInstructions()