@@ -99,47 +99,55 @@ class ECORE_API R_constants
99
99
ICF void set (R_constant* C, const Fmatrix& A) {
100
100
if (C->destination &RC_dest_pixel) { set (C, C->ps , A); }
101
101
if (C->destination &RC_dest_vertex) { set (C, C->vs , A); }
102
+ if (C->destination &RC_dest_geometry) { set (C, C->gs , A); }
102
103
}
103
104
ICF void set (R_constant* C, const Fvector4& A) {
104
105
if (C->destination &RC_dest_pixel) { set (C, C->ps , A); }
105
106
if (C->destination &RC_dest_vertex) { set (C, C->vs , A); }
107
+ if (C->destination &RC_dest_geometry) { set (C, C->gs , A); }
106
108
}
107
109
ICF void set (R_constant* C, float x, float y, float z, float w) {
108
110
if (C->destination &RC_dest_pixel) { set (C, C->ps , x, y, z, w); }
109
111
if (C->destination &RC_dest_vertex) { set (C, C->vs , x, y, z, w); }
112
+ if (C->destination &RC_dest_geometry) { set (C, C->gs , x, y, z, w); }
110
113
}
111
114
112
115
// scalars, non-array versions
113
116
ICF void set (R_constant* C, float A)
114
117
{
115
118
if (C->destination &RC_dest_pixel) { set (C, C->ps , A); }
116
119
if (C->destination &RC_dest_vertex) { set (C, C->vs , A); }
120
+ if (C->destination &RC_dest_geometry) { set (C, C->gs , A); }
117
121
}
118
122
ICF void set (R_constant* C, int A)
119
123
{
120
124
if (C->destination &RC_dest_pixel) { set (C, C->ps , A); }
121
125
if (C->destination &RC_dest_vertex) { set (C, C->vs , A); }
126
+ if (C->destination &RC_dest_geometry) { set (C, C->gs , A); }
122
127
}
123
128
124
129
// fp, array versions
125
130
ICF void seta (R_constant* C, u32 e, const Fmatrix& A) {
126
131
R_constant_load L;
127
132
if (C->destination &RC_dest_pixel) { L = C->ps ; }
128
133
if (C->destination &RC_dest_vertex) { L = C->vs ; }
134
+ if (C->destination &RC_dest_geometry) { L = C->gs ; }
129
135
L.location += e;
130
136
set (C, L, A);
131
137
}
132
138
ICF void seta (R_constant* C, u32 e, const Fvector4& A) {
133
139
R_constant_load L;
134
140
if (C->destination &RC_dest_pixel) { L = C->ps ; }
135
141
if (C->destination &RC_dest_vertex) { L = C->vs ; }
142
+ if (C->destination &RC_dest_geometry) { L = C->gs ; }
136
143
L.location += e;
137
144
set (C, L, A);
138
145
}
139
146
ICF void seta (R_constant* C, u32 e, float x, float y, float z, float w) {
140
147
R_constant_load L;
141
148
if (C->destination &RC_dest_pixel) { L = C->ps ; }
142
149
if (C->destination &RC_dest_vertex) { L = C->vs ; }
150
+ if (C->destination &RC_dest_geometry) { L = C->gs ; }
143
151
L.location += e;
144
152
set (C, L, x, y, z, w);
145
153
0 commit comments