summaryrefslogtreecommitdiff
path: root/Runtime/Filters/Mesh/MeshSkinningNEON.s
blob: e94542d645cf9ca9060add429bb231f36df0177a (plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
#define UNITY_ASSEMBLER
#include "Configuration/PrefixConfigure.h"

#if (UNITY_SUPPORTS_NEON && !UNITY_DISABLE_NEON_SKINNING)

.set device,0
.set device,__arm__

.if device

//.code32

.globl _s_SkinVertices_NEON
.globl _s_SkinVertices_NoNormals_NEON
.globl _s_SkinVertices_Tangents_NEON

.globl _s_SkinVertices2Bones_NEON
.globl _s_SkinVertices2Bones_NoNormals_NEON
.globl _s_SkinVertices2Bones_Tangents_NEON

.globl _s_SkinVertices4Bones_NEON
.globl _s_SkinVertices4Bones_NoNormals_NEON
.globl _s_SkinVertices4Bones_Tangents_NEON

#if UNITY_ANDROID
.hidden _s_SkinVertices_NEON
.hidden _s_SkinVertices_NoNormals_NEON
.hidden _s_SkinVertices_Tangents_NEON

.hidden _s_SkinVertices2Bones_NEON
.hidden _s_SkinVertices2Bones_NoNormals_NEON
.hidden _s_SkinVertices2Bones_Tangents_NEON

.hidden _s_SkinVertices4Bones_NEON
.hidden _s_SkinVertices4Bones_NoNormals_NEON
.hidden _s_SkinVertices4Bones_Tangents_NEON
#endif


//===========================================================================================================================================

#define SKIN_POS				1
#define SKIN_POS_NRM			2
#define SKIN_POS_NRM_TAN		3


#define SKIN_2BONES				0
#define SKIN_4BONES				0

_s_SkinVertices_NEON:

#define SKIN_1BONE				SKIN_POS_NRM
#define VERTEX_SZ				24
#define LOOP_NAME				_s_SkinVertices_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_1BONE

_s_SkinVertices_NoNormals_NEON:

#define SKIN_1BONE				SKIN_POS
#define VERTEX_SZ				12
#define LOOP_NAME				_s_SkinVertices_NoNormals_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_1BONE

_s_SkinVertices_Tangents_NEON:

#define SKIN_1BONE				SKIN_POS_NRM_TAN
#define VERTEX_SZ				40
#define LOOP_NAME				_s_SkinVertices_Tangents_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_1BONE

#undef SKIN_4BONES
#undef SKIN_2BONES

//===========================================================================================================================================

#define SKIN_1BONE				0
#define SKIN_4BONES				0

_s_SkinVertices2Bones_NEON:

#define SKIN_2BONES				SKIN_POS_NRM
#define VERTEX_SZ				24
#define LOOP_NAME				_s_SkinVertices2Bones_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_2BONES

_s_SkinVertices2Bones_NoNormals_NEON:

#define SKIN_2BONES				SKIN_POS
#define VERTEX_SZ				12
#define LOOP_NAME				_s_SkinVertices2Bones_NoNormals_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_2BONES

_s_SkinVertices2Bones_Tangents_NEON:

#define SKIN_2BONES				SKIN_POS_NRM_TAN
#define VERTEX_SZ				40
#define LOOP_NAME				_s_SkinVertices2Bones_Tangents_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_2BONES

#undef SKIN_4BONES
#undef SKIN_1BONE


//===========================================================================================================================================

#define SKIN_1BONE				0
#define SKIN_2BONES				0

_s_SkinVertices4Bones_NEON:

#define SKIN_4BONES				SKIN_POS_NRM
#define VERTEX_SZ				24
#define LOOP_NAME				_s_SkinVertices4Bones_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_4BONES

_s_SkinVertices4Bones_NoNormals_NEON:

#define SKIN_4BONES				SKIN_POS
#define VERTEX_SZ				12
#define LOOP_NAME				_s_SkinVertices4Bones_NoNormals_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_4BONES

_s_SkinVertices4Bones_Tangents_NEON:

#define SKIN_4BONES				SKIN_POS_NRM_TAN
#define VERTEX_SZ				40
#define LOOP_NAME				_s_SkinVertices4Bones_Tangents_NEON_loop

#include "MeshSkinningNeon_Loop.h"

#undef LOOP_NAME
#undef VERTEX_SZ
#undef SKIN_4BONES


#undef SKIN_2BONES
#undef SKIN_1BONE

//===========================================================================================================================================

.endif

#endif