Lines Matching defs:template
33 util_staging_resource_template(struct pipe_resource *pt, unsigned width, unsigned height, unsigned depth, struct pipe_resource *template)
35 memset(template, 0, sizeof(struct pipe_resource));
37 template->target = PIPE_TEXTURE_RECT;
39 template->target = pt->target;
40 template->format = pt->format;
41 template->width0 = width;
42 template->height0 = height;
43 template->depth0 = depth;
44 template->array_size = 1;
45 template->last_level = 0;
46 template->nr_samples = pt->nr_samples;
47 template->bind = 0;
48 template->usage = PIPE_USAGE_STAGING;
49 template->flags = 0;