| 22 | static constexpr char TRANSFORM_UNIFORM_PREFIX[] = "CoordTransformMatrix_"; |
| 23 | |
| 24 | void GeometryProcessor::computeProcessorKey(Context*, BytesKey* bytesKey) const { |
| 25 | bytesKey->write(classID()); |
| 26 | onComputeProcessorKey(bytesKey); |
| 27 | for (auto& attribute : attributes) { |
| 28 | if (!attribute.empty()) { |
| 29 | bytesKey->write(static_cast<uint32_t>(attribute.format())); |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void GeometryProcessor::setVertexAttributes(const Attribute* attrs, int attrCount) { |
| 35 | for (int i = 0; i < attrCount; ++i) { |