#include <CopyTask.h>
Definition at line 52 of file CopyTask.h.
◆ ~CopyTextureToBufferTask()
skgpu::graphite::CopyTextureToBufferTask::~CopyTextureToBufferTask |
( |
| ) |
|
|
override |
◆ addCommands()
Implements skgpu::graphite::Task.
Definition at line 101 of file CopyTask.cpp.
103 {
104 if (commandBuffer->copyTextureToBuffer(fTextureProxy->refTexture(),
105 fSrcRect,
106 std::move(fBuffer),
107 fBufferOffset,
108 fBufferRowBytes)) {
109
110
111 return Status::kSuccess;
112 } else {
113 return Status::kFail;
114 }
115}
◆ Make()
Definition at line 62 of file CopyTask.cpp.
66 {
68 srcRect,
70 bufferOffset,
71 bufferRowBytes));
72}
static const uint8_t buffer[]
◆ prepareResources()
Implements skgpu::graphite::Task.
Definition at line 88 of file CopyTask.cpp.
89 {
90 if (!fTextureProxy) {
91 SKGPU_LOG_E(
"No texture proxy specified for CopyTextureToBufferTask");
92 return Status::kFail;
93 }
95 SKGPU_LOG_E(
"Could not instantiate texture proxy for CopyTextureToBufferTask!");
96 return Status::kFail;
97 }
98 return Status::kSuccess;
99}
#define SKGPU_LOG_E(fmt,...)
static bool InstantiateIfNotLazy(ResourceProvider *, TextureProxy *)
The documentation for this class was generated from the following files: