5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMMAND_BUFFER_MTL_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_COMMAND_BUFFER_MTL_H_
8 #include <Metal/Metal.h>
23 id<MTLCommandBuffer> buffer_ = nil;
24 id<MTLDevice> device_ = nil;
28 id<MTLCommandQueue> queue);
31 void SetLabel(std::string_view label)
const override;
34 bool IsValid()
const override;
37 bool OnSubmitCommands(
bool block_on_schedule,
41 void OnWaitUntilCompleted()
override;
44 void OnWaitUntilScheduled()
override;
47 std::shared_ptr<RenderPass> OnCreateRenderPass(
RenderTarget target)
override;
50 std::shared_ptr<BlitPass> OnCreateBlitPass()
override;
53 std::shared_ptr<ComputePass> OnCreateComputePass()
override;
A collection of encoded commands to be submitted to the GPU for execution. A command buffer is obtain...
std::function< void(Status)> CompletionCallback
~CommandBufferMTL() override