| Flutter Impeller |

Public Member Functions | Public Attributes | List of all members
impeller::VertexBuffer Struct Reference

`#include <vertex_buffer.h>`

## Public Member Functions
constexpr | operator bool () const

## Public Attributes
BufferView | vertex_buffer
BufferView | index_buffer
size_t | vertex_count = 0u
IndexType | index_type = IndexType::kUnknown

## Detailed Description

Definition at line 12 of file vertex_buffer.h.

## Member Function Documentation

## ◆ operator bool()

constexpr impeller::VertexBuffer::operator bool | ( |  | ) | const
| inline constexpr

Definition at line 20 of file vertex_buffer.h.

20 {
21 return static_cast<bool>(vertex_buffer) &&
22 (index_type == IndexType::kNone || static_cast<bool>(index_buffer));
23 }

References index_buffer, index_type, impeller::kNone, and vertex_buffer.

## Member Data Documentation

## ◆ index_buffer

BufferView impeller::VertexBuffer::index_buffer

Definition at line 14 of file vertex_buffer.h.

Referenced by impeller::Command::BindVertices(), impeller::VertexBufferBuilder< VertexType_, IndexType_ >::CreateVertexBuffer(), ImGui_ImplImpeller_RenderDrawData(), operator bool(), and impeller::testing::TEST_P().

## ◆ index_type

IndexType impeller::VertexBuffer::index_type = IndexType::kUnknown

Definition at line 18 of file vertex_buffer.h.

Referenced by impeller::Command::BindVertices(), impeller::VertexBufferBuilder< VertexType_, IndexType_ >::CreateVertexBuffer(), ImGui_ImplImpeller_RenderDrawData(), operator bool(), and impeller::testing::TEST_P().

## ◆ vertex_buffer

BufferView impeller::VertexBuffer::vertex_buffer

Definition at line 13 of file vertex_buffer.h.

Referenced by impeller::Command::BindVertices(), impeller::VertexBufferBuilder< VertexType_, IndexType_ >::CreateVertexBuffer(), ImGui_ImplImpeller_RenderDrawData(), impeller::scene::Geometry::MakeFromFlatbuffer(), operator bool(), and impeller::testing::TEST_P().

## ◆ vertex_count

size_t impeller::VertexBuffer::vertex_count = 0u

Definition at line 17 of file vertex_buffer.h.

Referenced by impeller::Command::BindVertices(), impeller::VertexBufferBuilder< VertexType_, IndexType_ >::CreateVertexBuffer(), ImGui_ImplImpeller_RenderDrawData(), and impeller::testing::TEST_P().

The documentation for this struct was generated from the following file:

- impeller/core/vertex_buffer.h

impeller::VertexBuffer::index_type
IndexType index_type
Definition: vertex_buffer.h:18
impeller::VertexBuffer::vertex_buffer
BufferView vertex_buffer
Definition: vertex_buffer.h:13
impeller::IndexType::kNone
@ kNone
Does not use the index buffer.
impeller::VertexBuffer::index_buffer
BufferView index_buffer
Definition: vertex_buffer.h:14