13CommandBufferGLES::CommandBufferGLES(std::weak_ptr<const Context> context,
15 : CommandBuffer(
std::move(context)),
16 reactor_(
std::move(reactor)),
17 is_valid_(reactor_ && reactor_->IsValid()) {}
19CommandBufferGLES::~CommandBufferGLES() =
default;
22void CommandBufferGLES::SetLabel(
const std::string& label)
const {
27bool CommandBufferGLES::IsValid()
const {
33 const auto result = reactor_->React();
36 : CommandBuffer::Status::kError);
42void CommandBufferGLES::OnWaitUntilScheduled() {
43 reactor_->GetProcTable().Flush();
47std::shared_ptr<RenderPass> CommandBufferGLES::OnCreateRenderPass(
52 auto context = context_.lock();
56 auto pass = std::shared_ptr<RenderPassGLES>(
58 if (!pass->IsValid()) {
65std::shared_ptr<BlitPass> CommandBufferGLES::OnCreateBlitPass() {
69 auto pass = std::shared_ptr<BlitPassGLES>(
new BlitPassGLES(reactor_));
70 if (!pass->IsValid()) {
77std::shared_ptr<ComputePass> CommandBufferGLES::OnCreateComputePass() {
std::function< void(Status)> CompletionCallback
std::shared_ptr< ReactorGLES > Ref
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback