3 #include "renderer/d3d12_includes.h" 4 #include "util/vector.h" 6 #define BLOWBOX_USE_32BIT_INDICES 18 #ifdef BLOWBOX_USE_32BIT_INDICES 21 typedef uint16_t
Index;
41 color(1.0f, 0.0f, 1.0f, 0.0f)
57 input_elements[0] = {
"POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 };
58 input_elements[1] = {
"NORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 12, D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 };
59 input_elements[2] = {
"TANGENT", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 24, D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 };
60 input_elements[3] = {
"UV", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 36, D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 };
61 input_elements[4] = {
"COLOR", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 44, D3D12_INPUT_CLASSIFICATION_PER_VERTEX_DATA, 0 };
63 return input_elements;
eastl::vector< T > Vector
Typedef for wrapping the EASTL vector.
Definition: vector.h:14
Describes a Vertex.
Definition: vertex.h:33
DirectX::XMFLOAT2 uv
The UV coordinates of the vertex.
Definition: vertex.h:49
static Vector< D3D12_INPUT_ELEMENT_DESC > GetInputElements()
Definition: vertex.h:53
DirectX::XMFLOAT3 tangent
The tangent of the vertex.
Definition: vertex.h:48
DirectX::XMFLOAT4 color
The color of the vertex.
Definition: vertex.h:50
The main Blowbox namespace.
Definition: image.cc:8
DirectX::XMFLOAT3 normal
The normal of the vertex.
Definition: vertex.h:47
uint32_t Index
Descibes an index.
Definition: vertex.h:19
DirectX::XMFLOAT3 position
The position of the vertex.
Definition: vertex.h:46