Lines Matching defs:res_tmpl
45 struct pipe_resource *res, res_tmpl;
88 memset(&res_tmpl, 0, sizeof(res_tmpl));
90 res_tmpl.target = PIPE_TEXTURE_2D;
91 res_tmpl.format = PIPE_FORMAT_R8G8B8A8_UNORM;
92 res_tmpl.width0 = 1;
93 res_tmpl.height0 = 1;
94 res_tmpl.depth0 = 1;
95 res_tmpl.array_size = 1;
96 res_tmpl.bind = PIPE_BIND_SAMPLER_VIEW;
97 res_tmpl.usage = PIPE_USAGE_DEFAULT;
99 if (!CheckSurfaceParams(pscreen, &res_tmpl)) {
104 res = pscreen->resource_create(pscreen, &res_tmpl);