Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
command_queue_vk.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
7
9
10namespace impeller {
11
12class ContextVK;
13
15 public:
16 explicit CommandQueueVK(const std::weak_ptr<ContextVK>& context);
17
18 ~CommandQueueVK() override;
19
21 const std::vector<std::shared_ptr<CommandBuffer>>& buffers,
22 const CompletionCallback& completion_callback = {}) override;
23
24 private:
25 std::weak_ptr<ContextVK> context_;
26
27 CommandQueueVK(const CommandQueueVK&) = delete;
28
29 CommandQueueVK& operator=(const CommandQueueVK&) = delete;
30};
31
32} // namespace impeller
33
34#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_COMMAND_QUEUE_VK_H_
fml::Status Submit(const std::vector< std::shared_ptr< CommandBuffer > > &buffers, const CompletionCallback &completion_callback={}) override
Submit one or more command buffer objects to be encoded and executed on the GPU.
An interface for submitting command buffers to the GPU for encoding and execution.
std::function< void(CommandBuffer::Status)> CompletionCallback