MCPcopy Create free account
hub / github.com/Tencent/tgfx / computeProcessorKey

Method computeProcessorKey

src/gpu/processors/GeometryProcessor.cpp:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22static constexpr char TRANSFORM_UNIFORM_PREFIX[] = "CoordTransformMatrix_";
23
24void 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
34void GeometryProcessor::setVertexAttributes(const Attribute* attrs, int attrCount) {
35 for (int i = 0; i < attrCount; ++i) {

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
emptyMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected