File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ class ECORE_API CBackend
127
127
u32 vb_stride;
128
128
129
129
// Pixel/Vertex constants
130
- ALIGN (16 ) R_constants constants;
130
+ alignas (16 ) R_constants constants;
131
131
R_constant_table* ctable;
132
132
133
133
// Shaders/State
Original file line number Diff line number Diff line change 5
5
template <class T , u32 limit>
6
6
class R_constant_cache
7
7
{
8
- private:
9
- ALIGN (16 ) svector<T, limit> array;
8
+ alignas (16 ) svector<T, limit> array;
10
9
u32 lo, hi;
11
10
12
11
public:
@@ -35,13 +34,11 @@ class R_constant_array
35
34
typedef R_constant_cache<Ivector4, 16 > t_i;
36
35
typedef R_constant_cache<BOOL, 16 > t_b;
37
36
38
- public:
39
- ALIGN (16 ) t_f c_f;
37
+ alignas (16 ) t_f c_f;
40
38
// ALIGN(16) t_i c_i;
41
39
// ALIGN(16) t_b c_b;
42
40
BOOL b_dirty;
43
41
44
- public:
45
42
t_f& get_array_f () { return c_f; }
46
43
// t_i& get_array_i () { return c_i; }
47
44
// t_b& get_array_b () { return c_b; }
@@ -140,12 +137,11 @@ class R_constant_array
140
137
class ECORE_API R_constants
141
138
{
142
139
public:
143
- ALIGN (16 ) R_constant_array a_pixel;
144
- ALIGN (16 ) R_constant_array a_vertex;
140
+ alignas (16 ) R_constant_array a_pixel;
141
+ alignas (16 ) R_constant_array a_vertex;
145
142
146
143
void flush_cache ();
147
144
148
- public:
149
145
// fp, non-array versions
150
146
ICF void set (R_constant* C, const Fmatrix& A)
151
147
{
You can’t perform that action at this time.
0 commit comments