This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathHI3Object.cpp
102 lines (92 loc) · 3.43 KB
/
HI3Object.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#include "D3D11ElementAttributeClass.h"
void D3D11ElementAttributeClass::SetHI3Object() {
this->CategoryDrawCategoryMap[L"Position"] = L"Position";
this->CategoryDrawCategoryMap[L"Texcoord"] = L"Texcoord";
this->CategoryDrawCategoryMap[L"Blend"] = L"Position";
D3D11Element POSITION;
POSITION.SemanticName = L"POSITION";
POSITION.ExtractSemanticName = L"POSITION";
POSITION.SemanticIndex = L"0";
POSITION.OutputSemanticIndex = L"0";
POSITION.Format = L"R32G32B32_FLOAT";
POSITION.InputSlot = L"0";
POSITION.InputSlotClass = L"per-vertex";
POSITION.InstanceDataStepRate = L"0";
POSITION.ByteWidth = 12;
POSITION.ExtractVBFile = L"vb0";
POSITION.ExtractTechnique = L"trianglelist";
POSITION.Category = L"Position";
this->ElementNameD3D11ElementMap[L"POSITION"] = POSITION;
D3D11Element NORMAL;
NORMAL.SemanticName = L"NORMAL";
NORMAL.ExtractSemanticName = L"NORMAL";
NORMAL.SemanticIndex = L"0";
NORMAL.OutputSemanticIndex = L"0";
NORMAL.Format = L"R32G32B32_FLOAT";
NORMAL.InputSlot = L"0";
NORMAL.InputSlotClass = L"per-vertex";
NORMAL.InstanceDataStepRate = L"0";
NORMAL.ByteWidth = 12;
NORMAL.ExtractVBFile = L"vb0";
NORMAL.ExtractTechnique = L"trianglelist";
NORMAL.Category = L"Position";
this->ElementNameD3D11ElementMap[L"NORMAL"] = NORMAL;
D3D11Element TANGENT;
TANGENT.SemanticName = L"TANGENT";
TANGENT.ExtractSemanticName = L"TANGENT";
TANGENT.SemanticIndex = L"0";
TANGENT.OutputSemanticIndex = L"0";
TANGENT.Format = L"R16G16B16A16_FLOAT";
TANGENT.InputSlot = L"0";
TANGENT.InputSlotClass = L"per-vertex";
TANGENT.InstanceDataStepRate = L"0";
TANGENT.ByteWidth = 8;
TANGENT.ExtractVBFile = L"vb0";
TANGENT.ExtractTechnique = L"trianglelist";
TANGENT.Category = L"Position";
this->ElementNameD3D11ElementMap[L"TANGENT"] = TANGENT;
D3D11Element COLOR;
COLOR.SemanticName = L"COLOR";
COLOR.ExtractSemanticName = L"COLOR";
COLOR.SemanticIndex = L"0";
COLOR.OutputSemanticIndex = L"0";
COLOR.Format = L"R8G8B8A8_UNORM";
COLOR.InputSlot = L"0";
COLOR.InputSlotClass = L"per-vertex";
COLOR.InstanceDataStepRate = L"0";
COLOR.ByteWidth = 4;
COLOR.ExtractVBFile = L"vb0";
COLOR.ExtractTechnique = L"trianglelist";
COLOR.Category = L"Position";
this->ElementNameD3D11ElementMap[L"COLOR"] = COLOR;
D3D11Element TEXCOORD;
TEXCOORD.SemanticName = L"TEXCOORD";
TEXCOORD.ExtractSemanticName = L"TEXCOORD";
TEXCOORD.SemanticIndex = L"0";
TEXCOORD.OutputSemanticIndex = L"0";
TEXCOORD.Format = L"R16G16_FLOAT";
TEXCOORD.InputSlot = L"0";
TEXCOORD.InputSlotClass = L"per-vertex";
TEXCOORD.InstanceDataStepRate = L"0";
TEXCOORD.ByteWidth = 4;
TEXCOORD.ExtractVBFile = L"vb0";
TEXCOORD.ExtractTechnique = L"trianglelist";
TEXCOORD.Category = L"Position";
this->ElementNameD3D11ElementMap[L"TEXCOORD"] = TEXCOORD;
D3D11Element TEXCOORD1;
TEXCOORD1.SemanticName = L"TEXCOORD";
TEXCOORD1.ExtractSemanticName = L"TEXCOORD1";
TEXCOORD1.SemanticIndex = L"1";
TEXCOORD1.OutputSemanticIndex = L"1";
TEXCOORD1.Format = L"R16G16_FLOAT";
TEXCOORD1.InputSlot = L"0";
TEXCOORD1.InputSlotClass = L"per-vertex";
TEXCOORD1.InstanceDataStepRate = L"0";
TEXCOORD1.ByteWidth = 4;
TEXCOORD1.ExtractVBFile = L"vb0";
TEXCOORD1.ExtractTechnique = L"trianglelist";
TEXCOORD1.Category = L"Position";
this->ElementNameD3D11ElementMap[L"TEXCOORD1"] = TEXCOORD1;
this->ExtractSemanticNameD3D11ElementMap = this->ElementNameD3D11ElementMap;
this->orderedFullElementList = { L"POSITION",L"NORMAL",L"TANGENT",L"COLOR",L"TEXCOORD",L"TEXCOORD1" };
};