Lines Matching refs:meta
33 const ShaderMetadata* meta) {
45 writer.writeBool(SkToBool(meta));
46 if (meta) {
47 writer.writeBool(SkToBool(meta->fSettings));
48 if (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());
55 for (const auto& attr : meta->fAttributeNames) {
59 writer.writeBool(meta->fHasCustomColorOutput);
60 writer.writeBool(meta->fHasSecondaryColorOutput);
62 if (meta->fPlatformData) {
63 writer.writeByteArray(meta->fPlatformData->data(), meta->fPlatformData->size());
80 ShaderMetadata* meta) {
95 if (reader->readBool() && meta) {
96 SkASSERT(meta->fSettings != nullptr);
99 meta->fSettings->fFragColorIsInOut = reader->readBool();
100 meta->fSettings->fForceHighPrecision = reader->readBool();
101 meta->fSettings->fUsePushConstants = reader->readBool();
104 meta->fAttributeNames.resize(reader->readInt());
105 for (auto& attr : meta->fAttributeNames) {
113 meta->fHasCustomColorOutput = reader->readBool();
114 meta->fHasSecondaryColorOutput = reader->readBool();