Lines Matching refs:writeWord
142 void SPIRVCodeGenerator::writeWord(int32_t word, OutputStream& out) { in writeWord() function in SkSL::SPIRVCodeGenerator
229 this->writeWord((length << 16) | opCode, out); in writeOpCode()
243 this->writeWord(word1, out); in writeInstruction()
259 this->writeWord(0, out); in writeString()
272 this->writeWord(word1, out); in writeInstruction()
279 this->writeWord(word1, out); in writeInstruction()
280 this->writeWord(word2, out); in writeInstruction()
287 this->writeWord(word1, out); in writeInstruction()
288 this->writeWord(word2, out); in writeInstruction()
294 this->writeWord(word1, out); in writeInstruction()
295 this->writeWord(word2, out); in writeInstruction()
296 this->writeWord(word3, out); in writeInstruction()
302 this->writeWord(word1, out); in writeInstruction()
303 this->writeWord(word2, out); in writeInstruction()
304 this->writeWord(word3, out); in writeInstruction()
305 this->writeWord(word4, out); in writeInstruction()
312 this->writeWord(word1, out); in writeInstruction()
313 this->writeWord(word2, out); in writeInstruction()
314 this->writeWord(word3, out); in writeInstruction()
315 this->writeWord(word4, out); in writeInstruction()
316 this->writeWord(word5, out); in writeInstruction()
323 this->writeWord(word1, out); in writeInstruction()
324 this->writeWord(word2, out); in writeInstruction()
325 this->writeWord(word3, out); in writeInstruction()
326 this->writeWord(word4, out); in writeInstruction()
327 this->writeWord(word5, out); in writeInstruction()
328 this->writeWord(word6, out); in writeInstruction()
335 this->writeWord(word1, out); in writeInstruction()
336 this->writeWord(word2, out); in writeInstruction()
337 this->writeWord(word3, out); in writeInstruction()
338 this->writeWord(word4, out); in writeInstruction()
339 this->writeWord(word5, out); in writeInstruction()
340 this->writeWord(word6, out); in writeInstruction()
341 this->writeWord(word7, out); in writeInstruction()
349 this->writeWord(word1, out); in writeInstruction()
350 this->writeWord(word2, out); in writeInstruction()
351 this->writeWord(word3, out); in writeInstruction()
352 this->writeWord(word4, out); in writeInstruction()
353 this->writeWord(word5, out); in writeInstruction()
354 this->writeWord(word6, out); in writeInstruction()
355 this->writeWord(word7, out); in writeInstruction()
356 this->writeWord(word8, out); in writeInstruction()
387 this->writeWord(resultId, fConstantBuffer); in writeStruct()
389 this->writeWord(id, fConstantBuffer); in writeStruct()
606 this->writeWord(result, fConstantBuffer); in getFunctionType()
607 this->writeWord(returnType, fConstantBuffer); in getFunctionType()
609 this->writeWord(id, fConstantBuffer); in getFunctionType()
702 this->writeWord(this->getType(c.fType), out); in writeIntrinsicCall()
703 this->writeWord(result, out); in writeIntrinsicCall()
704 this->writeWord(fGLSLExtendedInstructions, out); in writeIntrinsicCall()
705 this->writeWord(intrinsicId, out); in writeIntrinsicCall()
707 this->writeWord(id, out); in writeIntrinsicCall()
723 this->writeWord(this->getType(c.fType), out); in writeIntrinsicCall()
724 this->writeWord(result, out); in writeIntrinsicCall()
729 this->writeWord(id, out); in writeIntrinsicCall()
760 this->writeWord(this->getType(a->fType.toCompound(fContext, vectorSize, 1)), out); in vectorize()
761 this->writeWord(vector, out); in vectorize()
763 this->writeWord(raw, out); in vectorize()
778 this->writeWord(this->getType(type), out); in writeGLSLExtendedInstruction()
779 this->writeWord(id, out); in writeGLSLExtendedInstruction()
780 this->writeWord(fGLSLExtendedInstructions, out); in writeGLSLExtendedInstruction()
783 this->writeWord(floatInst, out); in writeGLSLExtendedInstruction()
785 this->writeWord(signedInst, out); in writeGLSLExtendedInstruction()
787 this->writeWord(unsignedInst, out); in writeGLSLExtendedInstruction()
792 this->writeWord(a, out); in writeGLSLExtendedInstruction()
806 this->writeWord(this->getType(c.fType), out); in writeSpecialIntrinsic()
807 this->writeWord(result, out); in writeSpecialIntrinsic()
808 this->writeWord(fGLSLExtendedInstructions, out); in writeSpecialIntrinsic()
809 this->writeWord(arguments.size() == 2 ? GLSLstd450Atan2 : GLSLstd450Atan, out); in writeSpecialIntrinsic()
811 this->writeWord(id, out); in writeSpecialIntrinsic()
912 this->writeWord(this->getType(operandType), out); in writeSpecialIntrinsic()
913 this->writeWord(result, out); in writeSpecialIntrinsic()
914 this->writeWord(args[0], out); in writeSpecialIntrinsic()
915 this->writeWord(args[1], out); in writeSpecialIntrinsic()
1006 this->writeWord(this->getType(c.fType), out); in writeFunctionCall()
1007 this->writeWord(result, out); in writeFunctionCall()
1008 this->writeWord(entry->second, out); in writeFunctionCall()
1010 this->writeWord(id, out); in writeFunctionCall()
1033 this->writeWord(type, fConstantBuffer); in writeConstantVector()
1034 this->writeWord(result, fConstantBuffer); in writeConstantVector()
1036 this->writeWord(arguments[0], fConstantBuffer); in writeConstantVector()
1041 this->writeWord(type, fConstantBuffer); in writeConstantVector()
1042 this->writeWord(result, fConstantBuffer); in writeConstantVector()
1044 this->writeWord(id, fConstantBuffer); in writeConstantVector()
1110 this->writeWord(this->getType(type.componentType().toCompound(fContext, type.rows(), 1)), in writeUniformScaleMatrix()
1113 this->writeWord(columnId, out); in writeUniformScaleMatrix()
1116 this->writeWord(row == column ? diagonal : zeroId, out); in writeUniformScaleMatrix()
1121 this->writeWord(this->getType(type), out); in writeUniformScaleMatrix()
1122 this->writeWord(id, out); in writeUniformScaleMatrix()
1124 this->writeWord(id, out); in writeUniformScaleMatrix()
1166 this->writeWord(dstColumnType, out); in writeMatrixCopy()
1167 this->writeWord(dstColumn, out); in writeMatrixCopy()
1168 this->writeWord(srcColumn, out); in writeMatrixCopy()
1170 this->writeWord(zeroId, out); in writeMatrixCopy()
1178 this->writeWord(dstColumnType, out); in writeMatrixCopy()
1179 this->writeWord(dstColumn, out); in writeMatrixCopy()
1180 this->writeWord(srcColumn, out); in writeMatrixCopy()
1181 this->writeWord(srcColumn, out); in writeMatrixCopy()
1183 this->writeWord(i, out); in writeMatrixCopy()
1192 this->writeWord(dstColumnType, out); in writeMatrixCopy()
1193 this->writeWord(zeroColumn, out); in writeMatrixCopy()
1195 this->writeWord(zeroId, out); in writeMatrixCopy()
1202 this->writeWord(this->getType(dstType), out); in writeMatrixCopy()
1203 this->writeWord(id, out); in writeMatrixCopy()
1205 this->writeWord(columns[i], out); in writeMatrixCopy()
1268 this->writeWord(this->getType(c.fType.componentType().toCompound(fContext, rows, in writeMatrixConstructor()
1272 this->writeWord(columnId, out); in writeMatrixConstructor()
1275 this->writeWord(id, out); in writeMatrixConstructor()
1284 this->writeWord(this->getType(c.fType), out); in writeMatrixConstructor()
1285 this->writeWord(result, out); in writeMatrixConstructor()
1287 this->writeWord(id, out); in writeMatrixConstructor()
1384 this->writeWord(this->getType(c.fType), out); in writeVectorConstructor()
1385 this->writeWord(result, out); in writeVectorConstructor()
1387 this->writeWord(arguments[0], out); in writeVectorConstructor()
1392 this->writeWord(this->getType(c.fType), out); in writeVectorConstructor()
1393 this->writeWord(result, out); in writeVectorConstructor()
1395 this->writeWord(id, out); in writeVectorConstructor()
1411 this->writeWord(this->getType(c.fType), out); in writeArrayConstructor()
1412 this->writeWord(result, out); in writeArrayConstructor()
1414 this->writeWord(id, out); in writeArrayConstructor()
1557 fGen.writeWord(fGen.getType(fSwizzleType), out); in load()
1558 fGen.writeWord(result, out); in load()
1559 fGen.writeWord(base, out); in load()
1560 fGen.writeWord(base, out); in load()
1562 fGen.writeWord(component, out); in load()
1582 fGen.writeWord(fGen.getType(fBaseType), out); in store()
1583 fGen.writeWord(shuffle, out); in store()
1584 fGen.writeWord(base, out); in store()
1585 fGen.writeWord(value, out); in store()
1600 fGen.writeWord(offset, out); in store()
1636 this->writeWord(this->getPointerType(expr.fType, get_storage_class(expr)), out); in getLValue()
1637 this->writeWord(member, out); in getLValue()
1639 this->writeWord(idx, out); in getLValue()
1756 this->writeWord(this->getPointerType(*fContext.fFloat_Type, SpvStorageClassUniform), out); in writeVariableReference()
1757 this->writeWord(heightPtr, out); in writeVariableReference()
1758 this->writeWord(fRTHeightStructId, out); in writeVariableReference()
1759 this->writeWord(fieldIndexId, out); in writeVariableReference()
1777 this->writeWord(this->getType(*fContext.fFloat4_Type), out); in writeVariableReference()
1778 this->writeWord(flipped, out); in writeVariableReference()
1779 this->writeWord(xId, out); in writeVariableReference()
1780 this->writeWord(flippedYId, out); in writeVariableReference()
1781 this->writeWord(zeroId, out); in writeVariableReference()
1782 this->writeWord(wId, out); in writeVariableReference()
1822 this->writeWord(this->getType(swizzle.fType), out); in writeSwizzle()
1823 this->writeWord(result, out); in writeSwizzle()
1824 this->writeWord(base, out); in writeSwizzle()
1825 this->writeWord(base, out); in writeSwizzle()
1827 this->writeWord(component, out); in writeSwizzle()
1939 this->writeWord(this->getType(operandType), out); in writeComponentwiseMatrixBinary()
1940 this->writeWord(result, out); in writeComponentwiseMatrixBinary()
1942 this->writeWord(columns[i], out); in writeComponentwiseMatrixBinary()
1990 this->writeWord(this->getType(vecType), out); in writeBinaryExpression()
1991 this->writeWord(vec, out); in writeBinaryExpression()
1993 this->writeWord(rhs, out); in writeBinaryExpression()
2003 this->writeWord(this->getType(vecType), out); in writeBinaryExpression()
2004 this->writeWord(vec, out); in writeBinaryExpression()
2006 this->writeWord(lhs, out); in writeBinaryExpression()
2983 this->writeWord(value, out); in writeSwitchStatement()
2984 this->writeWord(defaultLabel, out); in writeSwitchStatement()
2990 this->writeWord(((IntLiteral&) *s.fCases[i]->fValue).fValue, out); in writeSwitchStatement()
2991 this->writeWord(labels[i], out); in writeSwitchStatement()
3166 this->writeWord(SpvExecutionModelVertex, out); in writeInstructions()
3169 this->writeWord(SpvExecutionModelFragment, out); in writeInstructions()
3172 this->writeWord(SpvExecutionModelGeometry, out); in writeInstructions()
3178 this->writeWord(entryPoint, out); in writeInstructions()
3181 this->writeWord(var, out); in writeInstructions()
3208 this->writeWord(SpvMagicNumber, *fOut); in generateCode()
3209 this->writeWord(SpvVersion, *fOut); in generateCode()
3210 this->writeWord(SKSL_MAGIC, *fOut); in generateCode()
3213 this->writeWord(fIdCount, *fOut); in generateCode()
3214 this->writeWord(0, *fOut); // reserved, always zero in generateCode()