Flutter Impeller
vertex_descriptor_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_VERTEX_DESCRIPTOR_MTL_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_VERTEX_DESCRIPTOR_MTL_H_
7 
8 #include <Metal/Metal.h>
9 
10 #include <set>
11 
14 
15 namespace impeller {
16 
18  public:
20 
22 
24  const std::vector<ShaderStageIOSlot>& inputs,
25  const std::vector<ShaderStageBufferLayout>& layouts);
26 
27  MTLVertexDescriptor* GetMTLVertexDescriptor() const;
28 
29  private:
30  MTLVertexDescriptor* descriptor_;
31 
33 
34  VertexDescriptorMTL& operator=(const VertexDescriptorMTL&) = delete;
35 };
36 
37 } // namespace impeller
38 
39 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_VERTEX_DESCRIPTOR_MTL_H_
bool SetStageInputsAndLayout(const std::vector< ShaderStageIOSlot > &inputs, const std::vector< ShaderStageBufferLayout > &layouts)
MTLVertexDescriptor * GetMTLVertexDescriptor() const