Lines Matching refs:vi
219 vk_vertex_input_state_init(struct vk_vertex_input_state *vi,
225 memset(vi, 0, sizeof(*vi));
236 vi->bindings_valid |= BITFIELD_BIT(b);
237 vi->bindings[b].stride = desc->stride;
238 vi->bindings[b].input_rate = desc->inputRate;
239 vi->bindings[b].divisor = 1;
248 assert(vi->bindings_valid & BITFIELD_BIT(desc->binding));
251 vi->attributes_valid |= BITFIELD_BIT(a);
252 vi->attributes[a].binding = desc->binding;
253 vi->attributes[a].format = desc->format;
254 vi->attributes[a].offset = desc->offset;
266 assert(vi->bindings_valid & BITFIELD_BIT(desc->binding));
269 vi->bindings[b].divisor = desc->divisor;
277 const struct vk_vertex_input_state *vi)
280 *dst->vi = *vi;
284 if (vi->bindings_valid & BITFIELD_BIT(b))
285 dst->vi_binding_strides[b] = vi->bindings[b].stride;
976 vk_vertex_input_state, vi); \
1306 INFO_ALIAS(VertexInput, vi);
1425 struct vk_vertex_input_state *vi = dyn->vi;
1430 if (vi != NULL) {
1431 memset(vi, 0, sizeof(*vi));
1432 dyn->vi = vi;
1460 if (dyn->vi == NULL)
1521 assert((dst->vi != NULL) == (src->vi != NULL));
1522 if (dst->vi != NULL && IS_SET_IN_SRC(VI)) {
1523 COPY_MEMBER(VI, vi->bindings_valid);
1524 u_foreach_bit(b, src->vi->bindings_valid) {
1525 COPY_MEMBER(VI, vi->bindings[b].stride);
1526 COPY_MEMBER(VI, vi->bindings[b].input_rate);
1527 COPY_MEMBER(VI, vi->bindings[b].divisor);
1529 COPY_MEMBER(VI, vi->attributes_valid);
1530 u_foreach_bit(a, src->vi->attributes_valid) {
1531 COPY_MEMBER(VI, vi->attributes[a].binding);
1532 COPY_MEMBER(VI, vi->attributes[a].format);
1533 COPY_MEMBER(VI, vi->attributes[a].offset);
1676 SET_DYN_VALUE(dyn, VI, vi->bindings[b].stride, desc->stride);
1677 SET_DYN_VALUE(dyn, VI, vi->bindings[b].input_rate, desc->inputRate);
1678 SET_DYN_VALUE(dyn, VI, vi->bindings[b].divisor, desc->divisor);
1684 SET_DYN_VALUE(dyn, VI, vi->bindings_valid, bindings_valid);
1697 SET_DYN_VALUE(dyn, VI, vi->attributes[a].binding, desc->binding);
1698 SET_DYN_VALUE(dyn, VI, vi->attributes[a].format, desc->format);
1699 SET_DYN_VALUE(dyn, VI, vi->attributes[a].offset, desc->offset);
1701 SET_DYN_VALUE(dyn, VI, vi->attributes_valid, attributes_valid);