Arnold Engine
 
Loading...
Searching...
No Matches
AE::Graphics::Renderer::BufferElement Struct Reference

Describes a single element in a vertex buffer layout. More...

#include <Buffer.h>

Public Member Functions

 BufferElement (const ShaderDataType type, std::string name, const bool normalised=false)
 
uint32_t GetComponentCount () const
 

Public Attributes

std::string Name
 
ShaderDataType Type
 
uint32_t Size
 
uint32_t Offset
 
bool Normalised
 

Detailed Description

Describes a single element in a vertex buffer layout.

Contains all the information needed to describe how a single vertex attribute is laid out in memory:

  • Type and size information
  • Memory offset within vertex
  • Normalization settings
  • Name for shader mapping

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