Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
impeller
core
vertex_buffer.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_CORE_VERTEX_BUFFER_H_
6
#define FLUTTER_IMPELLER_CORE_VERTEX_BUFFER_H_
7
8
#include "
impeller/core/buffer_view.h
"
9
#include "
impeller/core/formats.h
"
10
11
namespace
impeller
{
12
13
struct
VertexBuffer
{
14
BufferView
vertex_buffer
;
15
16
//----------------------------------------------------------------------------
17
/// The index buffer binding used by the vertex shader stage.
18
BufferView
index_buffer
;
19
20
//----------------------------------------------------------------------------
21
/// The total count of vertices, either in the vertex_buffer if the
22
/// index_type is IndexType::kNone or in the index_buffer otherwise.
23
size_t
vertex_count
= 0u;
24
25
//----------------------------------------------------------------------------
26
/// The type of indices in the index buffer. The indices must be tightly
27
/// packed in the index buffer.
28
///
29
IndexType
index_type
=
IndexType::kUnknown
;
30
31
constexpr
explicit
operator
bool()
const
{
32
return
static_cast<
bool
>
(
vertex_buffer
) &&
33
(
index_type
==
IndexType::kNone
||
static_cast<
bool
>
(
index_buffer
));
34
}
35
};
36
37
}
// namespace impeller
38
39
#endif
// FLUTTER_IMPELLER_CORE_VERTEX_BUFFER_H_
buffer_view.h
formats.h
impeller
Definition:
texture.h:18
impeller::IndexType
IndexType
Definition:
formats.h:343
impeller::IndexType::kUnknown
@ kUnknown
impeller::IndexType::kNone
@ kNone
Does not use the index buffer.
impeller::BufferView
Definition:
buffer_view.h:15
impeller::VertexBuffer
Definition:
vertex_buffer.h:13
impeller::VertexBuffer::index_type
IndexType index_type
Definition:
vertex_buffer.h:29
impeller::VertexBuffer::vertex_count
size_t vertex_count
Definition:
vertex_buffer.h:23
impeller::VertexBuffer::index_buffer
BufferView index_buffer
The index buffer binding used by the vertex shader stage.
Definition:
vertex_buffer.h:18
impeller::VertexBuffer::vertex_buffer
BufferView vertex_buffer
Definition:
vertex_buffer.h:14
Generated on Sun Jun 23 2024 21:55:00 for Flutter Engine by
1.9.4