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

Method TextureUploadTask

src/gpu/tasks/TextureUploadTask.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23namespace tgfx {
24TextureUploadTask::TextureUploadTask(std::shared_ptr<ResourceProxy> proxy,
25 std::shared_ptr<DataSource<ImageBuffer>> source,
26 bool mipmapped)
27 : ResourceTask(std::move(proxy)), source(std::move(source)), mipmapped(mipmapped) {
28}
29
30std::shared_ptr<Resource> TextureUploadTask::onMakeResource(Context* context) {
31 TASK_MARK(tgfx::inspect::OpTaskType::TextureUploadTask);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected