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
#pragma once
6
7
#include <Metal/Metal.h>
8
9
#include <set>
10
11
#include "flutter/fml/macros.h"
12
#include "
impeller/base/backend_cast.h
"
13
#include "
impeller/renderer/vertex_descriptor.h
"
14
15
namespace
impeller
{
16
17
class
VertexDescriptorMTL
{
18
public
:
19
VertexDescriptorMTL
();
20
21
~VertexDescriptorMTL
();
22
23
bool
SetStageInputsAndLayout
(
24
const
std::vector<ShaderStageIOSlot>& inputs,
25
const
std::vector<ShaderStageBufferLayout>& layouts);
26
27
MTLVertexDescriptor*
GetMTLVertexDescriptor
()
const
;
28
29
private
:
30
MTLVertexDescriptor* descriptor_;
31
32
FML_DISALLOW_COPY_AND_ASSIGN(
VertexDescriptorMTL
);
33
};
34
35
}
// namespace impeller
impeller::VertexDescriptorMTL::~VertexDescriptorMTL
~VertexDescriptorMTL()
vertex_descriptor.h
impeller::VertexDescriptorMTL::SetStageInputsAndLayout
bool SetStageInputsAndLayout(const std::vector< ShaderStageIOSlot > &inputs, const std::vector< ShaderStageBufferLayout > &layouts)
Definition:
vertex_descriptor_mtl.mm:172
impeller::VertexDescriptorMTL::VertexDescriptorMTL
VertexDescriptorMTL()
backend_cast.h
impeller::VertexDescriptorMTL::GetMTLVertexDescriptor
MTLVertexDescriptor * GetMTLVertexDescriptor() const
Definition:
vertex_descriptor_mtl.mm:206
impeller::VertexDescriptorMTL
Definition:
vertex_descriptor_mtl.h:17
impeller
Definition:
aiks_context.cc:10
impeller
renderer
backend
metal
vertex_descriptor_mtl.h
Generated by
1.8.17