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

Method addRenderTargetCopyTask

src/gpu/DrawingManager.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void DrawingManager::addRenderTargetCopyTask(std::shared_ptr<RenderTargetProxy> source,
122 std::shared_ptr<TextureProxy> dest, int srcX,
123 int srcY) {
124 if (source == nullptr || dest == nullptr) {
125 return;
126 }
127 auto task =
128 drawingBuffer->make<RenderTargetCopyTask>(std::move(source), std::move(dest), srcX, srcY);
129 renderTasks.emplace_back(std::move(task));
130}
131
132void DrawingManager::addResourceTask(PlacementPtr<ResourceTask> resourceTask) {
133 if (resourceTask == nullptr) {

Callers 2

makeDstTextureInfoMethod · 0.80
makeImageSnapshotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected