#include <command_buffer_mtl.h>
Definition at line 16 of file command_buffer_mtl.h.
◆ ~CommandBufferMTL()
impeller::CommandBufferMTL::~CommandBufferMTL |
( |
| ) |
|
|
overridedefault |
◆ IsValid()
bool impeller::CommandBufferMTL::IsValid |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ OnCreateBlitPass()
std::shared_ptr< BlitPass > impeller::CommandBufferMTL::OnCreateBlitPass |
( |
| ) |
|
|
overrideprivatevirtual |
Implements impeller::CommandBuffer.
Definition at line 206 of file command_buffer_mtl.mm.
206 {
207 if (!buffer_) {
208 return nullptr;
209 }
210
211 auto pass = std::shared_ptr<BlitPassMTL>(new BlitPassMTL(buffer_));
212 if (!pass->IsValid()) {
213 return nullptr;
214 }
215
216 return pass;
217}
◆ OnCreateComputePass()
std::shared_ptr< ComputePass > impeller::CommandBufferMTL::OnCreateComputePass |
( |
| ) |
|
|
overrideprivatevirtual |
Implements impeller::CommandBuffer.
Definition at line 219 of file command_buffer_mtl.mm.
219 {
220 if (!buffer_) {
221 return nullptr;
222 }
224 if (!context) {
225 return nullptr;
226 }
227
228 auto pass =
229 std::shared_ptr<ComputePassMTL>(new ComputePassMTL(context, buffer_));
230 if (!pass->IsValid()) {
231 return nullptr;
232 }
233
234 return pass;
235}
std::weak_ptr< const Context > context_
◆ OnCreateRenderPass()
Implements impeller::CommandBuffer.
Definition at line 187 of file command_buffer_mtl.mm.
188 {
189 if (!buffer_) {
190 return nullptr;
191 }
192
194 if (!context) {
195 return nullptr;
196 }
197 auto pass = std::shared_ptr<RenderPassMTL>(
198 new RenderPassMTL(context,
target, buffer_));
199 if (!pass->IsValid()) {
200 return nullptr;
201 }
202
203 return pass;
204}
◆ OnSubmitCommands()
Implements impeller::CommandBuffer.
Definition at line 160 of file command_buffer_mtl.mm.
160 {
162 if (!context) {
163 return false;
164 }
165#ifdef IMPELLER_DEBUG
167#endif
169 [buffer_
170 addCompletedHandler:^(id<MTLCommandBuffer>
buffer) {
171 [[maybe_unused]]
auto result =
174 << "Must not have errors during command buffer submission.";
176 }];
177 }
178
179 [buffer_ commit];
180
181 buffer_ = nil;
182 return true;
183}
static ContextMTL & Cast(Context &base)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
static const uint8_t buffer[]
#define FML_DCHECK(condition)
static bool LogMTLCommandBufferErrorIfPresent(id< MTLCommandBuffer > buffer)
static CommandBuffer::Status ToCommitResult(MTLCommandBufferStatus status)
◆ OnWaitUntilScheduled()
void impeller::CommandBufferMTL::OnWaitUntilScheduled |
( |
| ) |
|
|
overrideprivatevirtual |
◆ SetLabel()
void impeller::CommandBufferMTL::SetLabel |
( |
const std::string & |
label | ) |
const |
|
overrideprivatevirtual |
◆ ContextMTL
The documentation for this class was generated from the following files: