Lines Matching refs:ve

63 	} ve[33];
118 state.ve[1].valid = 1;
122 state.ve[1].type = T_FLOAT32;
123 state.ve[1].size = 3;
124 state.ve[1].swizzle[0] = 1;
125 state.ve[1].swizzle[1] = 1;
126 state.ve[1].swizzle[2] = 1;
127 state.ve[1].swizzle[3] = 3;
130 state.ve[1].type = T_FLOAT32;
131 state.ve[1].size = 4;
132 state.ve[1].swizzle[0] = 1;
133 state.ve[1].swizzle[1] = 1;
134 state.ve[1].swizzle[2] = 1;
135 state.ve[1].swizzle[3] = 1;
138 state.ve[1].type = T_FLOAT32;
139 state.ve[1].size = 2;
140 state.ve[1].swizzle[0] = 1;
141 state.ve[1].swizzle[1] = 1;
142 state.ve[1].swizzle[2] = 2;
143 state.ve[1].swizzle[3] = 3;
146 state.ve[1].type = T_FLOAT32;
147 state.ve[1].size = 3;
148 state.ve[1].swizzle[0] = 1;
149 state.ve[1].swizzle[1] = 1;
150 state.ve[1].swizzle[2] = 3;
151 state.ve[1].swizzle[3] = 1;
155 state.ve[2].valid = 0;
156 state.ve[3].valid = 0;
166 state.ve[id+4].valid = fmt != 0xf;
171 state.ve[id+4].type = T_FLOAT32;
172 width = state.ve[id+4].size = 2;
175 state.ve[id+4].type = T_FLOAT32;
176 width = state.ve[id+4].size = 3;
179 state.ve[id+4].type = T_FLOAT32;
180 width = state.ve[id+4].size = 4;
183 state.ve[id+4].type = T_FLOAT32;
184 width = state.ve[id+4].size = 1;
187 state.ve[id+4].type = T_FLOAT16;
188 width = state.ve[id+4].size = 2;
191 state.ve[id+4].type = T_FLOAT16;
192 width = state.ve[id+4].size = 4;
196 state.ve[id+4].swizzle[0] = width > 0 ? 1 : 2;
197 state.ve[id+4].swizzle[1] = width > 1 ? 1 : 2;
198 state.ve[id+4].swizzle[2] = width > 2 ? 1 : 2;
199 state.ve[id+4].swizzle[3] = width > 3 ? 1 : 2;
207 for (i = offset = 0; i < ARRAY_SIZE(state.ve); i++) {
208 if (!state.ve[i].valid)
211 state.ve[i].offset = offset;
212 offset += 4 * state.ve[i].size;
217 static void vertices_float32_out(const struct vertex_elements *ve, const float *f, int max)
223 switch (ve->swizzle[c]) {
238 static void ve_out(const struct vertex_elements *ve, const void *ptr)
240 switch (ve->type) {
242 vertices_float32_out(ve, ptr, ve->size);
245 //vertices_float16_out(ve, ptr, ve->size);
256 const struct vertex_elements *ve = &state.ve[i];
257 const void *ptr = vb->ptr + v * vb->pitch + ve->offset;
259 if (!ve->valid)
262 ve_out(ve, ptr);
264 while (++i <= state.num_ve && !state.ve[i].valid)
278 const struct vertex_elements *ve = &state.ve[i];
279 const void *ptr = (char *)base + ve->offset;
281 if (!ve->valid)
284 ve_out(ve, ptr);
286 while (++i <= state.num_ve && !state.ve[i].valid)