Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Static Public Member Functions | Public Attributes | List of all members
blowbox::Vertex Class Reference

#include <vertex.h>

Static Public Member Functions

static Vector< D3D12_INPUT_ELEMENT_DESC > GetInputElements ()
 

Public Attributes

DirectX::XMFLOAT3 position
 
DirectX::XMFLOAT3 normal
 
DirectX::XMFLOAT3 tangent
 
DirectX::XMFLOAT2 uv
 
DirectX::XMFLOAT4 color
 

Detailed Description

Describes a Vertex.

Meshes consist of vertices. Every vertex has a bunch of information attached to it. This class stores the data for every vertex.

Remarks
Notably, bitangent is missing from the vertex layout. You are supposed to generate the bitangent yourself in the vertex shader that you have bound to the pipeline.

Member Function Documentation

static Vector<D3D12_INPUT_ELEMENT_DESC> blowbox::Vertex::GetInputElements ( )
inlinestatic
Returns
A list of D3D12_INPUT_ELEMENT_DESCs that explain the entire data layout of a vertex.

Member Data Documentation

DirectX::XMFLOAT4 blowbox::Vertex::color

The color of the vertex.

DirectX::XMFLOAT3 blowbox::Vertex::normal

The normal of the vertex.

DirectX::XMFLOAT3 blowbox::Vertex::position

The position of the vertex.

DirectX::XMFLOAT3 blowbox::Vertex::tangent

The tangent of the vertex.

DirectX::XMFLOAT2 blowbox::Vertex::uv

The UV coordinates of the vertex.


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