Flutter Impeller
impeller::VertexBuffer Struct Reference

#include <vertex_buffer.h>

Public Member Functions

constexpr operator bool () const
 

Public Attributes

BufferView vertex_buffer
 
BufferView index_buffer
 The index buffer binding used by the vertex shader stage. More...
 
size_t vertex_count = 0u
 
IndexType index_type = IndexType::kUnknown
 

Detailed Description

Definition at line 13 of file vertex_buffer.h.

Member Function Documentation

◆ operator bool()

constexpr impeller::VertexBuffer::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 31 of file vertex_buffer.h.

31  {
32  return static_cast<bool>(vertex_buffer) &&
33  (index_type == IndexType::kNone || static_cast<bool>(index_buffer));
34  }

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

Member Data Documentation

◆ index_buffer

BufferView impeller::VertexBuffer::index_buffer

The index buffer binding used by the vertex shader stage.

Definition at line 18 of file vertex_buffer.h.

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

◆ index_type

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

The type of indices in the index buffer. The indices must be tightly packed in the index buffer.

Definition at line 29 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

◆ vertex_count

size_t impeller::VertexBuffer::vertex_count = 0u

The total count of vertices, either in the vertex_buffer if the index_type is IndexType::kNone or in the index_buffer otherwise.

Definition at line 23 of file vertex_buffer.h.

Referenced by 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::VertexBuffer::index_type
IndexType index_type
Definition: vertex_buffer.h:29
impeller::VertexBuffer::vertex_buffer
BufferView vertex_buffer
Definition: vertex_buffer.h:14
impeller::IndexType::kNone
@ kNone
Does not use the index buffer.
impeller::VertexBuffer::index_buffer
BufferView index_buffer
The index buffer binding used by the vertex shader stage.
Definition: vertex_buffer.h:18