Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.22 KB

vertex-buffer-view--vbv-.md

File metadata and controls

42 lines (26 loc) · 1.22 KB
title description ms.assetid keywords ms.date ms.topic ms.localizationpriority
Vertex buffer view (VBV) and Index buffer view (IBV)
Learn about Vertex buffer view (VBV) and Index buffer view (IBV), which hold data and integer indexes for vertices in Direct3D rendering.
695115D2-9DA0-41F2-9416-33BFAB698129
Vertex buffer view (VBV)
02/08/2017
article
medium

Vertex buffer view (VBV) and Index buffer view (IBV)

A vertex buffer holds data for a list of vertices. The data for each vertex can include position, color, normal vector, texture co-ordinates, and so on. An index buffer holds integer indexes (offsets) into a vertex buffer, and is used to define and render an object made up of a subset of the full list of vertices.

The definition of a single vertex is often up to the application to define, such as:

struct CUSTOMVERTEX { 
        FLOAT x, y, z;      // The position
        FLOAT nx, ny, nz;   // The normal
        DWORD color;        // RGBA color
        FLOAT tu, tv;       // The texture coordinates. 
}; 

The definition of CUSTOMVERTEX would then be passed to the graphics driver when creating vertex buffers.

Related topics

Views