Lines Matching refs:ve
57 } ve[33];
143 state.ve[id].buffer = data[0] >> 26;
144 state.ve[id].valid = !!(data[0] & (1 << 25));
145 state.ve[id].type = (data[0] >> 16) & 0x1ff;
146 state.ve[id].offset = data[0] & 0x7ff;
147 state.ve[id].swizzle[0] = get_ve_component(data[1], 0);
148 state.ve[id].swizzle[1] = get_ve_component(data[1], 1);
149 state.ve[id].swizzle[2] = get_ve_component(data[1], 2);
150 state.ve[id].swizzle[3] = get_ve_component(data[1], 3);
158 static void vertices_sint16_out(const struct vertex_elements *ve, const int16_t *v, int max)
164 switch (ve->swizzle[c]) {
177 switch (ve->swizzle[c]) {
192 static void vertices_float_out(const struct vertex_elements *ve, const float *f, int max)
198 switch (ve->swizzle[c]) {
211 switch (ve->swizzle[c]) {
226 static void ve_out(const struct vertex_elements *ve, const void *ptr)
228 switch (ve->type) {
230 vertices_float_out(ve, ptr, 1);
233 vertices_float_out(ve, ptr, 2);
236 vertices_float_out(ve, ptr, 3);
239 vertices_float_out(ve, ptr, 4);
242 vertices_sint16_out(ve, ptr, 1);
245 vertices_sint16_out(ve, ptr, 2);
248 vertices_sint16_out(ve, ptr, 4);
251 vertices_sint16_out(ve, ptr, 1);
254 vertices_sint16_out(ve, ptr, 2);
257 vertices_sint16_out(ve, ptr, 4);
267 const struct vertex_elements *ve = &state.ve[i];
268 const struct vertex_buffer *vb = &state.vb[ve->buffer];
269 const void *ptr = vb->ptr + v * vb->pitch + ve->offset;
271 if (!ve->valid)
274 ve_out(ve, ptr);
276 while (++i <= state.num_ve && !state.ve[i].valid)