Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
renderer
backend
metal
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
12
#include "flutter/fml/macros.h"
13
#include "
impeller/base/backend_cast.h
"
14
#include "
impeller/renderer/vertex_descriptor.h
"
15
16
namespace
impeller
{
17
18
class
VertexDescriptorMTL
{
19
public
:
20
VertexDescriptorMTL
();
21
22
~VertexDescriptorMTL
();
23
24
bool
SetStageInputsAndLayout
(
25
const
std::vector<ShaderStageIOSlot>& inputs,
26
const
std::vector<ShaderStageBufferLayout>& layouts);
27
28
MTLVertexDescriptor*
GetMTLVertexDescriptor
()
const
;
29
30
private
:
31
MTLVertexDescriptor* descriptor_;
32
33
VertexDescriptorMTL
(
const
VertexDescriptorMTL
&) =
delete
;
34
35
VertexDescriptorMTL
& operator=(
const
VertexDescriptorMTL
&) =
delete
;
36
};
37
38
}
// namespace impeller
39
40
#endif
// FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_VERTEX_DESCRIPTOR_MTL_H_
backend_cast.h
impeller::VertexDescriptorMTL
Definition
vertex_descriptor_mtl.h:18
impeller::VertexDescriptorMTL::~VertexDescriptorMTL
~VertexDescriptorMTL()
impeller::VertexDescriptorMTL::SetStageInputsAndLayout
bool SetStageInputsAndLayout(const std::vector< ShaderStageIOSlot > &inputs, const std::vector< ShaderStageBufferLayout > &layouts)
Definition
vertex_descriptor_mtl.mm:172
impeller::VertexDescriptorMTL::GetMTLVertexDescriptor
MTLVertexDescriptor * GetMTLVertexDescriptor() const
Definition
vertex_descriptor_mtl.mm:206
impeller::VertexDescriptorMTL::VertexDescriptorMTL
VertexDescriptorMTL()
impeller
Definition
texture.h:18
vertex_descriptor.h
Generated on Fri Apr 26 2024 06:14:12 for Flutter Engine by
1.9.8