Lines Matching defs:value

1009             args.push_back(Literal::MakeInt(fContext, /*line=*/-1, /*value=*/0));
1010 args.push_back(Literal::MakeInt(fContext, /*line=*/-1, /*value=*/0));
1167 finalArgs.push_back(Literal::MakeFloat(fContext, /*line=*/-1, /*value=*/0));
1168 finalArgs.push_back(Literal::MakeFloat(fContext, /*line=*/-1, /*value=*/1));
1206 // if we need a temporary var to store this argument, this is the value to store in the var
1733 std::vector<SpvId> arguments(/*count*/ c.type().columns(), /*value*/ argument);
1913 void store(SpvId value, OutputStream& out) override {
1914 fGen.writeInstruction(SpvOpStore, fPointer, value, out);
1964 void store(SpvId value, OutputStream& out) override {
1982 fGen.writeWord(value, out);
1985 // value from the left side
1992 // value from the left
2303 SpvId SPIRVCodeGenerator::writeReciprocal(const Type& type, SpvId value, OutputStream& out) {
2307 this->writeInstruction(SpvOpFDiv, this->getType(type), reciprocal, one, value, out);
2318 std::vector<SpvId> vecArguments(/*count*/ matrixType.rows(), /*value*/ scalarId);
2322 std::vector<SpvId> matArguments(/*count*/ matrixType.columns(), /*value*/ vectorId);
2659 // If this is a division by a literal value, returns that literal value. Otherwise, returns 0.
2879 return this->writeLiteral(l.value(), l.type());
2882 SpvId SPIRVCodeGenerator::writeLiteral(double value, const Type& type) {
2885 float fValue = value;
2888 SKSL_INT iValue = value;
3128 if (varDecl.value()) {
3131 SpvId value = this->writeExpression(*varDecl.value(), fGlobalInitializersBuffer);
3132 this->writeInstruction(SpvOpStore, id, value, fGlobalInitializersBuffer);
3152 if (varDecl.value()) {
3153 SpvId value = this->writeExpression(*varDecl.value(), out);
3154 this->writeInstruction(SpvOpStore, id, value, out);
3304 SpvId value = this->writeExpression(*s.value(), out);
3315 if (c.value()) {
3324 this->writeWord(value, out);
3328 if (!c.value()) {
3331 this->writeWord(c.value()->as<Literal>().intValue(), out);