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

Method uploadSharedVertexBuffer

src/gpu/ProxyProvider.cpp:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void ProxyProvider::uploadSharedVertexBuffer(std::shared_ptr<Data> data) {
128 DEBUG_ASSERT(sharedVertexBuffer != nullptr);
129 auto dataSource =
130 std::make_unique<AsyncVertexSource>(std::move(data), std::move(sharedVertexBufferTasks));
131 auto task = context->drawingBuffer()->make<GPUBufferUploadTask>(
132 sharedVertexBuffer, BufferType::Vertex, std::move(dataSource));
133 context->drawingManager()->addResourceTask(std::move(task));
134 sharedVertexBuffer = nullptr;
135}
136
137static UniqueKey AppendClipBoundsKey(const UniqueKey& uniqueKey, const Rect& clipBounds) {
138 static const auto ClipBoundsType = UniqueID::Next();

Callers

nothing calls this directly

Calls 3

addResourceTaskMethod · 0.80
drawingManagerMethod · 0.80
drawingBufferMethod · 0.45

Tested by

no test coverage detected