Home | History | Annotate | Download | only in draw

Lines Matching refs:fetch

50  * Perform the fetch from API vertex elements & vertex buffers, to a
60 draw_pt_fetch_prepare(struct pt_fetch *fetch,
65 struct draw_context *draw = fetch->draw;
72 fetch->vertex_size = vertex_size;
138 if (!fetch->translate ||
139 translate_key_compare(&fetch->translate->key, &key) != 0)
142 fetch->translate = translate_cache_find(fetch->cache, &key);
148 draw_pt_fetch_run(struct pt_fetch *fetch,
153 struct draw_context *draw = fetch->draw;
154 struct translate *translate = fetch->translate;
176 draw_pt_fetch_run_linear(struct pt_fetch *fetch,
181 struct draw_context *draw = fetch->draw;
182 struct translate *translate = fetch->translate;
206 struct pt_fetch *fetch = CALLOC_STRUCT(pt_fetch);
207 if (!fetch)
210 fetch->draw = draw;
211 fetch->cache = translate_cache_create();
212 if (!fetch->cache) {
213 FREE(fetch);
217 return fetch;
222 draw_pt_fetch_destroy(struct pt_fetch *fetch)
224 if (fetch->cache)
225 translate_cache_destroy(fetch->cache);
227 FREE(fetch);