Struct VertexBufferElement

Struct Documentation

struct VertexBufferElement

Struct encapsulating the vertex buffer formats renderer currently supports.

Public Types

enum Type

Abstracts the DXGI input format types.

Values:

FloatFloatFloatFloat = DXGI_FORMAT_R32G32B32A32_FLOAT
FloatFloatFloat = DXGI_FORMAT_R32G32B32_FLOAT
FloatFloat = DXGI_FORMAT_R32G32_FLOAT
ByteByteByteByte = DXGI_FORMAT_R8G8B8A8_UNORM
UInt = DXGI_FORMAT_R32_UINT
IntIntIntInt = DXGI_FORMAT_R32G32B32A32_SINT

Public Members

Type m_Type

What type of objects are present in buffer.

LPCSTR m_Name

Used as the semantic of the Vertex Buffer element in shaders.

D3D11_INPUT_CLASSIFICATION m_Class

Per-what kind of object? (Changes for instance buffers mainly)

int m_Slot

Buffer slot to add this element to.

bool m_ResetOffset

Reset the offset counter. Used to starting a new buffer.

UINT m_RendersPerInstance

Number of instances to be rendered per instance.

Public Static Functions

static unsigned int GetSize(Type type)

Total size of the Vertex Buffer.