Lines Matching refs:writeWord
141 void SPIRVCodeGenerator::writeWord(int32_t word, OutputStream& out) { in writeWord() function in SkSL::SPIRVCodeGenerator
228 this->writeWord((length << 16) | opCode, out); in writeOpCode()
242 this->writeWord(word1, out); in writeInstruction()
258 this->writeWord(0, out); in writeString()
271 this->writeWord(word1, out); in writeInstruction()
278 this->writeWord(word1, out); in writeInstruction()
279 this->writeWord(word2, out); in writeInstruction()
286 this->writeWord(word1, out); in writeInstruction()
287 this->writeWord(word2, out); in writeInstruction()
293 this->writeWord(word1, out); in writeInstruction()
294 this->writeWord(word2, out); in writeInstruction()
295 this->writeWord(word3, out); in writeInstruction()
301 this->writeWord(word1, out); in writeInstruction()
302 this->writeWord(word2, out); in writeInstruction()
303 this->writeWord(word3, out); in writeInstruction()
304 this->writeWord(word4, out); in writeInstruction()
311 this->writeWord(word1, out); in writeInstruction()
312 this->writeWord(word2, out); in writeInstruction()
313 this->writeWord(word3, out); in writeInstruction()
314 this->writeWord(word4, out); in writeInstruction()
315 this->writeWord(word5, out); in writeInstruction()
322 this->writeWord(word1, out); in writeInstruction()
323 this->writeWord(word2, out); in writeInstruction()
324 this->writeWord(word3, out); in writeInstruction()
325 this->writeWord(word4, out); in writeInstruction()
326 this->writeWord(word5, out); in writeInstruction()
327 this->writeWord(word6, out); in writeInstruction()
334 this->writeWord(word1, out); in writeInstruction()
335 this->writeWord(word2, out); in writeInstruction()
336 this->writeWord(word3, out); in writeInstruction()
337 this->writeWord(word4, out); in writeInstruction()
338 this->writeWord(word5, out); in writeInstruction()
339 this->writeWord(word6, out); in writeInstruction()
340 this->writeWord(word7, out); in writeInstruction()
348 this->writeWord(word1, out); in writeInstruction()
349 this->writeWord(word2, out); in writeInstruction()
350 this->writeWord(word3, out); in writeInstruction()
351 this->writeWord(word4, out); in writeInstruction()
352 this->writeWord(word5, out); in writeInstruction()
353 this->writeWord(word6, out); in writeInstruction()
354 this->writeWord(word7, out); in writeInstruction()
355 this->writeWord(word8, out); in writeInstruction()
386 this->writeWord(resultId, fConstantBuffer); in writeStruct()
388 this->writeWord(id, fConstantBuffer); in writeStruct()
612 this->writeWord(result, fConstantBuffer); in getFunctionType()
613 this->writeWord(returnType, fConstantBuffer); in getFunctionType()
615 this->writeWord(id, fConstantBuffer); in getFunctionType()
708 this->writeWord(this->getType(c.fType), out); in writeIntrinsicCall()
709 this->writeWord(result, out); in writeIntrinsicCall()
710 this->writeWord(fGLSLExtendedInstructions, out); in writeIntrinsicCall()
711 this->writeWord(intrinsicId, out); in writeIntrinsicCall()
713 this->writeWord(id, out); in writeIntrinsicCall()
729 this->writeWord(this->getType(c.fType), out); in writeIntrinsicCall()
730 this->writeWord(result, out); in writeIntrinsicCall()
735 this->writeWord(id, out); in writeIntrinsicCall()
766 this->writeWord(this->getType(a->fType.toCompound(fContext, vectorSize, 1)), out); in vectorize()
767 this->writeWord(vector, out); in vectorize()
769 this->writeWord(raw, out); in vectorize()
785 this->writeWord(this->getType(type), out); in writeGLSLExtendedInstruction()
786 this->writeWord(id, out); in writeGLSLExtendedInstruction()
787 this->writeWord(fGLSLExtendedInstructions, out); in writeGLSLExtendedInstruction()
790 this->writeWord(floatInst, out); in writeGLSLExtendedInstruction()
792 this->writeWord(signedInst, out); in writeGLSLExtendedInstruction()
794 this->writeWord(unsignedInst, out); in writeGLSLExtendedInstruction()
799 this->writeWord(a, out); in writeGLSLExtendedInstruction()
813 this->writeWord(this->getType(c.fType), out); in writeSpecialIntrinsic()
814 this->writeWord(result, out); in writeSpecialIntrinsic()
815 this->writeWord(fGLSLExtendedInstructions, out); in writeSpecialIntrinsic()
816 this->writeWord(arguments.size() == 2 ? GLSLstd450Atan2 : GLSLstd450Atan, out); in writeSpecialIntrinsic()
818 this->writeWord(id, out); in writeSpecialIntrinsic()
919 this->writeWord(this->getType(operandType), out); in writeSpecialIntrinsic()
920 this->writeWord(result, out); in writeSpecialIntrinsic()
921 this->writeWord(args[0], out); in writeSpecialIntrinsic()
922 this->writeWord(args[1], out); in writeSpecialIntrinsic()
928 this->writeWord(this->getType(c.fType), out); in writeSpecialIntrinsic()
929 this->writeWord(result, out); in writeSpecialIntrinsic()
930 this->writeWord(fn, out); in writeSpecialIntrinsic()
1027 this->writeWord(this->getType(c.fType), out); in writeFunctionCall()
1028 this->writeWord(result, out); in writeFunctionCall()
1029 this->writeWord(entry->second, out); in writeFunctionCall()
1031 this->writeWord(id, out); in writeFunctionCall()
1056 this->writeWord(type, fConstantBuffer); in writeConstantVector()
1057 this->writeWord(result, fConstantBuffer); in writeConstantVector()
1059 this->writeWord(arguments[0], fConstantBuffer); in writeConstantVector()
1064 this->writeWord(type, fConstantBuffer); in writeConstantVector()
1065 this->writeWord(result, fConstantBuffer); in writeConstantVector()
1067 this->writeWord(id, fConstantBuffer); in writeConstantVector()
1133 this->writeWord(this->getType(type.componentType().toCompound(fContext, type.rows(), 1)), in writeUniformScaleMatrix()
1136 this->writeWord(columnId, out); in writeUniformScaleMatrix()
1139 this->writeWord(row == column ? diagonal : zeroId, out); in writeUniformScaleMatrix()
1145 this->writeWord(this->getType(type), out); in writeUniformScaleMatrix()
1146 this->writeWord(id, out); in writeUniformScaleMatrix()
1148 this->writeWord(id, out); in writeUniformScaleMatrix()
1192 this->writeWord(dstColumnType, out); in writeMatrixCopy()
1193 this->writeWord(dstColumn, out); in writeMatrixCopy()
1194 this->writeWord(srcColumn, out); in writeMatrixCopy()
1196 this->writeWord(zeroId, out); in writeMatrixCopy()
1205 this->writeWord(dstColumnType, out); in writeMatrixCopy()
1206 this->writeWord(dstColumn, out); in writeMatrixCopy()
1207 this->writeWord(srcColumn, out); in writeMatrixCopy()
1208 this->writeWord(srcColumn, out); in writeMatrixCopy()
1210 this->writeWord(i, out); in writeMatrixCopy()
1220 this->writeWord(dstColumnType, out); in writeMatrixCopy()
1221 this->writeWord(zeroColumn, out); in writeMatrixCopy()
1223 this->writeWord(zeroId, out); in writeMatrixCopy()
1231 this->writeWord(this->getType(dstType), out); in writeMatrixCopy()
1232 this->writeWord(id, out); in writeMatrixCopy()
1234 this->writeWord(columns[i], out); in writeMatrixCopy()
1250 this->writeWord(columnType, out); in addColumnEntry()
1252 this->writeWord(columnId, out); in addColumnEntry()
1255 this->writeWord(id, out); in addColumnEntry()
1324 this->writeWord(this->getType(c.fType), out); in writeMatrixConstructor()
1325 this->writeWord(result, out); in writeMatrixConstructor()
1327 this->writeWord(id, out); in writeMatrixConstructor()
1425 this->writeWord(this->getType(c.fType), out); in writeVectorConstructor()
1426 this->writeWord(result, out); in writeVectorConstructor()
1428 this->writeWord(arguments[0], out); in writeVectorConstructor()
1433 this->writeWord(this->getType(c.fType), out); in writeVectorConstructor()
1434 this->writeWord(result, out); in writeVectorConstructor()
1436 this->writeWord(id, out); in writeVectorConstructor()
1452 this->writeWord(this->getType(c.fType), out); in writeArrayConstructor()
1453 this->writeWord(result, out); in writeArrayConstructor()
1455 this->writeWord(id, out); in writeArrayConstructor()
1605 fGen.writeWord(fGen.getType(fSwizzleType), out); in load()
1606 fGen.writeWord(result, out); in load()
1607 fGen.writeWord(base, out); in load()
1608 fGen.writeWord(base, out); in load()
1610 fGen.writeWord(component, out); in load()
1631 fGen.writeWord(fGen.getType(fBaseType), out); in store()
1632 fGen.writeWord(shuffle, out); in store()
1633 fGen.writeWord(base, out); in store()
1634 fGen.writeWord(value, out); in store()
1649 fGen.writeWord(offset, out); in store()
1689 this->writeWord(this->getPointerType(expr.fType, get_storage_class(expr)), out); in getLValue()
1690 this->writeWord(member, out); in getLValue()
1692 this->writeWord(idx, out); in getLValue()
1815 this->writeWord(this->getPointerType(*fContext.fFloat_Type, SpvStorageClassUniform), out); in writeVariableReference()
1816 this->writeWord(heightPtr, out); in writeVariableReference()
1817 this->writeWord(fRTHeightStructId, out); in writeVariableReference()
1818 this->writeWord(fieldIndexId, out); in writeVariableReference()
1836 this->writeWord(this->getType(*fContext.fFloat4_Type), out); in writeVariableReference()
1837 this->writeWord(flipped, out); in writeVariableReference()
1838 this->writeWord(xId, out); in writeVariableReference()
1839 this->writeWord(flippedYId, out); in writeVariableReference()
1840 this->writeWord(zeroId, out); in writeVariableReference()
1841 this->writeWord(wId, out); in writeVariableReference()
1881 this->writeWord(this->getType(swizzle.fType), out); in writeSwizzle()
1882 this->writeWord(result, out); in writeSwizzle()
1883 this->writeWord(base, out); in writeSwizzle()
1895 this->writeWord(type, fConstantBuffer); in writeSwizzle()
1896 this->writeWord(fConstantZeroOneVector, fConstantBuffer); in writeSwizzle()
1897 this->writeWord(zeroId, fConstantBuffer); in writeSwizzle()
1898 this->writeWord(oneId, fConstantBuffer); in writeSwizzle()
1904 this->writeWord(other, out); in writeSwizzle()
1907 this->writeWord(swizzle.fBase->fType.columns(), out); in writeSwizzle()
1909 this->writeWord(swizzle.fBase->fType.columns() + 1, out); in writeSwizzle()
1911 this->writeWord(component, out); in writeSwizzle()
2007 this->writeWord(this->getType(operandType), out); in writeComponentwiseMatrixBinary()
2008 this->writeWord(result, out); in writeComponentwiseMatrixBinary()
2010 this->writeWord(columns[i], out); in writeComponentwiseMatrixBinary()
2053 this->writeWord(this->getType(vecType), out); in writeBinaryExpression()
2054 this->writeWord(vec, out); in writeBinaryExpression()
2056 this->writeWord(rhs, out); in writeBinaryExpression()
2071 this->writeWord(this->getType(vecType), out); in writeBinaryExpression()
2072 this->writeWord(vec, out); in writeBinaryExpression()
2074 this->writeWord(lhs, out); in writeBinaryExpression()
2974 this->writeWord(value, out); in writeSwitchStatement()
2975 this->writeWord(defaultLabel, out); in writeSwitchStatement()
2981 this->writeWord(((IntLiteral&) *s.fCases[i]->fValue).fValue, out); in writeSwitchStatement()
2982 this->writeWord(labels[i], out); in writeSwitchStatement()
3157 this->writeWord(SpvExecutionModelVertex, out); in writeInstructions()
3160 this->writeWord(SpvExecutionModelFragment, out); in writeInstructions()
3163 this->writeWord(SpvExecutionModelGeometry, out); in writeInstructions()
3169 this->writeWord(entryPoint, out); in writeInstructions()
3172 this->writeWord(var, out); in writeInstructions()
3199 this->writeWord(SpvMagicNumber, *fOut); in generateCode()
3200 this->writeWord(SpvVersion, *fOut); in generateCode()
3201 this->writeWord(SKSL_MAGIC, *fOut); in generateCode()
3204 this->writeWord(fIdCount, *fOut); in generateCode()
3205 this->writeWord(0, *fOut); // reserved, always zero in generateCode()