Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
blit_command_mtl.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_METAL_BLIT_COMMAND_MTL_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_COMMAND_MTL_H_
7
8#include <Metal/Metal.h>
9
12
13namespace impeller {
14
15/// Mixin for dispatching Metal commands.
16struct BlitEncodeMTL : BackendCast<BlitEncodeMTL, BlitCommand> {
17 virtual ~BlitEncodeMTL();
18
19 virtual std::string GetLabel() const = 0;
20
21 [[nodiscard]] virtual bool Encode(
22 id<MTLBlitCommandEncoder> encoder) const = 0;
23};
24
27 public BlitEncodeMTL {
29
30 std::string GetLabel() const override;
31
32 [[nodiscard]] bool Encode(id<MTLBlitCommandEncoder> encoder) const override;
33};
34
37 public BlitEncodeMTL {
39
40 std::string GetLabel() const override;
41
42 [[nodiscard]] bool Encode(id<MTLBlitCommandEncoder> encoder) const override;
43};
44
46 public BlitEncodeMTL {
48
49 std::string GetLabel() const override;
50
51 [[nodiscard]] bool Encode(id<MTLBlitCommandEncoder> encoder) const override;
52};
53
56 public BlitEncodeMTL {
58
59 std::string GetLabel() const override;
60
61 [[nodiscard]] bool Encode(id<MTLBlitCommandEncoder> encoder) const override;
62};
63
64} // namespace impeller
65
66#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_BLIT_COMMAND_MTL_H_
bool Encode(id< MTLBlitCommandEncoder > encoder) const override
bool Encode(id< MTLBlitCommandEncoder > encoder) const override
bool Encode(id< MTLBlitCommandEncoder > encoder) const override
Mixin for dispatching Metal commands.
virtual std::string GetLabel() const =0
virtual bool Encode(id< MTLBlitCommandEncoder > encoder) const =0
bool Encode(id< MTLBlitCommandEncoder > encoder) const override
std::string GetLabel() const override