Lines Matching refs:ves
40 struct zink_vertex_elements_state *ves = CALLOC_STRUCT(zink_vertex_elements_state); in zink_create_vertex_elements_state() local
41 if (!ves) in zink_create_vertex_elements_state()
54 ves->binding_map[num_bindings] = binding; in zink_create_vertex_elements_state()
60 ves->bindings[binding].binding = binding; in zink_create_vertex_elements_state()
61 …ves->bindings[binding].inputRate = elem->instance_divisor ? VK_VERTEX_INPUT_RATE_INSTANCE : VK_VER… in zink_create_vertex_elements_state()
64 ves->divisor[binding] = elem->instance_divisor; in zink_create_vertex_elements_state()
67 ves->hw_state.attribs[i].binding = binding; in zink_create_vertex_elements_state()
68 ves->hw_state.attribs[i].location = i; // TODO: unsure in zink_create_vertex_elements_state()
69 ves->hw_state.attribs[i].format = zink_get_format(screen, in zink_create_vertex_elements_state()
71 assert(ves->hw_state.attribs[i].format != VK_FORMAT_UNDEFINED); in zink_create_vertex_elements_state()
72 ves->hw_state.attribs[i].offset = elem->src_offset; in zink_create_vertex_elements_state()
75 ves->hw_state.num_bindings = num_bindings; in zink_create_vertex_elements_state()
76 ves->hw_state.num_attribs = num_elements; in zink_create_vertex_elements_state()
77 return ves; in zink_create_vertex_elements_state()
91 struct zink_vertex_elements_state *ves = cso; in zink_bind_vertex_elements_state() local
93 state->bindings[i].binding = ves->bindings[i].binding; in zink_bind_vertex_elements_state()
94 state->bindings[i].inputRate = ves->bindings[i].inputRate; in zink_bind_vertex_elements_state()
95 if (ves->divisor[i]) { in zink_bind_vertex_elements_state()
96 state->divisors[state->divisors_present].divisor = ves->divisor[i]; in zink_bind_vertex_elements_state()
107 void *ves) in zink_delete_vertex_elements_state() argument