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

Method RectIndicesProvider

src/gpu/GlobalCache.cpp:125–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123class RectIndicesProvider : public DataSource<Data> {
124 public:
125 RectIndicesProvider(const uint16_t* pattern, uint16_t patternSize, uint16_t reps,
126 uint16_t vertCount)
127 : pattern(pattern), patternSize(patternSize), reps(reps), vertCount(vertCount) {
128 }
129
130 std::shared_ptr<Data> getData() const override {
131 auto size = reps * patternSize * sizeof(uint16_t);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected