Lines Matching defs:writer
38 SkBinaryWriteBuffer writer;
39 writer.writeInt(kCurrentVersion);
40 writer.writeUInt(shaderType);
42 writer.writeByteArray(shaders[i].c_str(), shaders[i].size());
43 writer.writePad32(&inputs[std::min(i, numInputs - 1)], sizeof(SkSL::Program::Inputs));
45 writer.writeBool(SkToBool(meta));
47 writer.writeBool(SkToBool(meta->fSettings));
49 writer.writeBool(meta->fSettings->fFragColorIsInOut);
50 writer.writeBool(meta->fSettings->fForceHighPrecision);
51 writer.writeBool(meta->fSettings->fUsePushConstants);
54 writer.writeInt(meta->fAttributeNames.count());
56 writer.writeByteArray(attr.c_str(), attr.size());
59 writer.writeBool(meta->fHasCustomColorOutput);
60 writer.writeBool(meta->fHasSecondaryColorOutput);
63 writer.writeByteArray(meta->fPlatformData->data(), meta->fPlatformData->size());
66 return writer.snapshotAsData();